• Resolved Green Being

    (@green-being)


    The first and every time I click on the Firewall Options link I get this error message:

    Sorry, that didn’t work.
    Please try again or come back later.
    504 Error. Gateway Timeout.

    What’s up with that? So, I would not be able to go into debug mode …

    NOTE: I just installed and configured the Ninja Firewall plugin (WP Edition).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Do you have a proxy or security application (CDN with WAF, ModSecurity etc) that filters the output and may consider the page as offensive for whatever reason? Can you check your HTTP server and PHP error logs to see if there are more details about the issue?

    The Options page just display some settings like any other pages and I can see any reason it would trigger a gateway error.

    Thread Starter Green Being

    (@green-being)

    Hi, thanks for the quick response!

    I think the answer to your question is yes. As I understand it, I am using WAF running on top of a CDN. The vendor is Sucuri. I do not know if they are filtering any output considered offensive. I checked my error logs for the site and I do not see anything that jumps out. I can look some more if you can tell me where else to look.

    There is another thing that seems to be an issue: I also installed the NinjaScanner to complete the NinjaFirewall set. With it, I started a scan yesterday and it has yet to complete. It seems stuck. Could this be related?

    One other perhaps relevant note is that, in order to complete the installation on my website, I had to go the WordPress WAF way.

    Plugin Author nintechnet

    (@nintechnet)

    Try to temporarily disable your external WAF and then access the NinjaFirewall options page again.

    I had to go the WordPress WAF way

    Your host does not allow the use of .user.ini?

    Thread Starter Green Being

    (@green-being)

    It does not seem that .user.ini files are allowed. I think that .htaccess may be used otherwise but not sure. .htaccess for Apache set up and .user.ini for CGI/FastCGI setup?

    It may be that my other security firewall at the IP level is conflicting … but if it is, I am not going to disable it. I could IP-whitelist it possibly, but I don’t see anywhere to do that with your plugin.

    Plugin Author nintechnet

    (@nintechnet)

    If your host WAF can whitelist URI, then add admin.php?page=nfsubopt to it That will whitelist NinjaFirewall’s options page.
    There’s no problem to whitelist it, it is only available to a logged in administrator and required a valid nonce to submit its form.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘504 Error. Gateway Timeout.’ is closed to new replies.