mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-07 09:23:22 +02:00
* Added a 'RDApplication::logAuthenticationFailure()' method. * Added a sample Fail2Ban jail filter for the WebAPI in 'conf/rivendell-webapi.conf'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Fail2Ban jail filter for Rivendell WebAPI
|
|
#
|
|
# (C) Copyright 2020 Fred Gleason <fredg@paravelsystems.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public
|
|
# License along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
#
|
|
# To enable this, put entries like this in your '/etc/fail2ban/jail.local'
|
|
# file:
|
|
#
|
|
# [rivendell-webapi]
|
|
# enabled = true
|
|
# filter = rivendell-webapi
|
|
# logpath = /var/log/rivendell/operations
|
|
# port = http,https
|
|
#
|
|
|
|
[INCLUDES]
|
|
|
|
before = common.conf
|
|
|
|
after = rivendell-webapi.local
|
|
|
|
[Definition]
|
|
|
|
failregex = failed WebAPI login from <HOST>
|
|
ignoreregex =
|
|
journalmatch =
|