iptables – remove fail2ban entry

This is how!

[email protected]:~# iptables -L --line-numbers
Chain INPUT (policy ACCEPT)
num target prot opt source destination 
1 fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
2 DROP all -- 205.51.174.61.dial.wz.zj.dynamic.163data.com.cn anywhere

Chain FORWARD (policy ACCEPT)
num target prot opt source destination

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

Chain fail2ban-ssh (1 references)
num target prot opt source destination 
1 REJECT all -- bl7-128-82.dsl.telepac.pt anywhere reject-with icmp-port-unreachable
2 RETURN all -- anywhere anywhere 
[email protected]:~# iptables -D fail2ban-ssh 1

Peace!

Leave a Reply

Your email address will not be published. Required fields are marked *


*