Forum Discussion
Sabeer_Ali_2389
Feb 05, 2016Altostratus
X-Forwarded in F5
We have below X-Forwarded configured on our cisco ACE , now we are migrating the VIP to F5 LTM. How we can configure the X-Forwarded in F5 ?
insert-http X-Forwarded-Proto header-value "%is"
...
Kai_Wilke
Feb 05, 2016MVP
Hi Sabeer Ali,
no
X-Forwarded-For
would just forward the IP. To forward other Information you should use the iRule below...
when CLIENT_ACCEPTED {
if { [PROFILE::exists clientssl] } then {
set client_protocol "https"
} else {
set client_protocol "http"
}
}
when HTTP_REQUEST {
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
HTTP::header insert "X-Forwarded-Proto" $client_protocol
HTTP::header insert "X-Forwarded-Port" [TCP::client_port]
}
Cheers, Kai
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