Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

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

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
Which modules should my provider enable ? –  Heopas Jul 22 '13 at 13:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.