Cyril Jaquier 2005-07-22 21:13:19 +00:00
parent a3f30d8555
commit 02386131e9
1 changed files with 7 additions and 4 deletions

View File

@ -27,12 +27,13 @@ __license__ = "GPL"
import time, sys, getopt, os, string, signal, log4py import time, sys, getopt, os, string, signal, log4py
from ConfigParser import * from ConfigParser import *
from version import version
from firewall.firewall import Firewall from firewall.firewall import Firewall
from logreader.logreader import LogReader from logreader.logreader import LogReader
from confreader.configreader import ConfigReader from confreader.configreader import ConfigReader
from utils.process import *
from utils.mail import Mail from utils.mail import Mail
from version import version from utils.dns import *
from utils.process import *
# Gets the instance of log4py. # Gets the instance of log4py.
logSys = log4py.Logger().get_instance() logSys = log4py.Logger().get_instance()
@ -305,8 +306,10 @@ def main():
element[1].addIgnoreIP("127.0.0.1") element[1].addIgnoreIP("127.0.0.1")
while len(ignoreIPList) > 0: while len(ignoreIPList) > 0:
ip = ignoreIPList.pop() ip = ignoreIPList.pop()
for element in logFwList: # Bug fix for #1239557
element[1].addIgnoreIP(ip) if isValidIP(ip):
for element in logFwList:
element[1].addIgnoreIP(ip)
logSys.info("Fail2Ban v"+version+" is running") logSys.info("Fail2Ban v"+version+" is running")
# Execute global start command # Execute global start command