mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-09-21 07:38:24 +00:00
New ignorecommand that is added to the ignoreip list from output of an external program
ignorecommand update man and fix protocol help ENH: run ignore command only after internal list has been examined. Change interface on ignorecommand to take IP as environment variable and return true if it is to be banned ENH: ignore IP command to take tagged command DOC: man pages for ingorecommand TST: add test cases for ignorecommand
This commit is contained in:
parent
a8ea347fe3
commit
ebd89ec077
11 changed files with 70 additions and 3 deletions
|
|
@ -54,7 +54,9 @@ class FilterReader(ConfigReader):
|
|||
|
||||
def getOptions(self, pOpts):
|
||||
opts = [["string", "ignoreregex", ""],
|
||||
["string", "failregex", ""]]
|
||||
["string", "failregex", ""],
|
||||
["string", "ignorecommand", ""]
|
||||
]
|
||||
self.__opts = ConfigReader.getOptions(self, "Definition", opts, pOpts)
|
||||
|
||||
def convert(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue