Skip to content

Commit e8b5e7e

Browse files
authored
Merge pull request #24 from jeblove/master
2 parents 44f4703 + 49f80d5 commit e8b5e7e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

filter.d/authelia-auth.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2022/08/06
1+
## Version 2024/01/19
22
# Fail2Ban filter configuration for authelia
33

44
[INCLUDES]
@@ -11,11 +11,11 @@ before = common.conf
1111
[Definition]
1212

1313
# this counts every failed login (wrong username or password) and failed TOTP entry as a failure
14-
failregex = ^.*Unsuccessful (1FA|TOTP|Duo|U2F) authentication attempt by user .*remote_ip="?<HOST>"? stack.*
15-
(?i)^.*access to .*is not authorized.*remote_ip=<HOST>
16-
^.* is banned until .*remote_ip=<HOST> stack.*
14+
failregex = ^.*Unsuccessful (1FA|TOTP|Duo|U2F) authentication attempt by user .*remote_ip"?(:|=)"?<HOST>"?.*$
15+
(?i)^.*access to .*is not authorized.*remote_ip"?(:|=)"?<HOST>"?.*$
16+
^.* is banned until .*remote_ip"?(:|=)"?<HOST>"?.*$
1717

1818
# we can ignore debug, info and warning messages as all authentication failures are flagged as level=error by Authelia
19-
ignoreregex = ^.*level=debug.*
20-
^.*level=info.*
21-
^.*level=warning.*
19+
ignoreregex = ^.*level"?(:|=)"?info.*
20+
^.*level"?(:|=)"?warning.*
21+
^.*level"?(:|=)"?debug.*

0 commit comments

Comments
 (0)