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) "
adding " time.sleep(0.1)" worked like a charm for me. it extends the restart time by 20 or so seconds, but works great.
It is caused by iptables, and the solution is here at the end of the page:
http:// www.fail2ban. org/wiki/ index.php/ Fail2ban_ talk:Community_ Portal
"fail2ban. action. action ERROR on startup/restart
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): setInputCmd( c) "
beautifier = Beautifier() for c in cmd: time.sleep(0.1) beautifier.
adding " time.sleep(0.1)" worked like a charm for me. it extends the restart time by 20 or so seconds, but works great.