• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

ModSecurity subscription rule set error;

elcopdoo

Basic Pleskian
Error when trying to set atomic subscription rule:

Failed to install the ModSecurity rule set: SecReadStateLimit is depricated, use SecConnReadStateLimit instead.
Syntax error on line 70 of /etc/httpd/conf/modsecurity.d/rules/atomic/modsec/00_asl_zz_strict.conf:
Error creating rule: Could not add entry "127.0.0.0/8" from: 127.0.0.0/8.

In directory /etc/httpd/conf/modsecurity.d/rules I have only:
atomic.new modsecurity_crs-plesk tortix tortix.backup

There is no file 00_asl_zz_strict.conf
 
What is the output of following command ?

Code:
ls -ld /etc/httpd/conf/modsecurity.d/rules/atomic/modsec/00_asl_zz_strict.conf
 
ls: cannot access /etc/httpd/conf/modsecurity.d/rules/atomic/modsec/00_asl_zz_strict.conf: No such file or directory
 
I found out that modsec/00_asl_zz_strict.conf is in atomic.new directory.

How can I update this in ModSecurity ?
 
Have you tried to copy /etc/httpd/conf/modsecurity.d/rules/atomic.new directory to /etc/httpd/conf/modsecurity.d/rules/atomic ?
 
Hello. A few words about how rule set update works.
Plesk tries to download, install new rule set and check apache configuration with it. If config check fails the plesk restores previous version of rule set and save new one in a directory with suffix ".new".
As a result, apache configuration wouldn't be broken and if you wish you may replace atomic dir with atomic.new, fix errors and restart apache.

And about the error. Looks like you faced the bug: https://github.com/SpiderLabs/ModSecurity/issues/706
We will propose update for modsecurity with fix of this bug with next plesk microupdate (in about a week).
 
Fixed mod_security packages for BR#706 are available in ASL and the Atomic repos. We also passed the patch up on to Parallels for addition to their package last week.
 
Hello,

i get this error when i try the TestLic package
i put the username and pw into the fields.
Press OK

Then ...

Failed to install the ModSecurity rule set: SecReadStateLimit is depricated, use SecConnReadStateLimit instead. Syntax error on line 40 of /etc/apache2/modsecurity.d/rules/atomic/modsec/01_asl_domain_blocks.conf: Error creating rule: Could not open phrase file "/etc/asl/custom-domain-blocks": No such file or directory

i look in the folder and yes ... the custom-domain-blocks folder doesn't exists

any idea ?
 
Back
Top