All Guides
ModSecurity WAF Einrichtung
Installieren Sie ModSecurity Web Application Firewall.
Advanced30 Min.
Setup Steps
1. Install ModSecurity for Apache:
sudo apt install libapache2-mod-security2 -y2. Enable ModSecurity:
sudo a2enmod security23. Create configuration file:
sudo cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf4. Switch from detection to blocking mode:
sudo nano /etc/modsecurity/modsecurity.conf
# SecRuleEngine DetectionOnly
SecRuleEngine On5. Install OWASP Core Rule Set (CRS):
sudo apt install modsecurity-crs -y6. Enable CRS:
sudo cp /usr/share/modsecurity-crs/crs-setup.conf.example /usr/share/modsecurity-crs/crs-setup.conf7. Restart Apache:
sudo systemctl restart apache28. Check logs:
sudo tail -f /var/log/apache2/modsec_audit.log9. Disable a rule for false positives:
SecRuleRemoveById 92035010. For Nginx use libmodsecurity3:
sudo apt install libmodsecurity3 -yRelated Guides
UFW Firewall Einrichtung
Sichern Sie Ihren Server mit Ubuntu UFW.
Fail2Ban Einrichtung
Schuetzen Sie Ihren Server vor Brute-Force-Angriffen.
VPN Einrichtung (WireGuard)
Richten Sie einen WireGuard VPN-Server ein.
Certbot Automatische SSL-Erneuerung
Konfigurieren Sie die automatische SSL-Zertifikatserneuerung.