View Single Post
  #15  
Old 22nd February 2013, 18:36
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,262
Thanks: 78
Thanked 24 Times in 20 Posts
Default

one other error randomly popping up:

Quote:
2013-02-22 12:11:03,690 fail2ban.actions: WARNING [dovecot-pop3imap] Unban 80.87.204.216
2013-02-22 14:47:20,360 fail2ban.actions: WARNING [ssh] Ban 66.133.188.86
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 66.133.188.86
Found a couple of threads that suggested editing iptables-multiport.conf and inserting a sleep command:

Quote:
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