HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Suggest HOWTO (http://www.howtoforge.com/forums/forumdisplay.php?f=9)
-   -   ModSecurity on Debian Squeeze (http://www.howtoforge.com/forums/showthread.php?t=54637)

Kozley 25th October 2011 03:08

ModSecurity on Debian Squeeze
 
I found an article on http://www.debian-administration.org/articles/65, but it's older article and needs this to Debian Squeeze. Could anybody make a tutorial to me? Thanks!

Mark_NL 25th October 2011 09:20

Err .. search howtofoge.com better :P

http://www.howtoforge.com/apache_mod_security

it works on squeeze as well..

Kozley 25th October 2011 18:46

Quote:

Originally Posted by Mark_NL (Post 265895)
Err .. search howtofoge.com better :P

http://www.howtoforge.com/apache_mod_security

it works on squeeze as well..

You does not read comments there. Read last comment:

"Tried this on Squeeze for apache2:
# apt-get install libapache2-mod-security
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapache2-mod-security


So tried your one:
apt-get install libapache-mod-security
Which was installed into the mods-enabled dir.
Sadly, your Sec* entries above fail:
# /etc/init.d/apache2 restart
Syntax error on line 219 of /etc/apache2/apache2.conf:
Invalid command 'SecFilterEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed."

That could be problem if i do this. Because I need a tutorial for this.

falko 26th October 2011 11:05

Did you enable the module after installation? It's probably something like
Code:

a2enmod mod-security
or
Code:

a2enmod security
Restart Apache afterwards.

Kozley 26th October 2011 12:29

Okay. I tried to install modsecurity, it does works. i understand why it is problem what it say in comment on debian-administratation.com. Do I need any more to configure it to more security?

manarak 20th May 2012 21:22

Hi, Falko's Tutorial for installing mod security was good in 2007 but is now completely obsolete.
Mod security has undergone many changes since then, and needs a totally different installation.

Rather use this how-to:
http://www.faqforge.com/linux/apache...n-6-0-squeeze/


All times are GMT +2. The time now is 03:34.

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