setup/init-fail2ban.sh aktualisiert
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user