Merge pull request #11777 from mwegnr/patch-1

Add totp regex to fail2ban example on harden_server.rst
This commit is contained in:
Josh 2024-05-06 15:02:13 -04:00 committed by GitHub
commit cb9e71cd6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -280,6 +280,7 @@ following contents::
[Definition]
_groupsre = (?:(?:,?\s*"\w+":(?:"[^"]+"|\w+))*)
failregex = ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Login failed:
^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Two-factor challenge failed:
^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Trusted domain error.
datepattern = ,?\s*"time"\s*:\s*"%%Y-%%m-%%d[T ]%%H:%%M:%%S(%%z)?"