Fail2an - Unban ip address from jail

How to unban an ip address which us blocked by fail2ban jail. An own command and program is available to manage blocked ip addresses.

To run this command you need to know the blocked ip address and the jail.

You can find the used jail for the blocked ip address in the logs:

/var/log/fail2ban.log

 

In Fail2ban - Version before v0.8.8

We use the below command to unban the IP address in Fail2ban versions before 0.8.8.

fail2ban-client get yourUsedJailName actionunban yourIpAddress

 

Replace yourUsedJailName with the corresponding jail name and yourIpAddress with the blocked IP address.

For example, to remove an IP address jailed within ssh, use the below command.

fail2ban-client get ssh actionunban 13.xx.17x.12x

 

In Fail2ban - Version v0.8.8 or later

We use the below command to unban the IP address in Fail2ban version 0.8.8 and later.

fail2ban-client set yourUsedjailname unbanip yourIpAddress

 

Replace yourUsedJailName with the corresponding jail name and yourIpAddress with blocked IP address.

For example, to remove an IP address jailed within ssh, use the below command.

fail2ban-client set ssh unbanip 10.xx.45x.42x

 

Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
Ok