Skip to content

Problem with "ModSecurity: Found another rule with the same id" #1227

@lupoalberto12

Description

@lupoalberto12

Hi,
I have a problem with this rule:

SecRule REMOTE_ADDR "@ipMatch MyIP" phase:2,id:'960015',nolog,allow,ctl:ruleEngine=Off

in "modsecurity_crs_10_config.conf" file.
When I reboot Apache, I received this error with any ID:

Starting httpd: AH00526: Syntax error on line 444 of /etc/httpd/modsecurity-crs/modsecurity_crs_10_config.conf:
ModSecurity: Found another rule with the same id

In my "httpd.conf":

<IfModule security2_module>
Include /etc/httpd/modsecurity-crs/modsecurity_crs_10_config.conf
Include /etc/httpd/modsecurity-crs/base_rules/*.conf
</IfModule>

In "/etc/httpd/conf.d/mod_security.conf":

LoadModule security2_module modules/mod_security2.so
LoadModule unique_id_module modules/mod_unique_id.so


# -- Rule engine initialization ----------------------------------------------

# Enable ModSecurity, attaching it to every transaction. Use detection
# only to start with, because that minimises the chances of post-installation
# disruption.
#
SecRuleEngine On

.................

How can I resolve this?
Thanks.
Regards.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions