iptables -j suse中的TPROXY(内核版本3.0.101):没有具有该名称的链/目标/匹配

时间:2018-11-03 15:11:18

标签: iptables

我想在suse(kernel:3.0.101)中重定向所有使用tproxy的udp数据包,我这样做:

1.iptables -t mangle -N SHADOWSOCKS_UDP

2.iptables -t mangle -N SHADOWSOCKS_UDP_MARK

3.ip route添加本地默认开发表100

4.ip规则添加fwmark 1查找100

iptables -t mangle -L显示: enter image description here

5:iptables -t mangle -A SHADOWSOCKS_UDP -p udp -j TPROXY-端口3386 --tproxy-mark 0x01 / 0x01

并得到错误: iptables:该名称没有链/目标/匹配项。

我不知道为什么?非常感谢,给我一些建议。

这是我的tproxy配置: enter image description here

并且这些命令在ubuntu(内核版本:4.4.0)中运行良好

1 个答案:

答案 0 :(得分:0)

是的。收拾它。这是因为suse没有。。具有xt_TPROXY内核模块。您需要编译内核模块。并对其进行修饰。