Archivio Domande

Fail2ban-client show banned IPs Print

  • 0

How to show banned IPs with Fail2ban client

It’s very simple to show the list of banned IPs with Fail2ban, first you have to select in which jail you want to show the blocked IPs. To get the active jails type:

fail2ban-client status

Then you have to select a jail to show banned IPs with this jail

fail2ban-client status <JAIL-NAME>

 

For example to show banned IPs in sshd jail type:

fail2ban-client status sshd

That ‘is all, if you want to manually unban an IP:

fail2ban-client set <JAIL-NAME> unbanip <IP-ADDRESS>

And finally if you want to manually ban an IP:

fail2ban-client set <JAIL-NAME> banip <IP-ADDRESS>

 


Hai trovato utile questa risposta?
Back