The below is a working Regex for the jail.local file tested on ZM 1.36.19
This is taken from the below site and placed here for others to find easy.
https://github.com/fail2ban/fail2ban/issues/2643
Code: Select all
[zoneminder]
# Zoneminder HTTP/HTTPS web interface auth
# Logs auth failures from /var/log/zm/web_php.log error log
enabled = true
port = http,https
logpath = /var/log/zm/web_php.log
# Below is the Regex filer that would normally live within the filter.d zoneminder.conf file
filter =
failregex = ^\s*web_php\[\d+\]\.ERR \[<HOST>\].*includes/auth.php
datepattern = ^%%m/%%d/%%y %%H:%%M:%%S(?:\.%%f)