English English

Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/ard-site/templates/ardsite/library/Designer/Content/SingleArticle.php on line 198

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

 

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok