sudo apt install fail2ban

Category: Self-Hosting

sudo apt install fail2ban

Install Fail2ban — monitors logs and automatically bans IPs with too many failed login attempts

Installs Fail2ban, a daemon that watches log files for repeated failed authentication attempts and bans offending IPs via iptables rules.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.