iptables
- 删除NAT表规则
使用root:
iptables -t nat -L -n --line-numbers
输出:
Chain PREROUTING (policy ACCEPT)num target prot opt source destinationChain POSTROUTING (policy ACCEPT)num target prot opt source destination1 MASQUERADE all -- 10.3.0.0/16 !10.3.0.0/16Chain OUTPUT (policy ACCEPT)num target prot opt source destination
删除POSTROUTING下的num id为1的规则
iptables -t nat -D POSTROUTING 1
