mirror of https://github.com/fail2ban/fail2ban
ENH: tighten regex and change failJSON to support timezone. Closes gh-583
parent
36d38043ba
commit
c8ae064b79
1
THANKS
1
THANKS
|
@ -67,6 +67,7 @@ mEDI
|
||||||
Merijn Schering
|
Merijn Schering
|
||||||
Michael C. Haller
|
Michael C. Haller
|
||||||
Michael Hanselmann
|
Michael Hanselmann
|
||||||
|
Mika (mkl)
|
||||||
Nick Munger
|
Nick Munger
|
||||||
onorua
|
onorua
|
||||||
Patrick Börjesson
|
Patrick Börjesson
|
||||||
|
|
|
@ -6,8 +6,16 @@
|
||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
failregex = Login with username .* from <HOST> failed
|
failregex = ^[\da-f]{5,} [\da-f]{5,} (-- none --|.*?)( \d+(\.\d+)?(h|m|s|ms)){0,2} - WARN \(\d+\): Tinebase_Controller::login::\d+ Login with username .*? from <HOST> failed \(-[13]\)!$
|
||||||
|
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
|
||||||
# Author: mkl from Tine20.org forum
|
# Author: Mika (mkl) from Tine20.org forum: https://www.tine20.org/forum/viewtopic.php?f=2&t=15688&p=54766
|
||||||
|
# Editor: Daniel Black
|
||||||
|
# Advisor: Lars Kneschke
|
||||||
|
#
|
||||||
|
# Usernames can contain spaces.
|
||||||
|
#
|
||||||
|
# Authentication: http://git.tine20.org/git?p=tine20;a=blob;f=tine20/Tinebase/Controller.php#l105
|
||||||
|
# Logger: http://git.tine20.org/git?p=tine20;a=blob;f=tine20/Tinebase/Log/Formatter.php
|
||||||
|
# formatMicrotimeDiff: http://git.tine20.org/git?p=tine20;a=blob;f=tine20/Tinebase/Helper.php#l276
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Wrong username (-1) error
|
||||||
|
# failJSON: { "time": "2014-01-13T06:02:22", "match": true, "host": "127.0.0.1" }
|
||||||
|
78017 00cff -- none -- - 2014-01-13T05:02:22+00:00 WARN (4): Tinebase_Controller::login::106 Login with username sdfsadf from 127.0.0.1 failed (-1)!
|
||||||
|
|
||||||
|
# Wrong password (-3) error
|
||||||
|
# failJSON: { "time": "2014-01-21T05:38:14", "match": true, "host": "127.0.0.1" }
|
||||||
|
8e035 ffff3 -- none -- - 2014-01-21T04:38:14+00:00 WARN (4): Tinebase_Controller::login::106 Login with username testuser from 127.0.0.1 failed (-3)!
|
|
@ -1,2 +0,0 @@
|
||||||
# failJSON: { "time": "2014-01-13T05:02:22", "match": true, "host": "127.0.0.1" }
|
|
||||||
78017 00cff -- none -- - 2014-01-13T05:02:22+00:00 WARN (4): Tinebase_Controller::login::106 Login with username sdfsadf from 127.0.0.1 failed (-1)!
|
|
Loading…
Reference in New Issue