"Wait, We are processing some stuff!"

Fail2ban wouldn’t corrupt your install, it can certainly block you from accessing your server but not corrupt it.

If you do have console access, check the fail2ban logs found in /var/log/fail2ban.log search for your ip and the jail fail2ban sent your ip to.

Here is an example with the test ip: 1.1.248.68

2021-08-17 08:59:47,964 fail2ban.filter         [1536]: INFO    [vitalpbx-gui] Found 1.1.248.68 - 2021-08-17 08:59:47
2021-08-17 08:59:50,734 fail2ban.filter         [1536]: INFO    [vitalpbx-gui] Found 1.1.248.68 - 2021-08-17 08:59:50
2021-08-17 08:59:51,088 fail2ban.actions        [1536]: NOTICE  [vitalpbx-gui] Ban 1.1.248.68

As you can see above, ip 1.1.248.68 has been banned and sent to the vitalpbx-gui jail.

To check the jail status:

# list all your jails
fail2ban-client status 

Status
|- Number of jail:      13
`- Jail list:   apache-auth, apache-badbots, apache-bfa, apache-modsecurity, apache-noscript, apache-overflows, apache-shellshock, asterisk-vpbx, dropbear, recidive, sshd, sshd-ddos, vitalpbx-gui

---------------------
#Get the status of a specific jail, we got banned with
fail2ban-client status vitalpx-gui

Status for the jail: vitalpbx-gui
|- Filter
|  |- Currently failed: 0
|  |- Total failed:     4
|  `- File list:        /var/log/vitalpbx/authentications.log
`- Actions
   |- Currently banned: 1
   |- Total banned:     1
   `- Banned IP list:   1.1.248.68

To unban the ip from the jail:

fail2ban-client set vitalpbx-gui unbanip  1.1.248.68
1

Check your status again and your ip is now unbanned.

1 Like