Forum Discussion
Kevin_Nail
Nimbostratus
Jan 15, 2009Multiple XFF headers
We have a situation where it may be possible for one LTM to insert the XFF and load-blance the packets to another LTM with another XFF set.
I would like to have an iRule the checks for ...
hoolio
Cirrostratus
Jan 16, 2009I assume you've disabled XFF on the HTTP profile on the second set of LTM's?
You could also try logging what's happening:
when HTTP_REQUEST {
if {[HTTP::header exists "X-Forwarded-For"]}{
Do nothing
log local0. "[IP::client_addr]:[TCP::client_port]: Existing XFF: [HTTP::header values "X-Forwarded-For"]"
} else {
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
log local0. "[IP::client_addr]:[TCP::client_port]: Added XFF: [HTTP::header values "X-Forwarded-For"]"
}
}
Aaron
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