Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions filter.d/authelia-auth.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2022/08/06
## Version 2024/01/19
# Fail2Ban filter configuration for authelia

[INCLUDES]
Expand All @@ -11,11 +11,11 @@ before = common.conf
[Definition]

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

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