答:iptables -D <鏈> <要刪除的某行>
1. 查看規則
$ sudo iptables -nvL --line-number
...
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
...
8 4 193 reject all -- * * 0.0.0.0/0 0.0.0.0/0
9 48 1932 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
...
2. 刪除某個規則(以上的規則"8 4 193 reject all -- * * 0.0.0.0/0 0.0.0.0/0")
$ sudo iptables -D FORWARD 8
