Difference between revisions of "Network/Security"
Jump to navigation
Jump to search
(Created page with "== Fail2ban == (taken from [http://askubuntu.com/questions/27601/what-are-fail2bans-log-iptables-returned-nnn-entries-fail2ban-is-failing-to askubuntu]) "There's a (seemingl...") |
(No difference)
|
Latest revision as of 12:43, 21 March 2012
Fail2ban
(taken from askubuntu)
"There's a (seemingly) faulty fail2ban script that apparently 'runs too quickly', so I found a workaround.
Quoting: I had multiple fail2ban.action.action ERROR on startup/restart. It seems there was a "race" condition with iptables. I solved the problem completely on my system by editing /usr/bin/fail2ban-client and adding a time.sleep(0.1):"
def __processCmd(self, cmd, showRet = True): beautifier = Beautifier() for c in cmd: time.sleep(0.1) beautifier.setInputCmd(c)