ModSecurity failed to update rule set: modsecurity_ctl failed: HTTP Error 403: Forbidden

Created:

2017-05-21 22:18:32 UTC

Modified:

2017-08-08 13:12:03 UTC

4

Was this article helpful?


Have more questions?

Submit a request

ModSecurity failed to update rule set: modsecurity_ctl failed: HTTP Error 403: Forbidden

Applicable to:

  • Plesk for Linux

Symptoms

A ModSecurity rule set cannot be updated with the following error in Plesk:

Error: Failed to update the ModSecurity rule set: modsecurity_ctl failed: HTTP Error 403: Forbidden
Unable to download tortix rule set

Cause

This is Plesk bug with ID PPPM-6302 which is planned to be fixed in future Plesk updates.

Resolution

As a workaround:

  1. Create a copy of a file

    # cp /usr/local/psa/lib/modules/python/pylib-modsec-atomic/plesk_atomic.py{,.orig}
  2. Change AUM_PLESK_INSTALLER_NAME and AUM_PLESK_INSTALLER_URL varuables inside /usr/local/psa/lib/modules/python/pylib-modsec-atomic/plesk_atomic.py file as follows:

    ...
    AUM_PLESK_INSTALLER_NAME = "aum"
    AUM_PLESK_INSTALLER_URL = "https://updates.atomicorp.com/installers/" + AUM_PLESK_INSTALLER_NAME
    ...
  3. Remove /usr/local/psa/lib/modules/python/pylib-modsec-atomic/plesk_atomic.pyc file:

    # rm /usr/local/psa/lib/modules/python/pylib-modsec-atomic/plesk_atomic.pyc
  4. Re-enable a rule set under Tools & Settings > Web Application Firewall (ModSecurity).

Additional Information

ModSecurity cannot be updated or activated: /var/asl/bin/aum: error while loading shared libraries

Have more questions? Submit a request

2 Comments

Please sign in to leave a comment.