TProxy iptables error

Heopas asked:

Hello i am using a vps (openvz) with Centos 6.4
I am trying to add the following rules for HaProxy TProxy but i got some errors (iptables: No chain/target/match by that name.)
Any idea?

[[email protected] ~]# iptables -t mangle -N DIVERT
[[email protected] ~]# iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
iptables: No chain/target/match by that name.
[[email protected] ~]# iptables -t mangle -A DIVERT -j MARK --set-mark 111
iptables: No chain/target/match by that name.
[[email protected] ~]# iptables -t mangle -A DIVERT -j ACCEPT
[[email protected] ~]# ip rule add fwmark 111 lookup 100
[[email protected] ~]# ip route add local 0.0.0.0/0 dev lo table 100

My answer:


You can’t use these modules unless your hosting provider allows for it. You need to contact your provider, or use anything other than OpenVZ/Virtuozzo.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.