mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2020-10-15 Fred Gleason <fredg@paravelsystems.com>
* 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>
This commit is contained in:
38
conf/rivendell-webapi.conf
Normal file
38
conf/rivendell-webapi.conf
Normal file
@@ -0,0 +1,38 @@
|
||||
# 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 =
|
Reference in New Issue
Block a user