ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.78k stars 2.46k forks source link

支持iptables的redirect udp协议吗? #534

Open PHCSJC opened 4 years ago

PHCSJC commented 4 years ago

我说的是udp转发不是指把某个端口的udp转发到某台服务器上,而是说iptables直接redirect udp给gost,就是类似于ss-redir的-U参数,相信大佬能明白我的意思。

可以实现这个功能吗?就是ss-redir的-U参数,谢谢!

PHCSJC commented 4 years ago

也就是ss-redir的这个功能: [-u] Enable UDP relay. TPROXY is required in redir mode. [-U] Enable UDP relay and disable TCP relay.

f4nff commented 4 years ago

iptables 的重定向不好使, 配置繁琐,还是等作者完善vpn协议, 支持多连接的vpn协议,才是王道, 到时候只需要改一下路由表即可。