Rev 192 |
Details |
Compare with Previous |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
192 |
- |
1 |
# Fail2Ban filter for monit.conf, looks for failed access attempts
|
|
|
2 |
#
|
|
|
3 |
#
|
|
|
4 |
|
|
|
5 |
[INCLUDES]
|
|
|
6 |
|
|
|
7 |
# Read common prefixes. If any customizations available -- read them from
|
|
|
8 |
# common.local
|
|
|
9 |
before = common.conf
|
|
|
10 |
|
193 |
- |
11 |
# [DEFAULT]
|
|
|
12 |
# logtype = short
|
|
|
13 |
|
192 |
- |
14 |
[Definition]
|
|
|
15 |
|
|
|
16 |
_daemon = monit
|
|
|
17 |
|
193 |
- |
18 |
_prefix = Warning|HttpRequest
|
|
|
19 |
|
192 |
- |
20 |
# Regexp for previous (accessing monit httpd) and new (access denied) versions
|
193 |
- |
21 |
failregex = ^%(__prefix_line)s(?:error\s*:\s+)?(?:%(_prefix)s):\s+(?:access denied\s+--\s+)?[Cc]lient '?<HOST>'?(?:\s+supplied|\s*:)\s+(?:unknown user '<F-ALT_USER>[^']+</F-ALT_USER>'|wrong password for user '<F-USER>[^']*</F-USER>'|empty password)
|
192 |
- |
22 |
|
|
|
23 |
# Ignore login with empty user (first connect, no user specified)
|
|
|
24 |
# ignoreregex = %(__prefix_line)s\w+: access denied -- client <HOST>: (?:unknown user '')
|
|
|
25 |
ignoreregex =
|