setup/init-fail2ban.sh aktualisiert

This commit is contained in:
ageissler
2024-10-29 10:18:31 +01:00
parent 4f06e6afa4
commit 0b759785d2

View File

@@ -1 +1,20 @@
#!/bin/bash
#!/bin/bash
###############################################################
###
### fail2ban konfig
###
###############################################################
apt -y install fail2ban python3-systemd
echo "[sshd]
backend=systemd
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
" > /etc/fail2ban/jail.local
systemctl restart fail2ban