brimstone / rsocks

Tiny little reverse socks5 client & server
GNU Affero General Public License v3.0
84 stars 30 forks source link

feature: udp support #1

Open mihaiav opened 1 year ago

mihaiav commented 1 year ago

What would it take to support UDP? I'm willing to work on a patch if guidance is provided

brimstone commented 1 year ago

UDP between the client and server, or UDP between other components?

mihaiav commented 1 year ago

The goal would be to provide SOCKS5 with UDP support (as described by RFC1928). I believe all the components in the chain (rsocks client, rsocks server and end user application) should support UDP for it to work. At the first glance it looks like rsocks supports only tcp on both client and server.

brimstone commented 1 year ago

Looks like the socks5 library I'm using doesn't support UDP, so that's the first thing to fix. Looks like https://github.com/things-go/go-socks5 might though. Next to make sure yamux supports UDP (probably does), then to actually add a UDP listener.

hibensonman commented 1 month ago

.\main.go:41:6: undefined: listenForSocks .\main.go:42:13: undefined: listenForClients .\main.go:47:13: undefined: connectForSocks

build error