
28th March 2010, 21:56
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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 3.0.2.1
Who has an idea ?
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

28th March 2010, 22:30
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Make sure that the fail2ban binray on your system is in the path, so that it can be found with the "which" command.
|

28th March 2010, 23:02
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
Hello Till,
I think fail2ban is not in the path
Code:
[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 ?
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

29th March 2010, 02:13
|
|
Junior Member
|
|
Join Date: Dec 2009
Posts: 29
Thanks: 2
Thanked 4 Times in 3 Posts
|
|
The fact the log file didn't exist indicates that it might not be installed??
Code:
yum install fail2ban
chkconfig --levels 235 fail2ban on
/etc/init.d/fail2ban start
|

29th March 2010, 10:43
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
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...
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

29th March 2010, 15:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
What's the output of
Code:
updatedb
locate fail2ban
?
|

29th March 2010, 17:09
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
Hello Falko,
The output of locate fail2ban is a long list so I attached it to this message.
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|

30th March 2010, 14:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
fail2ban seems to be installed. I've created a bug report in our bugtracker, so we will check this.
|

30th March 2010, 20:09
|
|
Member
|
|
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 4 Times in 3 Posts
|
|
What is the output of the following two commands
Code:
cat /etc/fail2ban/fail2ban.conf
Code:
ls -la /var/log | grep "fail"
|

30th March 2010, 21:48
|
|
Senior Member
|
|
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
|
|
cat /etc/fail2ban/fail2ban.conf
Code:
# Fail2Ban configuration file
#
# Author: Cyril Jaquier
#
# $Revision: 629 $
#
[Definition]
# 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"
Code:
-rwxrwxrwx 1 root root 36 2010-03-28 21:52 fail2ban.log
__________________
With Respect, Robert ------------------------------------------------ Fedora 15 - ISPConfig v3.0.3.3 On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:22.
|
|
Recent comments
1 day 2 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 13 hours ago
2 days 3 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 15 hours ago
2 days 16 hours ago
2 days 17 hours ago