It wasn't located there, as it was installed with easy apache 3, rather than with the plugin system. However, I did locate it in CSF:
When clicking edit, it shows:
Code:
LoadFile /opt/xml2/lib/libxml2.so
LoadModule security2_module modules/mod_security2.so
<IfModule mod_security2.c>
SecRuleEngine On
# See http://www.modsecurity.org/documentation/ModSecurity-Migration-Matrix.pdf
# "Add the rules that will do exactly the same as the directives"
# SecFilterCheckURLEncoding On
# SecFilterForceByteRange 0 255
SecAuditEngine RelevantOnly
SecAuditLog logs/modsec_audit.log
SecDebugLog logs/modsec_debug_log
SecDebugLogLevel 0
SecDefaultAction "phase:2,deny,log,status:406"
SecRule REMOTE_ADDR "^127.0.0.1$" nolog,allow
Include "/usr/local/apache/conf/modsec2.user.conf"
</IfModule>
If I am reading this right, it looks like I should copy and paste the rules from
http://403security.org/files/modsec_rules.txt into /usr/local/apache/conf/modsec2.user.conf
Is that correct? What about the configuration settings?
Code:
SecAuditLogType Serial
SecAuditLog logs/modsec_audit.log
and such. There are many more listed on 403security.org than in the CSF config. Do I just copy the whole file from 403security and put it in the conf, and it will override any dupes in the CSF configuration?