diff --git a/ChangeLog b/ChangeLog index f45718d3..1d9c96a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -53,6 +53,14 @@ ver. 0.10.5-dev-1 (20??/??/??) - development edition ### Enhancements * jail-reader extended (amend to gh-1622): actions support multi-line options now (interpolations containing new-line); +* fail2ban-client: extended to ban/unban multiple tickets (see gh-2351, gh-2349); + Syntax: + - `fail2ban-client set banip ... ` + - `fail2ban-client set unbanip [--report-absent] ... ` +* fail2ban-client: extended with new feature which allows to inform fail2ban about single or multiple + attempts (failure) for IP (resp. failure-ID), see gh-2351; + Syntax: + - `fail2ban-client set attempt [ ... ]` ver. 0.10.4 (2018/10/04) - ten-four-on-due-date-ten-four diff --git a/fail2ban/client/jailreader.py b/fail2ban/client/jailreader.py index b8a89380..14fc39a1 100644 --- a/fail2ban/client/jailreader.py +++ b/fail2ban/client/jailreader.py @@ -246,8 +246,7 @@ class JailReader(ConfigReader): elif opt == "backend": backend = value elif opt == "ignoreip": - for ip in splitwords(value): - stream.append(["set", self.__name, "addignoreip", ip]) + stream.append(["set", self.__name, "addignoreip"] + splitwords(value)) elif opt in ("failregex", "ignoreregex"): multi = [] for regex in value.split('\n'): diff --git a/fail2ban/protocol.py b/fail2ban/protocol.py index b21ab848..de9665f8 100644 --- a/fail2ban/protocol.py +++ b/fail2ban/protocol.py @@ -99,8 +99,9 @@ protocol = [ ["set bantime