TProxy iptables错误

你好,我用CentOS 6.4 VPS(openvz)我想添加HaProxy TProxy下面的规则,但我得到了一些错误(iptables:无链/目标/匹配的名称)任何想法?

[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 

除非您的主机提供商允许,否则您不能使用这些模块。 您需要联系您的提供商,或使用OpenVZ / Virtuozzo以外的任何其他产品。