HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Fail2ban question (http://www.howtoforge.com/forums/showthread.php?t=21924)

joelee 2nd April 2008 19:36

Fail2ban question
 
Hi All,

I am following this how-to to install fail2ban on debian ecth.
http://www.howtoforge.com/fail2ban_debian_etch

Installing the way the how-to suggest installs an older version of fail2ban (0.7.1). I want to install the new updated version on the fail2ban site - Which is 0.8.2... I see there's been some bug fixes and new features.

I try to do a apt-get install fail2ban-0.8.2 to see if it would install the new version and that did not work.

Then I try to install from source which installed o.k BUT when I try to start fail2ban I get this error:

Code:

host:/etc/init.d# fail2ban-client start
2008-04-02 12:21:27,611 fail2ban.server : INFO  Starting Fail2ban v0.8.2
2008-04-02 12:21:27,612 fail2ban.server : ERROR  Unable to create PID file: [Errno 2] No such file or directory: '/var/run/fail2ban/fail2ban.pid'

Would appreciate any help regarding above.

Also, I have another question:
I am running a OpenVZ environment. I was wondering if I can install Fail2ban on the host node as appose to every single VPS. And, in my fail2ban config if I can specify different paths for each VPS logs path.

For example: (Only using TCPwrapper service below)

Code:


[ssh-tcpwrapper]

enabled    = true
filter      = sshd
action      = hostsdeny
              sendmail-whois[name=SSH, dest=MyEmail@MyMail.com]
ignoreregex = for myuser from
logpath    = 101/var/log/auth.log    <---VPS
logpath    = 102/var/log/auth.log    <---Another VPS
logpath    = 200/var/log/auth.log    <--- etc....

If I can do the above then I can control the settings and keep all config files from VPS users - Hope that makes sense..

Would appreciate any comments/suggestions to doing the above.

Joe

falko 3rd April 2008 21:16

Quote:

Originally Posted by joelee
Code:

host:/etc/init.d# fail2ban-client start
2008-04-02 12:21:27,611 fail2ban.server : INFO  Starting Fail2ban v0.8.2
2008-04-02 12:21:27,612 fail2ban.server : ERROR  Unable to create PID file: [Errno 2] No such file or directory: '/var/run/fail2ban/fail2ban.pid'

Would appreciate any help regarding above.

What are the outputs of
Code:

ls -la /var/run
and
Code:

ls -la /var/run/fail2ban
?

Quote:

Originally Posted by joelee
Also, I have another question:
I am running a OpenVZ environment. I was wondering if I can install Fail2ban on the host node as appose to every single VPS.

That would protect only the host, but not the virtual machines.


All times are GMT +2. The time now is 01:00.

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