Forum Discussion
ScottG_33396
Nimbostratus
Nov 30, 2006get and replace
OK all you gurus. Here's what i want to do. I want to get data from http::header "X-Forwarded-For" and replace the data in client_addr with what I get from X-Forwarded-For. I need to grab th IP found ...
Deb_Allen_18
Dec 05, 2006Historic F5 Account
I think what Aaron is suggesting is using the SNAT command to change the source IP to the value of the XFF header:
when HTTP_REQUEST {
snat [HTTP::header "X-Forwarded-For"]
}Interesting idea. If default routing will ensure an appropriate return path, it may work, but could instead result in broken conversations if the source NAT is in place to force return through a specific upstream device.HTH
/deb
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