setupmodsecurity
ModSecurity 3 Installation
This tool will help you to install and enable modsecurity on your Nginx or HTTPD server. This tool can also install the CRS ModSecurity rule set.
Remember, installing the modsecurity rule may break some websites. You may need to tweak the modsecurity rules, as per your needs.
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 the Apache httpd server, use the following command:
/usr/local/eenos/scripts/setupmodsecurity --apache
Enable ModSecurity 3 in Nginx Server
To enable modsecurity on the 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