mirror of https://github.com/fail2ban/fail2ban
ENH: continue with rest of fail2ban config even if errors. Closes gh-585
parent
2647461a3c
commit
058621f9bd
|
@ -36,6 +36,8 @@ ver. 0.8.12 (2013/12/XX) - things-can-only-get-better
|
||||||
a specific jail.
|
a specific jail.
|
||||||
- Filter dovecot reordered session and TLS items in regex with wider scope
|
- Filter dovecot reordered session and TLS items in regex with wider scope
|
||||||
for session characters. Thanks Ivo Truxa. Closes gh-586
|
for session characters. Thanks Ivo Truxa. Closes gh-586
|
||||||
|
- A single bad failregex or command syntax in configuration files won't stop
|
||||||
|
fail2ban from starting. Thanks Tomasz Ciolek. Closes gh-585.
|
||||||
|
|
||||||
- Enhancements:
|
- Enhancements:
|
||||||
- long names on jails documented based on iptables limit of 30 less
|
- long names on jails documented based on iptables limit of 30 less
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -82,6 +82,7 @@ Stephen Gildea
|
||||||
Steven Hiscocks
|
Steven Hiscocks
|
||||||
Tom Pike
|
Tom Pike
|
||||||
Tomas Pihl
|
Tomas Pihl
|
||||||
|
Tomasz Ciolek
|
||||||
Tyler
|
Tyler
|
||||||
Vaclav Misek
|
Vaclav Misek
|
||||||
Vincent Deffontaines
|
Vincent Deffontaines
|
||||||
|
|
|
@ -145,6 +145,7 @@ class Fail2banClient:
|
||||||
|
|
||||||
def __processCmd(self, cmd, showRet = True):
|
def __processCmd(self, cmd, showRet = True):
|
||||||
beautifier = Beautifier()
|
beautifier = Beautifier()
|
||||||
|
ret = True
|
||||||
for c in cmd:
|
for c in cmd:
|
||||||
beautifier.setInputCmd(c)
|
beautifier.setInputCmd(c)
|
||||||
try:
|
try:
|
||||||
|
@ -155,10 +156,10 @@ class Fail2banClient:
|
||||||
if showRet:
|
if showRet:
|
||||||
print beautifier.beautify(ret[1])
|
print beautifier.beautify(ret[1])
|
||||||
else:
|
else:
|
||||||
|
ret = False
|
||||||
logSys.error("NOK: " + `ret[1].args`)
|
logSys.error("NOK: " + `ret[1].args`)
|
||||||
if showRet:
|
if showRet:
|
||||||
print beautifier.beautifyError(ret[1])
|
print beautifier.beautifyError(ret[1])
|
||||||
return False
|
|
||||||
except socket.error:
|
except socket.error:
|
||||||
if showRet:
|
if showRet:
|
||||||
logSys.error("Unable to contact server. Is it running?")
|
logSys.error("Unable to contact server. Is it running?")
|
||||||
|
@ -167,7 +168,7 @@ class Fail2banClient:
|
||||||
if showRet:
|
if showRet:
|
||||||
logSys.error(e)
|
logSys.error(e)
|
||||||
return False
|
return False
|
||||||
return True
|
return ret
|
||||||
|
|
||||||
##
|
##
|
||||||
# Process a command line.
|
# Process a command line.
|
||||||
|
|
Loading…
Reference in New Issue