Skip to main content
user1111
Visitor III
March 12, 2025
Question

504 Gateway Timeout in FortiPAM

  • March 12, 2025
  • 2 replies
  • 1296 views

Hi everyone,

I’m encountering a 504 Gateway Timeout error when trying to access a FortiGate firewall through FortiPAM. The error states:

Remote server did not respond to the proxy.

 

I’m using the proxy feature in FortiPAM, which listens on port 8080.
The FortiGate Web GUI is configured to run on a custom port, and I’ve specified that port in the URL while accessing it through FortiPAM.


Has anyone experienced a similar issue or have any suggestions on how to troubleshoot this?
Any help would be appreciated!

Thanks!

2 replies

AEK
SuperUser
SuperUser
March 12, 2025

Hi

Can you ping the configured FGT IP from FortiPAM?

AEK
user1111
user1111Author
Visitor III
March 14, 2025

Yes, when i allow all ports and services .
I am facing the gateway issue with porxy mode when i allow only few ports/services
Currently, the services and ports I have allowed are:

Ping, HTTP, HTTPS, FortiGate Firewall GUI port, DNS (TCP and UDP 53), Proxy port (8080)

 

However, if I allow all port or service, I’m able to access the device without any issues.
Am I missing any specific ports that need to be allowed for proper gateway functionality in proxy mode?

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!