zhuhaow / NEKit

A toolkit for Network Extension Framework
https://zhuhaow.github.io/NEKit
BSD 3-Clause "New" or "Revised" License
2.84k stars 670 forks source link

关于UDPDirectStack转发UDP疑问 #214

Closed ameue closed 5 years ago

ameue commented 5 years ago

看到转发是用findOrCreateSocketForPacket方法读取pacektFlow封装的IPPacket对象,创建NWUDPSocket对象转发的,这个NWUDPSocket是IPPacket用读出来的destinationAddress创建的,疑问: destinationAddress是用pacektFlow读出来的UDP数据的目的地址,那么是从本地直接转发到目的服务器,没有转发到配置的ss服务器吗?

zhuhaow commented 5 years ago

没有

ameue commented 5 years ago

如果改造的话,可以哪里入手呢?可以给点思路吗

zhuhaow commented 5 years ago

那就把读出来的packet发到你想要的地方不就好了

On 21 Nov 2018, at 18:14, Popeye notifications@github.com wrote:

如果改造的话,可以哪里入手呢?可以给点思路吗

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ameue commented 5 years ago

转发之前,再封装个socks5的头部?

zhuhaow commented 5 years ago

这取决于你要怎么发了,根据你想要的协议封装

On 22 Nov 2018, at 09:59, Popeye notifications@github.com wrote:

转发之前,再封装个socks5的头部?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.