Plesk

How to enable Atomic rulesets in ModSecurity for Plesk on RHEL 8/ CloudLinux 8/ AlmaLinux 8 and Rocky Linux 8 OS?

Question 

How to enable Atomic rulesets in ModSecurity for Plesk on RHEL 8/ CloudLinux 8/ AlmaLinux 8 and Rocky Linux 8 OS?

Answer

  1. Log in to Plesk.

  2. Install the Panel.ini Editor extension in Extensions > Extensions Catalog > Categories > Server Tools page.

  3. Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor.
  4. Add the lines below at the bottom:

    [modSecurity]
    ruleSet.tortix = true
    ruleSet.atomic = true

    Note: the ruleSet.atomic directive is to enable for Atomic Advanced and ruleSet.tortix to enable for Atomic Standard ruleset

  5. Press the Save button to apply the changes.

Solution using the SSH access 

  1. Log into the server via SSH.
  2. Execute the command below to open the /usr/local/psa/admin/conf/panel.ini file in vi text editor:

    # plesk conf panel.ini

  3. Add the lines below at the bottom:

    [modSecurity]
    ruleSet.tortix = true
    ruleSet.atomic = true

    Note: ruleSet.atomic is to enable for Atomic Advanced and ruleSet.tortix to enable for Atomic Standard ruleset

  4. Save the changes.
Exit mobile version