# iptables -L --line-numbers
# iptables -D <chain> <chain number>
如:
执行iptables -L --line-numbers后你会看到如下的信息(部分)
红色为<chain>名,蓝绿色为<chain number>
Chain fail2ban-postfix (1 references)
num target prot opt source destination
1 REJECT all -- 110.52.1.16 anywhere reject-with icmp-port-unreachable
2 REJECT all -- 110.52.2.192 anywhere reject-with icmp-port-unreachable 3 REJECT all -- 110.52.0.23 anywhere reject-with icmp-port-unreachable
4 REJECT all -- 110.52.2.119 anywhere reject-with icmp-port-unreachable
5 REJECT all -- 110.52.2.84 anywhere reject-with icmp-port-unreachable
6 REJECT all -- 118.244.229.32 anywhere reject-with icmp-port-unreachable
7 REJECT all -- 110.52.2.91 anywhere reject-with icmp-port-unreachable
8 REJECT all -- 1.93.43.59 anywhere reject-with icmp-port-unreachable
9 REJECT all -- 225.143.73.124.broad.dynamic.hf.ah.cndata.com anywhere reject-with icmp-port-unreachable
10 REJECT all -- 118.244.229.46 anywhere reject-with icmp-port-unreachable
11 REJECT all -- 110.52.1.147 anywhere reject-with icmp-port-unreachable
12 REJECT all -- 142-4-40-37.static.webnx.com anywhere reject-with icmp-port-unreachable
13 RETURN all -- anywhere anywhere
Chain fail2ban-roundcube (1 references)
num target prot opt source destination
1 RETURN all -- anywhere anywhere
|
根据规则iptables -D <chain> <chain number>
# iptables -D fail2ban-postfix 3
Post Views: 346
共有 0 条评论