↑ ↓ select, Enter open, Esc close

Show the status of a Fail2Ban jail and banned IPs

Adjust the values, the command updates live
root@server
fail2ban-client status sshd

Shows the monitored log sources for the given jail, the number of current and total failed attempts and the list of currently banned IP addresses. Without a jail name, fail2ban-client status lists all active jails. Useful for checking whether Fail2Ban is working at all.

Note: On Plesk the jails are named differently than in a standard Fail2Ban setup. So list all jails first.

Open question before approval: Jail-Namen unter Plesk prüfen: Plesk legt eigene Jails an (vermutlich ssh, plesk-apache, recidive usw.), sshd gilt für ein Standard-Fail2Ban.

Also searched as

  • fail2ban list banned ips
  • fail2ban-client status jail
  • check if fail2ban is working

Related one-liners

All in Security

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.