setupmodsecurity — Command Reference
Install ModSecurity integration or a supported rule vendor, or remove the Nginx module.
Install ModSecurity integration or a supported rule vendor, or remove the Nginx module.
Requirements
Run as root on the Eenos server. Compatible installed web server and access to module/rule sources. Test application compatibility before broad rule changes.
Usage
The following example uses the operation described below; replace example identities and paths before use:
/usr/local/eenos/scripts/setupmodsecurity --rule crsArguments and options
| Syntax | Meaning |
|---|---|
-in, --nginx | Install Nginx integration. |
-ia, --apache | Install Apache integration. |
-rn, --removenginx | Remove Nginx integration. |
-ir, --rule VENDOR | Install vendor rules; current supported vendor: crs. |
This uses a positional/legacy parser. Choose one operation and keep its value order. Do not assume argparse-style --option=value, option combinations or --help support.
Operational effects
Changes web-server security modules and rules and can affect application requests. --rule currently supports the crs vendor; rule installation requires Git.
Verify the result
Check loaded modules, rule configuration and application requests/false positives.
Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.