Hello all,
I'm fairly new to cPanel and I seem to be getting along pretty well, but still learning.
I want to configure mod_security2 with customized rules. ModSec works fine w/ default ruleset from:
But I want to integrate SOME of the OWASP rules (not all).
Been trying to muddle through it but I'm just not connecting the dots in my head.
I've looked at the ConfigServer Modsecurity Control and I guess it's an option, but I'd prefer to not go that route (guess maybe I have control issues, or something :p )
There's a nice set of rules just sitting here collecting dust (I added a few):

...but I can't seem to figure out how to get the system to read & implement them.
Seems this should be easy from this point? Maybe not?
EDIT: As an interesting note... according to log files, I've got mod_sec 2.7.3
Any direction?
Feels like I'm so close, and simply pasting them into the default.conf file seems the incorrect approach.
Thanks in advance!
-Mike
I'm fairly new to cPanel and I seem to be getting along pretty well, but still learning.
I want to configure mod_security2 with customized rules. ModSec works fine w/ default ruleset from:
Code:
/home/cpeasyapache/src/modsec2.user.conf.default
Been trying to muddle through it but I'm just not connecting the dots in my head.
I've looked at the ConfigServer Modsecurity Control and I guess it's an option, but I'd prefer to not go that route (guess maybe I have control issues, or something :p )
There's a nice set of rules just sitting here collecting dust (I added a few):
Code:
/home/cpeasyapache/src/modsecurity-apache_2.5.13/rules/base_rules/

...but I can't seem to figure out how to get the system to read & implement them.
Seems this should be easy from this point? Maybe not?
EDIT: As an interesting note... according to log files, I've got mod_sec 2.7.3
Any direction?
Feels like I'm so close, and simply pasting them into the default.conf file seems the incorrect approach.
Thanks in advance!
-Mike
Last edited: