TProxy iptables 错误

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

答案1

除非您的托管服务提供商允许,否则您无法使用这些模块。您需要联系您的提供商,或使用 OpenVZ/Virtuozzo 以外的任何产品。

相关内容