apache:modules:install_mod_security_and_mod_evasive
Differences
This shows you the differences between two versions of the page.
apache:modules:install_mod_security_and_mod_evasive [2023/07/17 10:43] – created peter | apache:modules:install_mod_security_and_mod_evasive [2023/07/17 10:45] (current) – peter | ||
---|---|---|---|
Line 96: | Line 96: | ||
</ | </ | ||
+ | ---- | ||
===== Download and install the latest OWASP Core Rule Set ===== | ===== Download and install the latest OWASP Core Rule Set ===== | ||
- | The OWASP ModSecurity CRS Project's goal is to provide an easily " | + | The goal of the **OWASP ModSecurity CRS Project** is to provide an easily " |
- | Download and install the latest [[https:// | + | Download and install the latest [[https:// |
- | We will also activate the default CRS config file **modsecurity_crs_10_setup.conf.example**. | + | * See [[https:// |
+ | |||
+ | Also activate the default CRS config file **modsecurity_crs_10_setup.conf.example**. | ||
If you prefer not to use the latest rules, replace the wget for master below with the a specific version you would like to use e.g : **v2.2.5**. | If you prefer not to use the latest rules, replace the wget for master below with the a specific version you would like to use e.g : **v2.2.5**. | ||
Line 144: | Line 147: | ||
</ | </ | ||
+ | ---- | ||
===== Check if ModSecurity is enabled and restart Apache ===== | ===== Check if ModSecurity is enabled and restart Apache ===== | ||
Line 156: | Line 160: | ||
</ | </ | ||
+ | ---- | ||
Restart the Apache2 webserver: | Restart the Apache2 webserver: | ||
Line 169: | Line 174: | ||
</ | </ | ||
+ | ---- | ||
===== Test ModSecurity ===== | ===== Test ModSecurity ===== | ||
Line 193: | Line 199: | ||
Content-Type: | Content-Type: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
===== Install ModEvasive ===== | ===== Install ModEvasive ===== | ||
Line 204: | Line 212: | ||
</ | </ | ||
+ | ---- | ||
===== Create log file directory for mod_evasive ===== | ===== Create log file directory for mod_evasive ===== | ||
Line 220: | Line 229: | ||
</ | </ | ||
+ | ---- | ||
===== Create mod-evasive.conf file and configure ModEvasive ===== | ===== Create mod-evasive.conf file and configure ModEvasive ===== | ||
Line 245: | Line 255: | ||
</ | </ | ||
+ | ---- | ||
===== Fix mod-evasive email bug ===== | ===== Fix mod-evasive email bug ===== | ||
Line 258: | Line 269: | ||
</ | </ | ||
+ | ---- | ||
===== Check if ModEvasive is enabled and restart Apache ===== | ===== Check if ModEvasive is enabled and restart Apache ===== | ||
Line 282: | Line 294: | ||
</ | </ | ||
+ | ---- | ||
===== Test ModEvasive ===== | ===== Test ModEvasive ===== | ||
Line 343: | Line 356: | ||
Oct 26 15:36:42 CentOS-7 mod_evasive[2732]: | Oct 26 15:36:42 CentOS-7 mod_evasive[2732]: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
apache/modules/install_mod_security_and_mod_evasive.1689590584.txt.gz · Last modified: 2023/07/17 10:43 by peter