shadowsocks-go icon indicating copy to clipboard operation
shadowsocks-go copied to clipboard

shaodowsocks-go 客户端能否增加udp relay 支持?

Open itsre opened this issue 8 years ago • 13 comments

golang ss客户端貌似不支持udp转发 能否支持一下?

itsre avatar Sep 27 '17 16:09 itsre

@dnnis #221

arthurkiller avatar Sep 28 '17 05:09 arthurkiller

我checkout 了你的版本, 我看你在 README里有这个参数

-u use the udp to serve 但我在实际使用中没看到,还是说无需加此参数 直接支持客户端udp relay

itsre avatar Sep 28 '17 15:09 itsre

@dnnis 嗯嗯,你的需求是 socks5 的 UDP association 么? 这个已经实现好了

arthurkiller avatar Sep 29 '17 02:09 arthurkiller

我这边用了tun2socks 转发所有tap设备的数据包到shadowsocks 服务端用的最新libev版本 客户端用go版本的时候报错 2017-09-29 14:33:03 ERROR shadowsocks-local/local.go:240 [UDP] error in udp association socks version {"error": "socks version not supported"}

DNS无法解析

用libev版本的客户端的时候 可以正常访问,看起来是socks5 version号不对,我debug了下 拿到的值 是1 确实不等于5

itsre avatar Sep 29 '17 06:09 itsre

@dnnis 这个错误似乎是 udp 协商的时候要求 socks5 版本,你的 tun2socks 是 socks5版本么,

可以打开 日志看下

-level debug

arthurkiller avatar Sep 29 '17 06:09 arthurkiller

@arthurkiller OK

itsre avatar Sep 29 '17 06:09 itsre

../../shadowsocks/config.go:280: undefined: sort.Slice . @arthurkiller 使用你的分支出现

drcayman avatar Nov 13 '17 17:11 drcayman

go 1.9

Best regards ✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️✉️

Arthur lee Sent from my iPhone

On 14 Nov 2017, at 1:29 AM, drcayman [email protected] wrote:

../../shadowsocks/config.go:280: undefined: sort.Slice . @arthurkiller 使用你的分支出现

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

arthurkiller avatar Nov 14 '17 00:11 arthurkiller

@dnnis 你的问题解决了吗?

drcayman avatar Nov 14 '17 14:11 drcayman

@arthurkiller hello 你的版本客户端udp测试怎么样呢?是否可用?

EverCurse avatar Sep 11 '18 05:09 EverCurse

@EverCurse you can have a try

arthurkiller avatar Sep 11 '18 06:09 arthurkiller

@arthurkiller 服务器版本是shadowsocks-libv 尝试udp 出错

2018-09-11 23:34:12 ?[31mERROR?[0m shadowsocks/pipe.go:39 error in copy from src to dest, write into dest {"conn info": "piping between 128.14.xx.xx:12345 <--ss--> 127.0.0.1:59723", "error": "write tcp 127.0.0.1:1080->127.0.0.1:59723: wsasend: An existing connection was forcibly closed by the remote host."} 2018-09-11 23:34:15 ?[33mWARN?[0m shadowsocks-local/local.go:528 [UDP] read a illegal source packet, droped 2018-09-11 23:34:18 ?[33mWARN?[0m shadowsocks-local/local.go:528 [UDP] read a illegal source packet, droped 2018-09-11 23:34:22 ?[33mWARN?[0m shadowsocks-local/local.go:528 [UDP] read a illegal source packet, droped

EverCurse avatar Sep 11 '18 15:09 EverCurse

k,I will take a look

arthurkiller avatar Sep 13 '18 05:09 arthurkiller