Unable to manage rules in Plesk Firewall: 504 Gateway Timeout

Created:

2017-01-27 17:14:17 UTC

Modified:

2017-08-18 15:09:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to manage rules in Plesk Firewall: 504 Gateway Timeout

Applicable to:

  • Plesk Onyx for Linux

Note: This article has the reference to the issue with the fix available:

  • #PPPM-5699 "Plesk Firewall could take too long to add a rule, probably causing a “Gateway timeout” error in Plesk GUI."
    Fixed in:
Please consider updating your server:

Symptoms

  • Adding a big amount of firewall rules is slow
  • Sometimes applying a big amount of firewall rules results in Error 504 Gateway Timeout

Cause

Bug PPPM-5699 : Safeact utility checks iptables rules with name resolution.

Resolution

This bug has been resolved in latest microupdates for Plesk 17.5. For Plesk 12.5 and 17.0 the issue can be resolved by installing hotfixes:

  1. Download and unnzip a hotfix for 12.5 or 17.0 .
    # wget [URL]; unzip safeact-VERSION.zip
  2. Create the backup of the original ' safeact ' file

    # cp /usr/local/psa/admin/sbin/modules/firewall/safeact /usr/local/psa/admin/sbin/modules/firewall/safeact.ba
  3. Replace safeact binary and set appropriate permissions on it:
    mv safeact /usr/local/psa/admin/sbin/modules/firewall/safeact 
    chmod 750 /usr/local/psa/admin/sbin/modules/firewall/safeact

Attachments:

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    Eberhard Gierke
    I get with the new version of 'safeact' only the error 'fwrite () failed'. Is there a other/new solution?
  • 0
    Avatar
    Eberhard Gierke
    Oh, I forgot...
    Operating System: Ubuntu 16.04.2 LTS
    Plesk Onyx Version 17.0.17 Update #24
    Thanks for your help! 
  • 0
    Avatar
    Artyom Baranov

    Hi Eberhard! 

    The issue seems like a different one so I have created a ticket to resolve it.

    You should get the email notification about that.

Please sign in to leave a comment.