Skip to main content
wasfi
New Member
Apr 29, 2021 2:34 PM UTC
Question

How does the Fortigate firewall deal with an XFF header inserted

Hi; I would like to have Fortigate insert an X-Forwarded-For header by using the "Preserve Client IP" option available with a load balancing virtual server. My question is: If there is an upstream device that inserted the XFF header before the Fortigate, does the fortigate add a second value to the first. So:

 

X-Forwarded-For: value1 inserted by upstream device, value2 inserted by Fortigate

 

Or does it add a second occurance of the XFF header, like:

 

X-Forwarded-For: value1 by upstream device

X-Forwarded-For: value2 by Fortigate Kindly Wasfi

    1 reply

    emnoc
    New Member
    Apr 29, 2021 2:52 PM UTC

    I believe it's appends to the existing XFF not add 2 XFF headers. if you add 2 XFF headers line I seen strage things where only the last one is picked up or something like that.

     

    So it  should looked like "X-Forwarded-For: x.x.x.x, y.y.y.y"

     

     

    Ken Felix

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024