Fail2Ban
Links & Installation
Fail2ban Documentation
Linode Fail2ban Guide
yum install fail2ban
apt install fail2ban
etc..
apt install nginx python-certbot-nginx
certbot --nginx -d www.domain.com -d domain.com
Configuration Files
cd /etc/fail2ban/
To modify configs, copy any fail2ban.conf
to fail2ban.local
and modify the copied fail2ban.local
configuration file. Fail2ban will automatically override the settings in fail2ban.conf
with those in fail2ban.local
cp /etc/fail2ban/fail2ban.conf /etc/fail2ban/fail2ban.local
/etc/fail2ban/jail.conf
- ignoreip
- An IP address for fail2ban to ignore
- maxrety
- Number of retries before being locked out
Log Files
/var/log/messages
Shows all failed log attemps, config changes