LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-17-2010, 04:41 PM   #1
thinktink
LQ Newbie
 
Registered: Jun 2010
Posts: 22

Rep: Reputation: 0
Purge and reinstall of Fail2Ban on Ubuntu 10.04 is failing


I've installed fail2ban before, apt-get purged it, and then reinstalled it.

I don't know if it was doing it before the purge but I'm getting an error when I try to enable jails and reload it:

Code:
user@homeserver:~$ su
Password: 
root@homeserver:/home/user# fail2ban-client reload
WARNING 'findtime' not defined in 'apache-noscript'. Using default value
ERROR  Error in action definition action = iptables-allports[name=apache-noscript, port="http,https", protocol="tcp]
ERROR  Errors in jail 'apache-noscript'. Skipping...
root@homeserver:/home/user#
I looked at the action files but I can't find anything obviously wrong right away. Anybody seen this before?
 
Old 10-17-2010, 05:59 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thinktink View Post
I've installed fail2ban before, apt-get purged it, and then reinstalled it.
I'm not sure why you would want to do that in the first place. That is not the Linux way of fixing things.


Quote:
Originally Posted by thinktink View Post
Code:
WARNING 'findtime' not defined in 'apache-noscript'. Using default value
If findtime is not defined fail2ban uses its default jail.conf value. That's OK.


Quote:
Originally Posted by thinktink View Post
Code:
ERROR  Error in action definition action = iptables-allports[name=apache-noscript, port="http,https", protocol="tcp]
Maybe you deleted part of the line? The 'protocol="tcp]' part looks like it's missing a double quote. Double quotes are only necessary when using multiple items like 'protocol="tcp,udp"'.
 
Old 10-17-2010, 09:41 PM   #3
thinktink
LQ Newbie
 
Registered: Jun 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
I'm not sure why you would want to do that in the first place. That is not the Linux way of fixing things.
I did that because I did accidentally change a value and I couldn't remember what it was before so I yanked the install to purge the corrupted value and installed fresh to work with.


Quote:
Originally Posted by unSpawn View Post
Maybe you deleted part of the line? The 'protocol="tcp]' part looks like it's missing a double quote. Double quotes are only necessary when using multiple items like 'protocol="tcp,udp"'.
Nope, I didn't mess with that part of the file. And it was also replaced with the purge/reinstall.

[EDIT /]
I just did another apt-get purge then reinstall. It's starting working again. Now all I get are the warnings.

Last edited by thinktink; 10-17-2010 at 10:06 PM. Reason: update
 
Old 10-18-2010, 02:18 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thinktink View Post
I did that because I did accidentally change a value and I couldn't remember what it was before
Making a backup of the file you're about to edit may be quicker, more efficient. Maybe that's something to try next time. Making regular backups is good anyway.
 
  


Reply

Tags
fail2ban, install, reinstall, ubuntu



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu tweak 0.5.5 released with Purge PPA and installation instructions inside LXer Syndicated Linux News 0 07-27-2010 09:40 PM
LXer: Ubuntu Tweak 0.5.5 Released, Features PPA Purge Integration LXer Syndicated Linux News 0 07-25-2010 04:10 AM
VPN failing on Ubuntu 10.04 machielr Linux - Networking 2 05-24-2010 03:45 AM
[SOLVED] ? about fail2ban on ubuntu/redhat unix1adm Linux - General 6 11-13-2009 08:49 AM
'make' failing after OS reinstall tbird Linux - Newbie 1 09-04-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 PM.

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
Open Source Consulting | Domain Registration