Mercurial > repos > other > Puppet
annotate common/fail2ban/ibb-repeat-offender.conf @ 168:b13e0de66b54 puppet-3.6
Change MySQL/MariaDB settings to support all Unicode
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 01 Sep 2017 11:29:55 +0100 |
parents | 5b9ba754d2ff |
children | 8fa6623f1e5f |
rev | line source |
---|---|
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 # IBB-Repeat-Offender configuration file |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 # |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 # Author: Tom Hendrikx, minor modifications by Amir Caspi |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 # See http://whyscream.net/wiki/index.php/Fail2ban_monitoring_Fail2ban |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
5 # Renamed by IBBoard for consistency |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 # |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 # $Revision: 1 $ |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 # |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 [Definition] |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 # Option: failregex |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 # Notes.: regex to match the password failures messages in the logfile. The |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 # host must be matched by a group named "host". The tag "<HOST>" can |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 # be used for standard IP/hostname matching and is only an alias for |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 # (?:::f{4,6}:)?(?P<host>[\w\-.^_]+) |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
17 # Values: TEXT |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 # |
43
5b9ba754d2ff
Update the "repeat offender" rule so that a) it works, and b) "already banned"* also counts as repeat
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
19 failregex = WARNING\s+\[(?:.*)\]\s+Ban\s+<HOST> |
5b9ba754d2ff
Update the "repeat offender" rule so that a) it works, and b) "already banned"* also counts as repeat
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
20 INFO\s+\[(?:.*)\]\s+<HOST> already banned |
0
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
22 # Option: ignoreregex |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
23 # Notes.: regex to ignore. If this regex matches, the line is ignored. |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
24 # Values: TEXT |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
25 # |
956e484adc12
Initial public release of Puppet configs
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 ignoreregex = fail2ban.actions:\s+WARNING\s+\[(ibb-repeat-offender|[^\]]+warning)\]\s+Ban\s+<HOST> |