ZenphotoCMS Forum
fail2ban - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: fail2ban (/thread-12666.html)



fail2ban - ronalco - 2022-12-12

I have the following filter rule in

/etc/fail2ban/filter.d/zenphoto.local

    [Definition]
    failregex = \w{24}.*Fehlgeschlagen
    datepattern = %%Y-%%m-%%d\ %%H:%%M:%%S
    #ignoreregex =

And a typical entry in my logpath

/var/www/zenphoto/zp-data/security.log

    2022-12-12 20:04:06     192.168.100.1   Administrations-Anmeldung       zenadmin2               Fehlgeschlagen

but the regex does not apply. Dont know why it does not work.

Maybe someone has an up and running fail2ban configuration with the zenphoto log ?




fail2ban - ronalco - 2022-12-17

at least the fail2ban-regex works now with
/etc/fail2ban/filter.d/zenphoto.local

[Definition]
failregex = .*.*Fehlgeschlagen
datepattern = "%%Y-%%m-%%d\ %%H:%%M:%%S"
ignoreregex =

it just does not set the IP to blocking mode, needs further investigation..




fail2ban - acrylian - 2022-12-17

Sorry, I cannot help, I don't even know what fail2ban is…