Forum Discussion
Difference between "True client ip" and "X-Forwarded for"
I want to understand the difference between "True client ip" and "X-Forwarded for".
- Jad_Tabbara__J1Cirrostratus
Hello,
Actually the XFF header is inserted exactly for that purpose... to let the backend server knows the "real client IP addr".
Indead, when you have a reverse proxy between your client and server. The reverse proxy most of the time (for simplicity) change the source client IP (this is what we call SNAT is F5 references). So in order to let the server know who is behind the reverse proxy, the F5 can insert the XFF header with the client addr.
In that manner, once the request is forwarded to the client it can process this info.
Hope it clarifies.
Regards
- Jad_Tabbara__J1Cirrostratus
- Stanislas_Piro2Cumulonimbus
Hi,
Before 2014, there was no standard http header to insert proxies client ip.
The most common non standard http header was X-Forwarded-For.
Some other proxy / reverse proxy use true-cient-ip (like Akamai)
RFC 7239 describe new standard but is not well deployed yet.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com