LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fail2Ban (https://www.linuxquestions.org/questions/linux-software-2/fail2ban-902621/)

Patrick032986 09-12-2011 12:03 PM

Fail2Ban
 
Hi,

I have an issue with fail2ban and I was wondering if someone can help me fix

fail2ban.actions: WARNING
[apache-folder-hunter]
Unban 85.190.0.3
2011-09-11 07:47:56,321 fail2ban.actions.action: ERROR iptables -n
-L
INPUT | grep -q fail2ban-apache-folder-hunter returned 100
<>2011-09-11 07:47:56,321 fail2ban.actions.action: ERROR Invariant
check
failed. Trying to restore a sane environment
2011-09-11 07:47:56,333 fail2ban.actions.action: ERROR iptables -D
INPUT -p tcp -m multiport --dports http,https -j
fail2ban-apache-folder-hunter
iptables -F fail2ban-apache-folder-hunter
iptables -X fail2ban-apache-folder-hunter returned 100
2011-09-11 07:47:56,361 fail2ban.actions.action: ERROR iptables -D
fail2ban-apache-folder-hunter -s 85.190.0.3 -j DROP returned 100

repo 09-12-2011 12:10 PM

Welcome to LQ

Make sure the PATH to the executable of iptables is in your PATH.

Kind regards

Patrick032986 09-13-2011 03:21 PM

Repo thanks for your reply the PATH is set right I am got a different answer as well on there mailing list saying it maybe a bug or counter-play with my firewall do you think it might be my firewall cause I am out of options the PATH is set right. I also have added time.sleep(0.1) to my fail2ban-client. I thought it might of been my iptables running really slow but it's not that. The firewall im using is Advanced Policy Firewall has anyone ran into an issue with fail2ban not working well with apf?

Patrick032986 09-14-2011 01:50 AM

bump

Patrick032986 09-15-2011 11:45 PM

this pose needs to be moved up again.

Patrick032986 09-18-2011 07:15 AM

another bump since I haven't gotten a reply yet

repo 09-18-2011 07:33 AM

Quote:

The firewall im using is Advanced Policy Firewall has anyone ran into an issue with fail2ban not working well with apf?
How about disabling apf, set up a basic firewall with iptables and see if the problem persist?

Kind regards

Patrick032986 09-18-2011 04:01 PM

I will try that Repo


All times are GMT -5. The time now is 05:32 AM.