Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Delete all fail2ban bans in Ubuntu Linux

How can I delete all fail2ban bans in Ubuntu? I tried everything but I don't get it.

I just want to delete all bans - but I don't know any IP adresses.
by

1 Answer

vishaljlf39
The best way to unban all IPs, is to set the bantime to 1 second, then all the IP will be freed right away.
fail2ban-client set JailName bantime 1


After that you can set the proper ban time back.

It's better to let fail2ban to do the unban for you. Don't manually edit iptables yourself.

Login / Signup to Answer the Question.