riobard / go-shadowsocks2

Experimental Shadowsocks in Go. Stable fork at https://github.com/shadowsocks/go-shadowsocks2
Apache License 2.0
719 stars 1.66k forks source link

General UDP tunnel? #2

Open yydcool opened 7 years ago

yydcool commented 7 years ago

Hi, Does this project support general UDP tunnel on socks proxy protocol(not for DNS at port 53)? For example, my video chat app will send and receive UDP packets, and I set up the socks proxy for the app. So the UDP path is: User APP --> local socks proxy --> shadowsocks encryption tunnel --> remote socks proxy server --> APP server. The reverse direction is also needed. Will this case work in go-shadowsocks2? and how to set up? I didn't find it in README.md Thank you for your time.

riobard commented 7 years ago

In theory it's possible, however it's not implemented yet.

I haven't seen any UDP-based applications capable of using SOCKS5 UDP feature in practice. Can you name one so I can try to understand its behavior?

ccsexyz commented 7 years ago

the openvpn client will use socks5 udp feature if you set the socks5 proxy and udp protocol

riobard commented 6 years ago

The stable fork at https://github.com/shadowsocks/go-shadowsocks2 has implemented general UDP proxy as specified in RFC 1928 SOCKS5.