43 cards
View
Linked contentRepeats
Claus-Theodor Riegg
3 years
Repeats
Claus-Theodor Riegg
1 year
Andreas Herz
1 year
Linked content
Claus-Theodor Riegg
2 years
Claus-Theodor Riegg
2 years
Claus-Theodor Riegg
2 years
Claus-Theodor Riegg
3 years
Linked content
Marius Schuller
3 years
Claus-Theodor Riegg
3 years
Claus-Theodor Riegg
3 years
Linked content
Claus-Theodor Riegg
3 years
Claus-Theodor Riegg
3 years
Posted over 3 years ago. Visible to the public.

How to unban host with Fail2ban

To see all jails:

Copy
fail2ban status

Our $JAIL is usually ssh.

To see which IPs are banned currently:

Copy
fail2ban-client status ssh

If you want to unban a host banned by fail2ban on Ubuntu 14.04 or later use this method:

Copy
fail2ban-client set $JAIL unbanip $IP #example with a jail named ssh fail2ban-client set ssh unbanip 10.0.0.20

Please don't try to undo the ban by deleting the iptables rule. Fail2ban will recreate the rule if it is missing but fail2ban has still stored the ban.

On 12.04 hosts fail2ban is too old and doesn't know the unbanip action.

Copy
sudo iptables -F

is the only way here since sudo service fail2ban restart just re-bans the IP again after starting.

Owner of this card:

Avatar
Claus-Theodor Riegg
Last edit:
almost 2 years ago
by Thomas Eisenbarth
Keywords:
ops, block, sshd, firewall, filter
This website uses cookies to improve usability and analyze traffic.
Accept or learn more