setupmodsecurity
ModSecurity 3 Installation
This tool help to install and enable modsecurity on your Nginx or HTTPD server. This tool can also install CRS ModSecurity rule set.
Remember, installing the modsecurity rule may break some websites. You need to tweak the modsecurity rules set as per your need.
Command:
/usr/local/eenos/scripts/setupmodsecurity
Command Options :
Usage: /usr/local/eenos/scripts/setupmodsecurity <options>=[values]
Command Groups:
Options:
-in, --nginx - To Enable Modsecurity3 in Nginx
-ia, --apache - To Enable Modsecurity3 in Apache HTTPD
-rn, --removenginx - Remove Nginx ModSecurity
-ir [vendor], --rule [vendor] : Install vendor rules, support the following vendors
crs - OWASP® ModSecurity Core Rule Set (CRS)
Enable ModSecurity 3 in HTTPD Server
To enable modsecurity on apache httpd server , use the following command:
/usr/local/eenos/scripts/setupmodsecurity --apache
Enable ModSecurity 3 in Nginx Server
To enable modsecurity on Nginx web server, use the following command
/usr/local/eenos/scripts/setupmodsecurity --nginx
Install CRS OWASP rule set
To install OWASP® ModSecurity Core Rule Set (CRS) , use the following command
/usr/local/eenos/scripts/setupmodsecurity -ir crs