xjasonlyu / tun2socks

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

Socks4 support #9

Closed chromer030 closed 3 years ago

chromer030 commented 4 years ago

Hi , thanks for this great tool. How we can use socks4 proxies via this tool ? can any support be added ?

thanks again.

xjasonlyu commented 4 years ago

Socks4 protocol doesn't support UDP proxy, so it's not really useful.

chromer030 commented 4 years ago

For some purposes that only TCP protocol matter , using socks4 is really great and the number of Socks4 proxies is very large than socks5. if it's possible please add socks4 as an option. Thank you.

xjasonlyu commented 4 years ago

Since SOCKS4 only support TCP protocol, you have to take DNS and other UDP traffic carefully while FakeDNS only works on A type record.

chromer030 commented 4 years ago

For covering DNS we are using SOCKS 4A extensions ( remote hostname resolving feature ).

xjasonlyu commented 4 years ago

I know, that's what FakeDNS does, get your requested domain then forward via socks, but other DNS record type like TXT would fail.

chromer030 commented 4 years ago

So isn't there any chance to have support it on tun2socks ???

xjasonlyu commented 4 years ago

Maybe later, I'll consider add socks4 as compatible proxy support when I have enough time.

chromer030 commented 4 years ago

Great , Thank you very very much...

chromer030 commented 4 years ago

Hi , any progress ? 🙏🙏🙏

xjasonlyu commented 4 years ago

Not yet.. Feel free to pull requests.