mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-12 17:07:23 +01:00
Enable fail2ban for z-push and add a test for it
This commit is contained in:
15
conf/fail2ban/filter.d/z-push.conf
Normal file
15
conf/fail2ban/filter.d/z-push.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
# Source: https://kb.kopano.io/display/ZP/Fail2Ban+support
|
||||
[INCLUDES]
|
||||
before = common.conf
|
||||
[Definition]
|
||||
# Option: failregex
|
||||
# Notes.: regex to match the password failures messages in the logfile. The
|
||||
# host must be matched by a group named "host". The tag "<HOST>" can
|
||||
# be used for standard IP/hostname matching and is only an alias for
|
||||
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
|
||||
# Values: TEXT
|
||||
#
|
||||
failregex = IP: <HOST> failed to authenticate user
|
||||
ignoreregex =
|
||||
[Init]
|
||||
journalmatch = _SYSTEMD_UNIT=fail2ban.service
|
||||
@@ -88,3 +88,10 @@ bantime = 3600
|
||||
[slapd]
|
||||
enabled = true
|
||||
logpath = /var/log/ldap/slapd.log
|
||||
|
||||
[z-push]
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = z-push
|
||||
logpath = /var/log/z-push/z-push-error.log
|
||||
maxretry = 20
|
||||
|
||||
Reference in New Issue
Block a user