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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2009, 15:40
dudez dudez is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 7 Times in 1 Post
Send a message via MSN to dudez
Default Ubuntu-9.04 - fail2ban configuration problems

Hi

I have followed the guide on ISPconfig 3 for Ubuntu-9.04

Everything works perfect, but I have some problems with fail2ban and I have tried everthing I can think of.

# /etc/init.d/fail2ban restart
* Restarting authentication failure monitor fail2ban [ OK ]

But if I look in the log file I have errors:
-----------------------------------------
2009-05-12 15:34:19,688 fail2ban.jail : INFO Jail 'ssh' stopped
2009-05-12 15:34:19,690 fail2ban.server : INFO Exiting Fail2ban
2009-05-12 15:34:20,154 fail2ban.server : INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.3
2009-05-12 15:34:20,155 fail2ban.jail : INFO Creating new jail 'ssh'
2009-05-12 15:34:20,155 fail2ban.jail : INFO Jail 'ssh' uses poller
2009-05-12 15:34:20,176 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,177 fail2ban.filter : INFO Added logfile = /var/log/auth.log
2009-05-12 15:34:20,178 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,178 fail2ban.filter : INFO Set maxRetry = 5
2009-05-12 15:34:20,179 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,180 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,181 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,181 fail2ban.filter : INFO Set findtime = 600
2009-05-12 15:34:20,182 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,182 fail2ban.actions: INFO Set banTime = 600
2009-05-12 15:34:20,183 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,189 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,194 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,201 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,209 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,217 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,228 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,242 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,258 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,305 fail2ban.jail : INFO Creating new jail 'apache'
2009-05-12 15:34:20,305 fail2ban.jail : INFO Jail 'apache' uses poller
2009-05-12 15:34:20,321 fail2ban.filter : INFO Added logfile = /var/log/apache2/error.log
2009-05-12 15:34:20,323 fail2ban.filter : INFO Set maxRetry = 5
2009-05-12 15:34:20,325 fail2ban.filter : INFO Set findtime = 600
2009-05-12 15:34:20,326 fail2ban.actions: INFO Set banTime = 600
2009-05-12 15:34:20,417 fail2ban.jail : INFO Jail 'ssh' started
2009-05-12 15:34:20,419 fail2ban.server : ERROR Unexpected communication error
2009-05-12 15:34:20,476 fail2ban.jail : INFO Jail 'apache' started
2009-05-12 15:34:20,493 fail2ban.server : ERROR Unexpected communication error

Can you please help me?
Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 13th May 2009, 11:44
dudez dudez is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 7 Times in 1 Post
Send a message via MSN to dudez
Default

Solution for Ubuntu 9.04

#apt-get install python2.5

Change the python version there execute the fail2ban-server script.

/usr/bin/fail2ban-server (edit)

Change the first line from:
#!/usr/bin/python
--> to
#!/usr/bin/python2.5

After that restart fail2ban
# /etc/init.d/fail2ban restart

/var/log/fail2ban.log

2009-05-12 13:26:39,809 fail2ban.server : INFO Changed logging target to /var$
2009-05-12 13:26:39,810 fail2ban.jail : INFO Creating new jail 'ssh'
2009-05-12 13:26:39,811 fail2ban.jail : INFO Jail 'ssh' uses poller
2009-05-12 13:26:39,865 fail2ban.filter : INFO Added logfile = /var/log/auth.$
2009-05-12 13:26:39,866 fail2ban.filter : INFO Set maxRetry = 6
2009-05-12 13:26:39,868 fail2ban.filter : INFO Set findtime = 600
2009-05-12 13:26:39,869 fail2ban.actions: INFO Set banTime = 600
2009-05-12 13:26:40,058 fail2ban.jail : INFO Jail 'ssh' started
Reply With Quote
The Following 7 Users Say Thank You to dudez For This Useful Post:
BriX (19th February 2010), dwtj01 (22nd November 2009), ev3rt (16th May 2009), falko (14th May 2009), rudolfpietersma (10th September 2009), xdanx (7th February 2010), yalex2000 (14th October 2009)
  #3  
Old 7th February 2010, 23:26
xdanx xdanx is offline
Junior Member
 
Join Date: Nov 2008
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thx a lot mate! Worked like a charm.
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
ZoneMinder on Ubuntu - dependancy problems when installing mendoza HOWTO-Related Questions 4 17th July 2009 16:02
upgraded Ubuntu 8.10 to Ubuntu 9.04, mail receiving problem. jtt General 1 10th May 2009 21:51
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
Problem on restart bind9 satimis Server Operation 6 30th October 2007 02:01


All times are GMT +2. The time now is 15:23.


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