From e12db53bf76311eb463d9cee434fa41baaa1835d Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Wed, 26 Oct 2005 21:57:03 +0000 Subject: [PATCH] - Added "fwcheck" option to verify consistency of the firewall - Added section in email - Added "-f" command line option - Reordered code a bit Many thanks to Yaroslav Halchenko git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@211 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- fail2ban.py | 168 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 120 insertions(+), 48 deletions(-) diff --git a/fail2ban.py b/fail2ban.py index 492b73db..5a630be8 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -25,7 +25,7 @@ __date__ = "$Date$" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import time, sys, getopt, os, string, signal, logging, logging.handlers +import time, sys, getopt, os, string, signal, logging, logging.handlers, copy from ConfigParser import * from version import version @@ -62,8 +62,9 @@ def dispUsage(): print " -h display this help message" print " -i IP(s) to ignore" print " -k kill a currently running instance" - print " -r allow a max of VALUE password failure" - print " -t