mirror of https://github.com/fail2ban/fail2ban
combine both REs to single RE, no prefregex needed here
parent
a9401233dd
commit
13563fd09b
|
@ -20,15 +20,15 @@ before = common.conf
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
_daemon = [Ff]roxlor
|
_daemon = [Ff]roxlor
|
||||||
|
|
||||||
|
_re = (?:Unknown )?[uU]ser(?: '<F-USER>(?:\S*|[^']*)</F-USER>')? tried to login(?: with wrong password)?\.
|
||||||
|
|
||||||
[type1]
|
[type1]
|
||||||
prefregex = ^%(__prefix_line)s\[Login Action <HOST>\] <F-CONTENT>.+</F-CONTENT>$
|
failregex = ^%(__prefix_line)s\[Login Action <ADDR>\] %(_re)s$
|
||||||
|
|
||||||
[type2]
|
[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]
|
[Definition]
|
||||||
type = 2
|
type = 2
|
||||||
prefregex = <type<type>/prefregex>
|
failregex = <type<type>/failregex>
|
||||||
failregex = ^Unknown user(?: <F-USER>\S*</F-USER>)? tried to login\.$
|
|
||||||
^User(?: <F-USER>\S*</F-USER>)? tried to login with wrong password\.$
|
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
|
Loading…
Reference in New Issue