iptables删除nat规则

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

你可能感兴趣的:(iptables删除nat规则)