• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Comodo ModSecurity rules not updating

cmaxwell

Regular Pleskian
Hello,

We have enabled Comodo ModSecurity as the WAF rule set in Plesk 12.5.30 with "Update rule sets" set to "Daily", however the rules don't appear to be updating.

I have tried running the rule update manually:

Code:
plesk php /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet daily

But it does not seem to be downloading the rules.

In the /var/lib/plesk/cfgmon/zzzz_cwaf_security2.conf_2016_02_04_03_50_21_723365 file, there is the following content:

Code:
<IfModule !mod_security2.c>
  LoadModule security2_module  modules/mod_security2.so
</IfModule>

<IfModule mod_security2.c>

  SecServerSignature "Protected by COMODO WAF"

  SecRuleEngine On
  SecAuditEngine RelevantOnly
  SecAuditLog /var/log/httpd/modsec_audit.log
  SecDebugLog /var/log/httpd/modsec_debug.log
  SecAuditLogType Serial
  SecDebugLogLevel 0
  SecRequestBodyAccess On
  SecDataDir /tmp
  SecTmpDir /tmp
  SecPcreMatchLimit 250000
  SecPcreMatchLimitRecursion 250000
  Include "/usr/local/cwaf/etc/cwaf.conf"
</IfModule>

After checking it seems /usr/local/cwaf does not exist.

Is there something else we should do to get this to work properly?

Thanks,
Chris
 
Try to enable Plesk debug mode https://kb.odin.com/en/120101 and run update manually again with

# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php -f UpdateModSecurityRuleSet

Check possible errors in output.
 
Back
Top