Skip to content

Commit 0c0e0f0

Browse files
authored
Fix Emby matching
It is unknown when it happened but the existing fail2ban Emby filter no longer matches any failed login requests of any type in testing here. This simplified match catches the new? `AUTH-ERROR` log.
1 parent 01d60e2 commit 0c0e0f0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

filter.d/emby-auth.conf

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2022/08/06
1+
## Version 2023/03/11
22
# Fail2Ban filter for emby
33

44
[INCLUDES]
@@ -8,14 +8,6 @@ before = common.conf
88

99
_daemon = emby-server
1010

11-
failregex = ^.*Info HttpServer: HTTP Response 401 to <HOST>.*authenticatebyname.*$
12-
^.*Info HttpServer: HTTP Response 500 to <HOST>.*mediabrowser/Users/None.*$
11+
failregex = Server: AUTH-ERROR:\ <HOST>\ -
1312

1413
ignoreregex =
15-
16-
# DEV Notes:
17-
#
18-
# Matching on http 401 with a trailing url including 'authenticatebyname' to catch incorrect passwords
19-
# Matching on http 500 with a trailing url including 'mediabrowser/Users/None' to catch incorrect usernames
20-
#
21-

0 commit comments

Comments
 (0)