From a562542523889073f037e76aa174c3105611a10b Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sat, 6 Nov 2004 14:08:04 +0000 Subject: [PATCH] - Remove posix from import - Update help message - Add support for multiple firewall class. It is now really simple to add new ones - Add support for interface selection git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@48 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- fail2ban.py | 51 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/fail2ban.py b/fail2ban.py index f445b584..9ed5738a 100755 --- a/fail2ban.py +++ b/fail2ban.py @@ -26,7 +26,7 @@ __date__ = "$Date$" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" -import posix, time, sys, getopt, os, signal +import time, sys, getopt, os, signal, string from ConfigParser import * # Checks if log4py is present. @@ -40,6 +40,8 @@ except: sys.path.append('/usr/lib/fail2ban') from firewall.iptables import Iptables +from firewall.ipfw import Ipfw +from firewall.ipfwadm import Ipfwadm from logreader.logreader import LogReader from version import version @@ -51,6 +53,7 @@ def usage(): print print " -b start fail2ban in background" print " -d start fail2ban in debug mode" + print " -e ban IP on the INTF interface" print " -f read password failure from FILE" print " -h display this help message" print " -i IP(s) to ignore" @@ -58,6 +61,8 @@ def usage(): print " -r allow a max of VALUE password failure" print " -t