fail2ban – unban IP

312

With Fail2Ban before v0.8.8:

fail2ban-client get YOURJAILNAMEHERE actionunban IPADDRESSHERE

With Fail2Ban v0.8.8 and later:

fail2ban-client set YOURJAILNAMEHERE unbanip IPADDRESSHERE

The hard part is finding the right jail:

  1. Use iptables -L -n to find the rule name…
  2. …then use fail2ban-client status to get the actual jail names.

Leave a Reply

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