HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   fail2ban error (

robertlouwen 28th March 2010 21:56

fail2ban error
I have this error in Ispconfig control panel: Unable to read /var/log/fail2ban.log
When I look in /var/log there is no fail2ban.log so I create one, permissions 774 and owner root:root
Then the error changes in: fail2ban is not installed

I am using: Perfect server Fedora 12 ( i686 ), ISPConfig v

Who has an idea ?

till 28th March 2010 22:30

Make sure that the fail2ban binray on your system is in the path, so that it can be found with the "which" command.

robertlouwen 28th March 2010 23:02

Hello Till,

I think fail2ban is not in the path

[root@obelix /]# which fail2ban
/usr/bin/which: no fail2ban in (/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

Now, how do I get it inot the path ?

billcouper81 29th March 2010 02:13

The fact the log file didn't exist indicates that it might not be installed??


yum install fail2ban
chkconfig --levels 235 fail2ban on
/etc/init.d/fail2ban start

robertlouwen 29th March 2010 10:43

Hello BillCouper,

I am sure fail2ban is installed ! To be very sure I rebooted my box and I saw fail2ban in the list with started services.

So it must be something else...

falko 29th March 2010 15:38

What's the output of

locate fail2ban


robertlouwen 29th March 2010 17:09

1 Attachment(s)
Hello Falko,

The output of locate fail2ban is a long list so I attached it to this message.

falko 30th March 2010 14:45

fail2ban seems to be installed. I've created a bug report in our bugtracker, so we will check this.

Mosquito 30th March 2010 20:09

What is the output of the following two commands

cat /etc/fail2ban/fail2ban.conf

ls -la /var/log | grep "fail"

robertlouwen 30th March 2010 21:48

cat /etc/fail2ban/fail2ban.conf

# Fail2Ban configuration file
# Author: Cyril Jaquier
# $Revision: 629 $


# Option:  loglevel
# Notes.:  Set the log level output.
#          1 = ERROR
#          2 = WARN
#          3 = INFO
#          4 = DEBUG
# Values:  NUM  Default:  3
loglevel = 3

# Option:  logtarget
# Notes.:  Set the log target. This could be a file, SYSLOG, STDERR or STDOUT.
#          Only one log target can be specified.
# Values:  STDOUT STDERR SYSLOG file  Default:  /var/log/fail2ban.log
logtarget = SYSLOG

# Option: socket
# Notes.: Set the socket file. This is used to communicate with the daemon. Do
#        not remove this file when Fail2ban runs. It will not be possible to
#        communicate with the server afterwards.
# Values: FILE  Default:  /var/run/fail2ban/fail2ban.sock
socket = /var/run/fail2ban/fail2ban.sock

ls -la /var/log | grep "fail"

-rwxrwxrwx  1 root    root            36 2010-03-28 21:52 fail2ban.log

All times are GMT +2. The time now is 09:47.

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