1
0
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:
downtownallday
2022-07-18 15:52:04 -04:00
parent 71b8b94276
commit 27dcb5d7ca
6 changed files with 194 additions and 8 deletions

View 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

View File

@@ -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