Fail2ban has a client software that is very useful to see the different jails that are running and see if any have an IP address that is currently blocked.
The client can handle the name of one jail in a call to status. However, you can stack multiple commands to get multiple results.
fail2ban-client status wp-auth; fail2ban-client status auth-log; Status for the jail: wp-auth |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- File list: /var/log/apache2/error.log `- Actions |- Currently banned: 0 |- Total banned: 0 `- Banned IP list: Status for the jail: auth-log |- Filter | |- Currently failed: 0 | |- Total failed: 58 | `- File list: /var/log/auth.log `- Actions |- Currently banned: 0 |- Total banned: 27 `- Banned IP list:
It is possible to use the client to configure a running instance of fail2ban, but I prefer to edit the configuration files and just reload the process.
Topics covered on this page: