xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 405 forks source link

[Feature] SOCKS4a #149

Closed phantomcraft closed 1 year ago

phantomcraft commented 1 year ago

Description

Consider adding support for SOCKS4a: https://en.wikipedia.org/wiki/SOCKS#SOCKS4a

SOCKS4a differs from SOCKS4, DNS requests can me made inside the tunnel and not on host site. This prevent DNS leaks.

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

This package implements SOCKS4a: https://github.com/h12w/socks

xjasonlyu commented 1 year ago

SOCKS4A is already implemented in the transport package.

I don’t know why you need SOCKS4A in your case, but it should be noted that tun2socks can only send proxy requests with IP as destination for now.

phantomcraft commented 1 year ago

Ah ok, I tested with a small SOCKS4a server and tun2socks worked fine.

Thanks!