I am using ModSecurity on my Ubuntu 20.11 box for use with Apache2 and I am getting the following error when adding the following rule to my custom ruleset: ModSecurity: Found another rule with the same id
My rule is below:
# Block access to restricted filesSecRule REQUEST_FILENAME "@pmFromFile restricted-files.data" \"id:123456,\ phase:1,\ deny,\ log,\ msg:'Restricted File Access Attempt',\ I have tried several different rule IDs and I get the same error every time. I have also used the grep command to find duplicate rules and only one instance appears.
How can I fix this issue?