mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-05-23 05:48:59 +02:00
Add fail2ban checks for roudcube
This commit is contained in:
@@ -32,6 +32,14 @@ logpath = /var/log/syslog
|
|||||||
maxretry = 20
|
maxretry = 20
|
||||||
findtime = 30
|
findtime = 30
|
||||||
|
|
||||||
|
[roundcube]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = roundcube
|
||||||
|
logpath = /var/log/roundcubemail/errors
|
||||||
|
maxretry = 20
|
||||||
|
findtime = 30
|
||||||
|
|
||||||
[recidive]
|
[recidive]
|
||||||
enabled = true
|
enabled = true
|
||||||
maxretry = 10
|
maxretry = 10
|
||||||
|
|||||||
14
conf/fail2ban/roundcube.conf
Normal file
14
conf/fail2ban/roundcube.conf
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Fail2Ban configuration file for roundcube web server
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
[INCLUDES]
|
||||||
|
|
||||||
|
before = common.conf
|
||||||
|
|
||||||
|
[Definition]
|
||||||
|
|
||||||
|
failregex = IMAP Error: Login failed for .*? from <HOST>\. AUTHENTICATE.*
|
||||||
|
|
||||||
|
ignoreregex =
|
||||||
@@ -233,5 +233,5 @@ cat conf/fail2ban/jail.local \
|
|||||||
> /etc/fail2ban/jail.local
|
> /etc/fail2ban/jail.local
|
||||||
cp conf/fail2ban/dovecotimap.conf /etc/fail2ban/filter.d/dovecotimap.conf
|
cp conf/fail2ban/dovecotimap.conf /etc/fail2ban/filter.d/dovecotimap.conf
|
||||||
cp conf/fail2ban/miab-management-daemon.conf /etc/fail2ban/filter.d/miab-management-daemon.conf
|
cp conf/fail2ban/miab-management-daemon.conf /etc/fail2ban/filter.d/miab-management-daemon.conf
|
||||||
|
cp conf/fail2ban/roundcube.conf /etc/fail2ban/filter.d/roundcube.conf
|
||||||
restart_service fail2ban
|
restart_service fail2ban
|
||||||
|
|||||||
Reference in New Issue
Block a user