mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08:00
combine both REs to single RE, no prefregex needed here
This commit is contained in:
@@ -20,15 +20,15 @@ before = common.conf
|
||||
[DEFAULT]
|
||||
_daemon = [Ff]roxlor
|
||||
|
||||
_re = (?:Unknown )?[uU]ser(?: '<F-USER>(?:\S*|[^']*)</F-USER>')? tried to login(?: with wrong password)?\.
|
||||
|
||||
[type1]
|
||||
prefregex = ^%(__prefix_line)s\[Login Action <HOST>\] <F-CONTENT>.+</F-CONTENT>$
|
||||
failregex = ^%(__prefix_line)s\[Login Action <ADDR>\] %(_re)s$
|
||||
|
||||
[type2]
|
||||
prefregex = ^%(__prefix_line)sfroxlor\.WARNING: <F-CONTENT>.+</F-CONTENT> \{(?:"[^"]+":"[^"]*",\s*){,5}"user":"<ADDR>"\} \[\]$
|
||||
failregex = ^%(__prefix_line)sfroxlor\.WARNING: %(_re)s \{(?:"[^"]+":"[^"]*",\s*){,5}"user":"<ADDR>"\} \[\]$
|
||||
|
||||
[Definition]
|
||||
type = 2
|
||||
prefregex = <type<type>/prefregex>
|
||||
failregex = ^Unknown user(?: <F-USER>\S*</F-USER>)? tried to login\.$
|
||||
^User(?: <F-USER>\S*</F-USER>)? tried to login with wrong password\.$
|
||||
failregex = <type<type>/failregex>
|
||||
ignoreregex =
|
||||
|
||||
Reference in New Issue
Block a user