From f5e2ae1c02a4714f154cd66063ca864118ed2e59 Mon Sep 17 00:00:00 2001 From: lostcontrol Date: Sat, 18 Nov 2006 15:15:58 +0000 Subject: [PATCH] - Merged "maxtime" with "findtime" git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@470 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- CHANGELOG | 1 + client/jailreader.py | 6 +-- common/protocol.py | 3 -- config/jail.conf | 4 +- man/fail2ban-client.1 | 110 +++++++++++++++++++----------------------- server/filter.py | 18 +------ server/server.py | 6 --- server/transmitter.py | 6 --- 8 files changed, 56 insertions(+), 98 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 4b82a3e9..6db6427e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,7 @@ ver. 0.7.5 (2006/??/??) - ??? - Fixed a bug in user defined time regex/pattern - Improved documentation - Moved version.py and protocol.py to common/ +- Merged "maxtime" option with "findtime" ver. 0.7.4 (2006/11/01) - beta ---------- diff --git a/client/jailreader.py b/client/jailreader.py index 34bb1e8d..bb408876 100644 --- a/client/jailreader.py +++ b/client/jailreader.py @@ -60,7 +60,7 @@ class JailReader(ConfigReader): ["string", "logpath", "/var/log/messages"], ["string", "backend", "auto"], ["int", "maxretry", 3], - ["int", "maxtime", 600], + ["int", "findtime", 600], ["int", "bantime", 600], ["string", "failregex", None], ["string", "ignoreregex", None], @@ -113,8 +113,8 @@ class JailReader(ConfigReader): elif opt == "ignoreip": for ip in self.__opts[opt].split(): stream.append(["set", self.__name, "addignoreip", ip]) - elif opt == "maxtime": - stream.append(["set", self.__name, "maxtime", self.__opts[opt]]) + elif opt == "findtime": + stream.append(["set", self.__name, "findtime", self.__opts[opt]]) elif opt == "bantime": stream.append(["set", self.__name, "bantime", self.__opts[opt]]) elif opt == "failregex": diff --git a/common/protocol.py b/common/protocol.py index 0a5910be..01c0c984 100644 --- a/common/protocol.py +++ b/common/protocol.py @@ -52,7 +52,6 @@ protocol = [ ["set timepattern ", "sets the pattern to match the date format for . This will disable the autodetection feature."], ["set failregex ", "sets the regular expression which must match failures for "], ["set ignoreregex ", "sets the regular expression which should match pattern to exclude for "], -["set maxtime