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