View Single Post
Old 22nd February 2013, 19:36
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

one other error randomly popping up:

2013-02-22 12:11:03,690 fail2ban.actions: WARNING [dovecot-pop3imap] Unban
2013-02-22 14:47:20,360 fail2ban.actions: WARNING [ssh] Ban
2013-02-22 14:47:20,365 fail2ban.actions.action: ERROR iptables -n -L INPUT | grep -q fail2ban-ssh returned 100
2013-02-22 14:47:20,366 fail2ban.actions.action: ERROR Invariant check failed. Trying to restore a sane environment
2013-02-22 14:47:20,375 fail2ban.actions.action: ERROR iptables -D INPUT -p tcp -m multiport --dports 2222 -j fail2ban-ssh
iptables -F fail2ban-ssh
iptables -X fail2ban-ssh returned 100
2013-02-22 15:47:20,857 fail2ban.actions: WARNING [ssh] Unban
Found a couple of threads that suggested editing iptables-multiport.conf and inserting a sleep command:

actionstart = sleep `perl -e 'print rand(3);'`
iptables -N fail2ban-<name>
iptables -A fail2ban-<name> -j RETURN
iptables -I INPUT -p <protocol> -m multiport --dports <port> -j fail2ban-<name>
but that didn't help. Anyone any other ideas?
Reply With Quote