Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th December 2010, 09:58
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default Fail2ban is not installed at this server - Centos 5.5 64 bit

followed the guide posted below

http://www.howtoforge.com/perfect-se...64-ispconfig-3

centos 5.5, 64bit, ispconfig 3.0.3.1

i've installed fail2ban, it's running, but does not appear to be doing anything. contents of fail2ban.log are empty.

ispconfig tells me "fail2ban is not installed at this server."

i believe the problem is that the fail2ban binary is not in my path.

here is the output of some which commands

Code:
which fail2ban
/usr/bin/which: no fail2ban in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

which fail2ban-server
/usr/bin/fail2ban-server

which fail2ban-client
/usr/bin/fail2ban-client
my problem is i have no idea what the fail2ban binary is, or where it's located.

any help would be greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 20th December 2010, 19:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,757
Thanks: 840
Thanked 5,603 Times in 4,414 Posts
Default

ISPConfig checks for fail2ban with the command:

which fail2ban-client
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th December 2010, 19:17
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default

hi till,

thanks. here is the output of that command on my system

which fail2ban-client
/usr/bin/fail2ban-client

log file location is: /var/log/fail2ban.log

i'm not sure what else to check for.

thanks,
- dave
Reply With Quote
  #4  
Old 21st December 2010, 17:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Did you disable SELinux?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st December 2010, 19:54
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default

SELinux was disabled by doing the following

ran the command: system-config-securitylevel

set the following.

Security Level: ( ) Enabled (*) Disabled

SELinux: Disabled

then selected OK, followed by a reboot.
Reply With Quote
  #6  
Old 21st December 2010, 20:39
tuxlux tuxlux is offline
Junior Member
 
Join Date: Dec 2010
Location: Luxembourg
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try to make a link for fail2ban in /usr/bin to fail2ban-client.

The script does not recognize fail2ban on CentOS, at least not on my 5.5 install, without the link. I have seen specific testing is done in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php for CentOS to find fail2ban and that checks for 'which fail2ban'.

Still investigating this, but could be something to do with the fact that on my install, 5.5 is not recognized as CentOS, but as RedHat unknown....
__________________
Marco
Reply With Quote
  #7  
Old 22nd December 2010, 01:37
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default

thanks.

i made a symlink to fail2ban-client

ln -s /usr/bin/fail2ban-client /usr/bin/fail2ban

rebooted, ran the ispconfig update in the installer directory. ispconfig is still showing the message "fail2ban is not installed at this server."

output of which fail2ban is now

which fail2ban
/usr/bin/fail2ban

fail2ban is running, as far as i can tell.

service fail2ban status
Fail2ban (pid 4498) is running...
Status
|- Number of jail: 0
`- Jail list:
Reply With Quote
  #8  
Old 22nd December 2010, 02:11
tuxlux tuxlux is offline
Junior Member
 
Join Date: Dec 2010
Location: Luxembourg
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, fail2ban is running but not configured with any jails. So currently it does not do anything.

Please check if you have a readable /var/log/fail2ban.log with content inside.
__________________
Marco
Reply With Quote
  #9  
Old 22nd December 2010, 02:55
driverdave driverdave is offline
Junior Member
 
Join Date: Nov 2008
Posts: 11
Thanks: 0
Thanked 5 Times in 2 Posts
Default

hi marco,

i do have a log file in /var/log/

-rw------- 1 root root 0 Dec 16 22:15 fail2ban.log

it's empty.
Reply With Quote
  #10  
Old 22nd December 2010, 11:24
tuxlux tuxlux is offline
Junior Member
 
Join Date: Dec 2010
Location: Luxembourg
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Configure a jail in fail2ban and make sure logging output will be in the logfile.

The table for monitoring in the dbispconfig mysql db will not be updated if there is no logging and the "fail2ban not installed" error keeps returning.
__________________
Marco
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems connecting my HTC Desire outgoing mail client to Postfix and ISP Config 2 j.smith1981 Server Operation 6 12th July 2010 20:07
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 14:58
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 23:08
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 16:44
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30


All times are GMT +2. The time now is 03:05.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.