mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-14 09:16:00 +01:00
Enable fail2ban for z-push and add a test for it
This commit is contained in:
1 parent
71b8b94276
commit
27dcb5d7ca
6 files changed
+194
-8
No files matched your search
@@ -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