heiher / hev-socks5-tunnel

A high-performance tun2socks for Linux/Android/FreeBSD/macOS/iOS/WSL2 (IPv4/IPv6/TCP/UDP)
MIT License
923 stars 165 forks source link

[Feature Request] DNSGW #185

Open tormentous opened 6 days ago

tormentous commented 6 days ago

Here's how it typically works:

heiher commented 6 days ago

This seems like a specific use case for tun2socks' built-in rule-based policy routing. I'll consider whether to support it.

HeXis-YS commented 7 hours ago

个人强烈不建议实现udpgw和dnsgw,它们都是非常有针对性的功能。换句话说,是badvpn的屎山 udpgw是badvpn的模块。badvpn的tun2socks不支持socks5 UDP,当时对于UDP的需求可能不太大,就拿udpgw凑合了,不代表tun2socks需要这个功能。而且后续badvpn tun2socks也增加了原生UDP的支持,不过那已经是很久以后了。 dnsgw则是shadowsocks加上的,估计是为了在当时分流机制还不完善的情况下给DNS做一个初级分流。他们还在udpgw的基础上做了一个udp relay 本项目已经做好了它的工作,把流量转发到socks5端口。至于DNS分流什么的,那应该是代理服务器该做的事。