|
|
@ -219,6 +219,9 @@ class Filter(JailThread):
|
|
|
|
# to enable banip fail2ban-client BAN command
|
|
|
|
# to enable banip fail2ban-client BAN command
|
|
|
|
|
|
|
|
|
|
|
|
def addBannedIP(self, ip):
|
|
|
|
def addBannedIP(self, ip):
|
|
|
|
|
|
|
|
if self.inIgnoreIPList(ip):
|
|
|
|
|
|
|
|
logSys.warning('Requested to manually ban an ignored IP ' + ip + '. User knows best. Proceeding to ban it.')
|
|
|
|
|
|
|
|
|
|
|
|
unixTime = MyTime.time()
|
|
|
|
unixTime = MyTime.time()
|
|
|
|
for i in xrange(self.failManager.getMaxRetry()):
|
|
|
|
for i in xrange(self.failManager.getMaxRetry()):
|
|
|
|
self.failManager.addFailure(FailTicket(ip, unixTime))
|
|
|
|
self.failManager.addFailure(FailTicket(ip, unixTime))
|
|
|
|