added new jail (and filter) Monitorix

pull/2679/head
Jordi Sanfeliu 2020-04-03 12:52:19 +02:00
parent 6e570b8644
commit ede2009708
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# Fail2Ban filter for Monitorix (HTTP built-in server)
#
[INCLUDES]
before = common.conf
[Definition]
_daemon = monitorix-httpd
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>\S+)
# Values: TEXT
#
failregex = NOTEXIST - \[<HOST>\] .*
AUTHERR - \[<HOST>\] .*
NOTALLOWED - \[<HOST>\] .*
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =

View File

@ -951,3 +951,8 @@ logpath = %(apache_error_log)s
# see `filter.d/traefik-auth.conf` for details and service example. # see `filter.d/traefik-auth.conf` for details and service example.
port = http,https port = http,https
logpath = /var/log/traefik/access.log logpath = /var/log/traefik/access.log
[monitorix]
port = 8080
logpath = /var/log/monitorix-httpd