Delete all fail2ban bans

By.

min read

My profile

Share this:

Option one

fail2ban-client

unban --all
unban <IP> ... <IP>

Option two

iptables -L -n --line-numbers
iptables -D fail2ban-somejail <linenumber> 

tool;
for lin in {200..1}; do
   iptables -D fail2ban-somejail $lin
done

Source https://unix.stackexchange.com/questions/286119/delete-all-fail2ban-bans-in-ubuntu-linux

Share this:

Leave a Reply

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