Przeglądaj źródła

Adjust recidive jail and add it to jail.local.

Raphael Schneeberger 6 lat temu
rodzic
commit
0e2c29a8ac

+ 8 - 1
install/deb/fail2ban/jail.local

@@ -43,4 +43,11 @@ enabled  = false
 filter   = roundcube-auth
 action  = hestia[name=WEB]
 logpath  = /var/log/roundcube/errors
-maxretry = 5
+maxretry = 5
+
+[recidive]
+enabled  = true
+action   = hestia[name=RECIDIVE]
+maxretry = 3
+findtime = 86400
+bantime  = 864000

+ 1 - 1
install/upgrade/versions/latest.sh

@@ -67,6 +67,6 @@ fi
 # Implement recidive jail for fail2ban
 if [ ! -z "$FIREWALL_EXTENSION" ]; then
     if ! cat /etc/fail2ban/jail.local | grep -q "recidive"; then
-        echo -e "\n\n[recidive]\nenabled  = true\nmaxretry = 3\nfindtime = 86400\nbantime  = 864000" >> /etc/fail2ban/jail.local
+        echo -e "\n\n[recidive]\nenabled  = true\naction   = hestia[name=RECIDIVE]\nmaxretry = 3\nfindtime = 86400\nbantime  = 864000" >> /etc/fail2ban/jail.local
     fi
 fi