russdill / tunsocks

User-level IP forwarding, SOCKS proxy, and HTTP proxy for VPNs that provide tun-like interface
315 stars 67 forks source link

SOCKS5 UDP usage #20

Open deliciouslytyped opened 1 month ago

deliciouslytyped commented 1 month ago

Is there anything like proxychains or tsocks that would support wrapping and forwarding an application using UDP over the SOCKS5 proxy? I can't seem to find anything that supports this.

What about a flag like -L for UDP?

It looks like socat has only recently acquired SOCKS5 support ( https://repo.or.cz/socat.git/commitdiff/7b66b53f934fe611747d7b269834ec30a175b546 ) , but with no UDP support, so I can't use that.

+/*
+* At the moment UDP ASSOCIATE is not supported, but CONNECT and BIND are.
+* At the moment no authentication methods are supported (i.e only NO AUTH),
+* which is technically not compliant with RFC1928.
+*/

This old fork also seems to exist ( https://github.com/runsisi/socat/ ); but I don't think it supports UDP either.

This only really seems to leave UDP-over-TCP-over-SOCKS solutions.

deliciouslytyped commented 1 month ago

It turns out Dante/socksify support UDP, but I haven't quite gotten mosh to work yet.