iptables删除nat规则
2021-04-06 本文已影响0人
amengtongxue
iptables -t nat -L -n --line-numbers
Chain PREROUTING (policy ACCEPT)
num target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
num target prot opt source destination
1 MASQUERADE all -- 10.3.0.0/16 !10.3.0.0/16
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
一定要写对表名
iptables -t nat -D POSTROUTING 1