View Single Post
  #2  
Old 13th May 2009, 12: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