Intermediate
Package: fail2ban
fail2ban-client
Manage the Fail2Ban intrusion-prevention service.
Syntax
fail2ban-client [command]
Description
fail2ban-client controls Fail2Ban, which watches log files for repeated failed login attempts and temporarily bans offending IP addresses using the firewall, commonly used to protect SSH and mail services.
Examples
sudo fail2ban-client status
Show all active jails
sudo fail2ban-client status sshd
Show banned IPs for the SSH jail
sudo fail2ban-client set sshd unbanip 203.0.113.5
Manually unban an IP address