All Guides
Fail2Ban Einrichtung
Schuetzen Sie Ihren Server vor Brute-Force-Angriffen.
Intermediate15 Min.
Setup Steps
1. Install Fail2Ban:
sudo apt install fail2ban -y2. Create configuration file:
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
sudo nano /etc/fail2ban/jail.local3. Basic settings:
[DEFAULT]
bantime = 3600
findtime = 600
maxretry = 5
[sshd]
enabled = true
port = ssh
logpath = %(sshd_log)s
maxretry = 34. Apache protection:
[apache-auth]
enabled = true
port = http,https
logpath = %(apache_error_log)s
maxretry = 55. Nginx protection:
[nginx-http-auth]
enabled = true
port = http,https
logpath = /var/log/nginx/error.log6. Start the service:
sudo systemctl start fail2ban
sudo systemctl enable fail2ban7. Check status:
sudo fail2ban-client status
sudo fail2ban-client status sshd8. Unban an IP:
sudo fail2ban-client set sshd unbanip 192.168.1.100Related Guides
UFW Firewall Einrichtung
Sichern Sie Ihren Server mit Ubuntu UFW.
VPN Einrichtung (WireGuard)
Richten Sie einen WireGuard VPN-Server ein.
ModSecurity WAF Einrichtung
Installieren Sie ModSecurity Web Application Firewall.
Certbot Automatische SSL-Erneuerung
Konfigurieren Sie die automatische SSL-Zertifikatserneuerung.