Skip to content

Commit 894a4fa

Browse files
committed
Add rouncube-auth to fail2ban jail.conf.
1 parent 7347771 commit 894a4fa

File tree

7 files changed

+54
-0
lines changed

7 files changed

+54
-0
lines changed

install/debian/8/fail2ban/jail.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ filter = hestia
3737
action = hestia[name=HESTIA]
3838
logpath = /var/log/hestia/auth.log
3939
maxretry = 5
40+
41+
[roundcube-auth]
42+
enabled = false
43+
filter = roundcube-auth
44+
port = http,https
45+
logpath = /var/log/roundcube/errors
46+
maxretry = 5

install/debian/9/fail2ban/jail.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ filter = hestia
3737
action = hestia[name=HESTIA]
3838
logpath = /var/log/hestia/auth.log
3939
maxretry = 5
40+
41+
[roundcube-auth]
42+
enabled = false
43+
filter = roundcube-auth
44+
port = http,https
45+
logpath = /var/log/roundcube/errors
46+
maxretry = 5
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fail2Ban configuration file for hestia
2+
3+
[Definition]
4+
5+
actionstart = /usr/local/hestia/bin/v-add-firewall-chain <name>
6+
actionstop = /usr/local/hestia/bin/v-delete-firewall-chain <name>
7+
actioncheck = iptables -n -L INPUT | grep -q 'fail2ban-<name>[ \t]'
8+
actionban = /usr/local/hestia/bin/v-add-firewall-ban <ip> <name>
9+
actionunban = /usr/local/hestia/bin/v-delete-firewall-ban <ip> <name>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Fail2Ban filter for unsuccessful hestia authentication attempts
2+
#
3+
4+
[INCLUDES]
5+
before = common.conf
6+
7+
[Definition]
8+
failregex = .* <HOST> failed to login
9+
ignoreregex =
10+

install/ubuntu/14.04/fail2ban/jail.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ filter = hestia
3737
action = hestia[name=HESTIA]
3838
logpath = /var/log/hestia/auth.log
3939
maxretry = 5
40+
41+
[roundcube-auth]
42+
enabled = false
43+
filter = roundcube-auth
44+
port = http,https
45+
logpath = /var/log/roundcube/errors
46+
maxretry = 5

install/ubuntu/16.04/fail2ban/jail.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ filter = hestia
3737
action = hestia[name=HESTIA]
3838
logpath = /var/log/hestia/auth.log
3939
maxretry = 5
40+
41+
[roundcube-auth]
42+
enabled = false
43+
filter = roundcube-auth
44+
port = http,https
45+
logpath = /var/log/roundcube/errors
46+
maxretry = 5

install/ubuntu/18.04/fail2ban/jail.local

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ filter = hestia
3737
action = hestia[name=HESTIA]
3838
logpath = /var/log/hestia/auth.log
3939
maxretry = 5
40+
41+
[roundcube-auth]
42+
enabled = false
43+
filter = roundcube-auth
44+
port = http,https
45+
logpath = /var/log/roundcube/errors
46+
maxretry = 5

0 commit comments

Comments
 (0)