Trojan-Plus-Group / trojan-plus

More Experimental Effective Features for Trojan
GNU General Public License v3.0
83 stars 21 forks source link

[BUG]NAT模式下无法处理TPROXY tcp #8

Closed qiuzi closed 4 years ago

qiuzi commented 4 years ago

TPROXY的udp能顺利通过 可是tcp却不行

yuchting commented 4 years ago

Trojan plus is same as the original trojan project, its NAT mode of TCP only supports iptables' REDIRECT rather than TPROXY.

But trojan plus new UDP forwarding feature needs TPROXY.

qiuzi commented 4 years ago

mangle表的实用性更高 转发更优先 希望能加入tcp 谢谢

qiuzi commented 4 years ago

ss-libev已经支持了tcp TPROXY 能借鉴下吗?

yuchting commented 4 years ago

I might research this feature in spare time, thanks for your reminder.

yuchting commented 4 years ago

implemented in https://github.com/Trojan-Plus-Group/trojan-plus/commit/cf635f752f549a27884203a036074ffb7eb6279e