1
0
Fork 0

change regex for fail2ban

This commit is contained in:
Philipp Holzer 2019-01-07 21:08:09 +01:00 committed by Hypolite Petovan
commit b5afd2a21d
3 changed files with 5 additions and 7 deletions

View file

@ -56,7 +56,7 @@ In */etc/fail2ban/jail.local* create a section for Friendica:
And create a filter definition in */etc/fail2ban/filter.d/friendica.conf*:
[Definition]
failregex = ^.*Login\.php.*failed login attempt.*from IP <HOST>.*$
failregex = ^.*authenticate\: failed login attempt.*\"ip\"\:\"<HOST>\".*$
ignoreregex =
Additionally you have to define the number of failed logins before the ban should be activated.