shaodowsocks-go 客户端能否增加udp relay 支持?
golang ss客户端貌似不支持udp转发 能否支持一下?
@dnnis #221
我checkout 了你的版本, 我看你在 README里有这个参数
-u use the udp to serve
但我在实际使用中没看到,还是说无需加此参数 直接支持客户端udp relay
@dnnis 嗯嗯,你的需求是 socks5 的 UDP association 么? 这个已经实现好了
我这边用了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
@dnnis 这个错误似乎是 udp 协商的时候要求 socks5 版本,你的 tun2socks 是 socks5版本么,
可以打开 日志看下
-level debug
@arthurkiller OK
../../shadowsocks/config.go:280: undefined: sort.Slice . @arthurkiller 使用你的分支出现
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.
@dnnis 你的问题解决了吗?
@arthurkiller hello 你的版本客户端udp测试怎么样呢?是否可用?
@EverCurse you can have a try
@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
k,I will take a look