mirror of https://github.com/fail2ban/fail2ban
sebres
5 years ago
9 changed files with 104 additions and 13 deletions
@ -0,0 +1,31 @@ |
|||||||
|
# Fail2Ban configuration file |
||||||
|
# |
||||||
|
|
||||||
|
[INCLUDES] |
||||||
|
|
||||||
|
# Read common prefixes (logtype is set in default section) |
||||||
|
before = ../../../../config/filter.d/common.conf |
||||||
|
|
||||||
|
[Definition] |
||||||
|
|
||||||
|
_daemon = test |
||||||
|
|
||||||
|
failregex = ^<lt_<logtype>/__prefix_line> failure from <HOST>$ |
||||||
|
ignoreregex = |
||||||
|
|
||||||
|
# following sections define prefix line considering logtype: |
||||||
|
|
||||||
|
# backend-related (retrieved from backend, overwrite default): |
||||||
|
[lt_file] |
||||||
|
__prefix_line = FILE |
||||||
|
|
||||||
|
[lt_journal] |
||||||
|
__prefix_line = JRNL |
||||||
|
|
||||||
|
# specified in definition section of filter (see filter checklogtype_test.conf): |
||||||
|
[lt_test] |
||||||
|
__prefix_line = TEST |
||||||
|
|
||||||
|
# specified in init parameter of jail (see ../jail.conf, jail checklogtype_init): |
||||||
|
[lt_init] |
||||||
|
__prefix_line = INIT |
@ -0,0 +1,12 @@ |
|||||||
|
# Fail2Ban configuration file |
||||||
|
# |
||||||
|
|
||||||
|
[INCLUDES] |
||||||
|
|
||||||
|
# Read common prefixes (logtype is set in default section) |
||||||
|
before = checklogtype.conf |
||||||
|
|
||||||
|
[Definition] |
||||||
|
|
||||||
|
# overwrite logtype in definition (no backend anymore): |
||||||
|
logtype = test |
Loading…
Reference in new issue