Fail2ban-client show banned IPs

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>

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to generate/download a full backup

A full backup is a backup of all of your files, e-mail, databases, etc. To run a full backup, you...

How to create an FTP account in cPanel

An FTP account is used for uploading and managing files on your website. An FTP account is...

cPanel logs for access, Apache, email, error, ftp, mysql, and WHM

cPanel logs for access, Apache, email, error, ftp, mysql, and WHM cPanel logs most activity that...

Default Mail Addresses in cPanel

Default Mail Addresses in cPanel Category: Technical Support If you manage a domain, sooner...

How to Stop Email Spam Bots Using SMTP on Your VPS

How to Stop Email Spam Bots Using SMTP on Your VPS The Problem The email said that I had...