Forum Discussion
wralon
Nimbostratus
Jun 12, 2019iRule for Swapping XFF with Something Custom(Microsoft)
What is the syntax for a simple iRule that takes a standard X-Forwarded-For header and rewrites it to a different header name. I have a WAF in front of an LTM, which is in front of an ADFS Proxy env...
wralon
Nimbostratus
Jun 12, 2019I have tried the following, but it does not seem to be working....
when HTTP_REQUEST {
if {[HTTP::header exists X-Forwarded-For]}{
HTTP::header insert X-MS-Forwarded-Client-IP [HTTP::header X-Forwarded-For]
} else {
HTTP::header insert X-MS-Forwarded-Client-IP [IP::client_addr]
}
}
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
