iptables – remove fail2ban entry

This is how!

root@sd-30000:~# 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 
root@sd-31453:~# iptables -D fail2ban-ssh 1

Peace!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.