Mod security: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Mernits (talk | contribs)
No edit summary
Mernits (talk | contribs)
No edit summary
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
sudo apt-get update
sudo apt-get update
sudo apt-get install libxml2 libxml2-dev libxml2-utils
sudo apt-get install libapache2-modsecurity
sudo apt-get install libapache2-modsecurity
ln -sf /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/libxml2.so.2
ln -sf /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/libxml2.so.2
sudo mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
cd /tmp


sudo wget http://downloads.sourceforge.net/project/mod-security/modsecurity-crs/0-CURRENT/modsecurity-crs_2.2.4.tar.gz
sudo tar -zxvf modsecurity-crs_2.2.4.tar.gz
sudo cp -R modsecurity-crs_2.2.4/* /etc/modsecurity/
sudo rm modsecurity-crs_2.2.4.tar.gz
sudo rm modsecurity-crs_2.2.4
sudo mv /etc/modsecurity/modsecurity_crs_10_config.conf.example  /etc/modsecurity/modsecurity_crs_10_config.conf
sudo a2enmod mod-security
sudo service apache2 restart
</source>
</source>


https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project
https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project

Revision as of 12:31, 15 May 2012

sudo apt-get update
sudo apt-get install libxml2 libxml2-dev libxml2-utils
sudo apt-get install libapache2-modsecurity
ln -sf /usr/lib/x86_64-linux-gnu/libxml2.so.2 /usr/lib/libxml2.so.2
sudo mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
cd /tmp

sudo wget http://downloads.sourceforge.net/project/mod-security/modsecurity-crs/0-CURRENT/modsecurity-crs_2.2.4.tar.gz

sudo tar -zxvf modsecurity-crs_2.2.4.tar.gz

sudo cp -R modsecurity-crs_2.2.4/* /etc/modsecurity/

sudo rm modsecurity-crs_2.2.4.tar.gz

sudo rm modsecurity-crs_2.2.4

sudo mv /etc/modsecurity/modsecurity_crs_10_config.conf.example  /etc/modsecurity/modsecurity_crs_10_config.conf
sudo a2enmod mod-security
sudo service apache2 restart

https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project