|
|
@ -297,6 +297,14 @@ class Fail2banRegex(object):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.setJournalMatch(shlex.split(journalmatch))
|
|
|
|
self.setJournalMatch(shlex.split(journalmatch))
|
|
|
|
|
|
|
|
# Read out and set possible value for journalmatch
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
datepattern = reader.get("Init", "datepattern")
|
|
|
|
|
|
|
|
except (NoSectionError, NoOptionError):
|
|
|
|
|
|
|
|
# No [Init].datepattern found.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.setDatePattern(datepattern)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print "Use %11s line : %s" % (regex, shortstr(value))
|
|
|
|
print "Use %11s line : %s" % (regex, shortstr(value))
|
|
|
|
regex_values = [RegexStat(value)]
|
|
|
|
regex_values = [RegexStat(value)]
|
|
|
|