File: zzz-generic-example.conf

package info (click to toggle)
fail2ban 0.10.2-2~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 3,564 kB
  • sloc: python: 17,464; sh: 559; xml: 352; perl: 344; makefile: 196
file content (27 lines) | stat: -rw-r--r-- 1,045 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Fail2Ban generic example resp. test filter 
#
# Author: Serg G. Brester (sebres)
#

[INCLUDES]

# Read common prefixes. If any customizations available -- read them from
# common.local.  common.conf is a symlink to the original common.conf and
# should be copied (dereferenced) during installation
before = ../../../../../../../config/filter.d/common.conf

[Definition]

_daemon = test-demo

failregex = ^%(__prefix_line)sF2B: failure from <HOST>$
            ^%(__prefix_line)sF2B: error from <HOST>$

# just to test multiple ignoreregex:
ignoreregex = ^%(__prefix_line)sF2B: error from 192.0.2.251$
              ^%(__prefix_line)sF2B: error from 192.0.2.252$

# specify only exact date patterns, +1 with %%Y to test usage of last known date by wrong dates like 0000-00-00...
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
              {^LN-BEG}(?:%%a )?%%b %%d %%H:%%M:%%S(?:\.%%f)?(?: %%ExY)?
              {^LN-BEG}%%Y(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?