Skip to main content
jwalker
New Member
May 16, 2022
Question

FortiGate load balancing - add backend server response header

  • May 16, 2022
  • 2 replies
  • 1339 views

Hello,

 

In FortiOS 6.x (6.0 for example):

How can I add the backend server IP / name response header.

Preferably the backend server name. 

Similar to the following:

Nginx

https://philio.me/backend-server-host-name-as-a-custom-header-with-nginx/

HAProxy

https://discourse.haproxy.org/t/force-backend-server-with-http-header/7055/5

I couldn't find this option in FortiGate load balancing feature.

2 replies

Contributor III
May 17, 2022
jwalker
jwalkerAuthor
New Member
May 17, 2022

Thanks but I didn't ask how to get the end user's IP which requires x-forwarded-for header.

I asked how to get the backend server name / IP in the response header at the end user's browser.

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!