LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-12-2011, 01:03 PM   #1
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
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
 
Old 09-12-2011, 01:10 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Welcome to LQ

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

Kind regards
 
Old 09-13-2011, 04:21 PM   #3
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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?

Last edited by Patrick032986; 09-13-2011 at 04:44 PM.
 
Old 09-14-2011, 02:50 AM   #4
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
bump
 
Old 09-16-2011, 12:45 AM   #5
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
this pose needs to be moved up again.
 
Old 09-18-2011, 08:15 AM   #6
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
another bump since I haven't gotten a reply yet
 
Old 09-18-2011, 08:33 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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
 
Old 09-18-2011, 05:01 PM   #8
Patrick032986
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I will try that Repo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail2ban regex help please wvroger Linux - Security 1 05-23-2010 08:30 PM
I need help with fail2ban... trist007 Linux - Newbie 15 12-14-2009 04:22 AM
Fail2ban and Slack Biggen Slackware 10 06-20-2009 09:30 AM
Need help with fail2ban regex jakev383 Linux - Security 6 12-07-2008 10:35 AM
Fail2ban and Firestarter baldur2630 Linux - Software 2 09-29-2008 06:46 AM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration