Fail2Ban Error – Iptables returned 200

This relates to seeing things like this in /var/log/fail2ban.log when restarting the fail2ban service:

2011-12-21 23:06:03,471 fail2ban.actions.action: ERROR  iptables -D INPUT -p tcp -m multiport --dports http,https -j fail2ban-apache-wordpress-login
iptables -F fail2ban-apache-wordpress-login
iptables -X fail2ban-apache-wordpress-login returned 200

The very simple cause is that iptables only allows rules of up to 30 characters. In the above case, changing the name of the filter to ‘apache-wp-login’ did the trick.

  1. Very interesting information!Perfect just what I was searching for!

  2. Thankyou for helping out, good info .

  3. I was searching this error for 2 days. Finally, I got you. Thank you very much. You save my life !!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>