Forum Discussion
jba3126
Cirrostratus
Apr 10, 2015How to preserve existing X-Forward-For Header when using SNAT
First question is does SNAT alter an existing X-Forward-For header?
We have a web service that goes DMZ LTM -> XML Security Device -> PBN LTM /with SNAT. The application has IP based role rest...
Antony2015
Altostratus
Apr 13, 2015Jeff,
Plz try to apply the below irule in PBN LTM /with SNAT and let me know the result.
rule X-Forwarded-For { when HTTP_REQUEST { if {[HTTP::header exists X-Forwarded-For]}{ HTTP::header replace X-Forwarded-For "[HTTP::header X-Forwarded-For], [IP::client_addr]" } else {
HTTP::header insert X-Forwarded-For [IP::client_addr] } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects