我想删除下面的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
有什么不对吗?
答案 0 :(得分:69)
尝试明确添加表名:
iptables -t nat -D POSTROUTING 1