Sicherheit
Block brute-force attacks with Fail2ban
Automatically ban IP addresses that try to guess passwords. · 3 Min. Lesezeit
Diese Seite ist derzeit auf Englisch verfügbar. Eine Übersetzung folgt in Kürze.
apt -y install fail2ban
cat > /etc/fail2ban/jail.local <<'EOF'
[DEFAULT]
bantime = 1h
findtime = 10m
maxretry = 5
[sshd]
enabled = true
EOF
systemctl enable --now fail2ban
fail2ban-client status sshd
Unban an address:
fail2ban-client set sshd unbanip 203.0.113.10Bestellen Sie einen von Technikern gebauten Server oder schreiben Sie uns — wir sind 24/7 online. Support →