Subversion Repositories configs

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 - 1
# Fail2Ban apache-auth filter
2
#
3
 
4
[INCLUDES]
5
 
6
# Read common prefixes. If any customizations available -- read them from
7
# apache-common.local
8
before = apache-common.conf
9
 
10
[Definition]
11
 
12
 
33 - 13
failregex = ^%(_apache_error_client)s (AH(01797|01630): )?client denied by server configuration: (uri )?\S*(, referer: \S+)?\s*$
3 - 14
            ^%(_apache_error_client)s (AH01617: )?user .*? authentication failure for "\S*": Password Mismatch(, referer: \S+)?$
15
            ^%(_apache_error_client)s (AH01618: )?user .*? not found(: )?\S*(, referer: \S+)?\s*$
16
            ^%(_apache_error_client)s (AH01614: )?client used wrong authentication scheme: \S*(, referer: \S+)?\s*$
17
            ^%(_apache_error_client)s (AH\d+: )?Authorization of user \S+ to access \S* failed, reason: .*$
18
            ^%(_apache_error_client)s (AH0179[24]: )?(Digest: )?user .*?: password mismatch: \S*(, referer: \S+)?\s*$
19
            ^%(_apache_error_client)s (AH0179[01]: |Digest: )user `.*?' in realm `.+' (not found|denied by provider): \S*(, referer: \S+)?\s*$
20
            ^%(_apache_error_client)s (AH01631: )?user .*?: authorization failure for "\S*":(, referer: \S+)?\s*$
21
            ^%(_apache_error_client)s (AH01775: )?(Digest: )?invalid nonce .* received - length is not \S+(, referer: \S+)?\s*$
22
            ^%(_apache_error_client)s (AH01788: )?(Digest: )?realm mismatch - got `.*?' but expected `.+'(, referer: \S+)?\s*$
23
            ^%(_apache_error_client)s (AH01789: )?(Digest: )?unknown algorithm `.*?' received: \S*(, referer: \S+)?\s*$
24
            ^%(_apache_error_client)s (AH01793: )?invalid qop `.*?' received: \S*(, referer: \S+)?\s*$
25
            ^%(_apache_error_client)s (AH01777: )?(Digest: )?invalid nonce .*? received - user attempted time travel(, referer: \S+)?\s*$
26
 
27
ignoreregex =
28
 
29
# DEV Notes:
30
#
31
# This filter matches the authorization failures of Apache. It takes the log messages
32
# from the modules in aaa that return HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED or
33
# HTTP_FORBIDDEN and not AUTH_GENERAL_ERROR or HTTP_INTERNAL_SERVER_ERROR.
34
#
35
# An unauthorized response 401 is the first step for a browser to instigate authentication
36
# however apache doesn't log this as an error. Only subsequent errors are logged in the
37
# error log.
38
#
39
# Source:
40
#
41
# By searching the code in http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/*
42
# for ap_log_rerror(APLOG_MARK, APLOG_ERR and examining resulting return code should get
43
# all of these expressions. Lots of submodules like mod_authz_* return back to mod_authz_core
44
# to return the actual failure.
45
#
46
# See also: http://wiki.apache.org/httpd/ListOfErrors
47
# Expressions that don't have tests and aren't common.
48
# more be added with  https://issues.apache.org/bugzilla/show_bug.cgi?id=55284
49
#     ^%(_apache_error_client)s (AH01778: )?user .*: nonce expired \([\d.]+ seconds old - max lifetime [\d.]+\) - sending new nonce\s*$
50
#     ^%(_apache_error_client)s (AH01779: )?user .*: one-time-nonce mismatch - sending new nonce\s*$
51
#     ^%(_apache_error_client)s (AH02486: )?realm mismatch - got `.*' but no realm specified\s*$
52
#
53
# referer is always in error log messages if it exists added as per the log_error_core function in server/log.c
54
#
55
# Author: Cyril Jaquier
56
# Major edits by Daniel Black