• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Invalid command /var/asl/data/templates/template-tortix_waf.conf

Kingsley

Silver Pleskian
Hello;

I am trying to implement this modsecurity rule Install ModSecurity Rules to Plesk with Manual - Malware Expert however i have been facing this error message.

Code:
[root@sprout ~]# /usr/local/psa/admin/bin/apache-config -t
AH00526: Syntax error on line 2 of /etc/httpd/conf/modsecurity.d/rules/custom/malware_expert.conf:
Invalid command '/var/asl/data/templates/template-tortix_waf.conf', perhaps misspelled or defined by a module not included in the server configuration
[root@sprout ~]#

Below is the custom rule;

Code:
# ASL Mod Security Template: /var/asl/data/templates/template-tortix_waf.conf
 
SecRuleEngine on
SecRequestBodyAccess On
SecDefaultAction "phase:2,deny,log,status:406"
SecRequestBodyLimitAction ProcessPartial
SecResponseBodyLimitAction ProcessPartial
  
SecCollectionTimeout 600
 
SecServerSignature "Apache"
SecComponentSignature 201611281557
SecUploadDir /var/asl/data/suspicious
 
SecTmpSaveUploadedFiles on
 
SecAuditEngine RelevantOnly
# SecAuditLogRelevantStatus "^(?:5|4(?!04))"
# SecAuditLogType Concurrent
# SecAuditLog /var/log/apache2//audit_log
SecAuditLogParts ABIFHZ
SecArgumentSeparator "&"
SecCookieFormat 0
SecRequestBodyInMemoryLimit 131072
SecDataDir /var/asl/data/msa
SecTmpDir /tmp
SecAuditLogStorageDir /var/asl/data/audit
 
SecResponseBodyLimitAction ProcessPartial
SecConnReadStateLimit 8096
SecConnWriteStateLimit 8096
SecRequestBodyNoFilesLimit 1048576
SecRequestBodyInMemoryLimit 131072
 
SecAuditLogDirMode 0770
SecPcreMatchLimit 250000
SecPcreMatchLimitRecursion 250000
SecInterceptOnError on
SecResponseBodyAccess on
 
SecRemoteRules SerialKey https://rules.malware.expert/download.php?rules=generic
 
Back
Top