我想在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)中运行良好
答案 0 :(得分:0)
是的。收拾它。这是因为suse没有。。具有xt_TPROXY内核模块。您需要编译内核模块。并对其进行修饰。