iptables:如何删除postrouting规则?
我想删除下面的POSTROUTING规则,
[root@hostname ~]# service iptables status Table: nat Chain PREROUTING (policy ACCEPT) num target prot opt source destination Chain POSTROUTING (policy ACCEPT) num target prot opt source destination 1 MASQUERADE all -- 192.168.1.0/24 0.0.0.0/0 Chain OUTPUT (policy ACCEPT) num target prot opt source destination
然后我键入下面,
[root@hostname ~]# iptables -D POSTROUTING 1 iptables: No chain/target/match by that name
有什么不对的吗?
尝试显式添加表名:
iptables -t nat -D POSTROUTING 1