From 00a67179535988c3344d8559eae2976bc55a6d92 Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 20 Feb 2019 16:47:53 +0100 Subject: [PATCH] fail2ban-client: extended with new feature which allows to inform fail2ban about single or multiple attempts (failure) for IP (failure-ID), syntax: set attempt [ ... ] --- fail2ban/protocol.py | 1 + fail2ban/server/filter.py | 28 ++++++++++++++++++++++++++++ fail2ban/server/server.py | 5 ++++- fail2ban/server/transmitter.py | 3 +++ fail2ban/tests/filtertestcase.py | 8 ++++++++ fail2ban/tests/servertestcase.py | 19 +++++++++++++++++++ man/fail2ban-client.1 | 3 +++ 7 files changed, 66 insertions(+), 1 deletion(-) diff --git a/fail2ban/protocol.py b/fail2ban/protocol.py index d8e617a9..de9665f8 100644 --- a/fail2ban/protocol.py +++ b/fail2ban/protocol.py @@ -99,6 +99,7 @@ protocol = [ ["set bantime