sudo nano /etc/fail2ban/jail.local

Category: Self-Hosting

sudo nano /etc/fail2ban/jail.local

Configure Fail2ban jails — set ban time, retry limits, and which services to protect

The main Fail2ban config file. Set bantime (how long bans last), findtime (window for counting failures), and maxretry (failures before ban). Create this file to override defaults.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.