Before you start, please add your Server under your Profile under "Server"!
All Server-IP-Addresses are automatically in the Whitelist from blocklist.
If you have fail2ban already installed, please make a Backup from /etc/fail2ban/, because the jail.conf is in the example-Configs inside and would override your existing config.
1. Install Fail2ban on your Server
1.1 use
Code: Alles auswählen
apt-get install fail2ban
2. download the example-config for Debian/Linux Version 5:
Code: Alles auswählen
wget http://www.blocklist.de/downloads/fail2ban.config.tar.gz
tar -xzvf fail2ban.config.tar.gz
cp etc/* /etc -r
Code: Alles auswählen
wget http://www.blocklist.de/downloads/fail2ban.config.debian6.tar.gz
tar -xzvf fail2ban.config.debian6.tar.gz
cp etc/* /etc -r
Code: Alles auswählen
sed -i 's/fail2ban@DEINE-DOMAIN/fail2ban@XXXXX-YOUR-ADDRESS/g' /etc/fail2ban/jail.conf
Code: Alles auswählen
sed -i 's/fail2ban@blocklist.de/fail2ban@dyn.blocklist.de/g' /etc/fail2ban/jail.conf