Skip to content

Commit 0e2c29a

Browse files
committed
Adjust recidive jail and add it to jail.local.
1 parent 03b05e3 commit 0e2c29a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

install/deb/fail2ban/jail.local

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ enabled = false
4343
filter = roundcube-auth
4444
action = hestia[name=WEB]
4545
logpath = /var/log/roundcube/errors
46-
maxretry = 5
46+
maxretry = 5
47+
48+
[recidive]
49+
enabled = true
50+
action = hestia[name=RECIDIVE]
51+
maxretry = 3
52+
findtime = 86400
53+
bantime = 864000

install/upgrade/versions/latest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ fi
6767
# Implement recidive jail for fail2ban
6868
if [ ! -z "$FIREWALL_EXTENSION" ]; then
6969
if ! cat /etc/fail2ban/jail.local | grep -q "recidive"; then
70-
echo -e "\n\n[recidive]\nenabled = true\nmaxretry = 3\nfindtime = 86400\nbantime = 864000" >> /etc/fail2ban/jail.local
70+
echo -e "\n\n[recidive]\nenabled = true\naction = hestia[name=RECIDIVE]\nmaxretry = 3\nfindtime = 86400\nbantime = 864000" >> /etc/fail2ban/jail.local
7171
fi
7272
fi

0 commit comments

Comments
 (0)