Question
How to enable Atomic rulesets in ModSecurity for Plesk on RHEL 8/ CloudLinux 8/ AlmaLinux 8 and Rocky Linux 8 OS?
Answer
-
Install the Panel.ini Editor extension in Extensions > Extensions Catalog > Categories > Server Tools page.
- Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
-
Add the lines below at the bottom:
[modSecurity]
ruleSet.tortix = true
ruleSet.atomic = trueNote: the ruleSet.atomic directive is to enable for Atomic Advanced and ruleSet.tortix to enable for Atomic Standard ruleset
-
Press the Save button to apply the changes.
Solution using the SSH access
- Log into the server via SSH.
- Execute the command below to open the /usr/local/psa/admin/conf/panel.ini file in vi text editor:
# plesk conf panel.ini
-
Add the lines below at the bottom:
[modSecurity]
ruleSet.tortix = true
ruleSet.atomic = trueNote: ruleSet.atomic is to enable for Atomic Advanced and ruleSet.tortix to enable for Atomic Standard ruleset
- Save the changes.