Forum Discussion
Eric_27859
Nimbostratus
Jul 29, 2011X-Forwarded-For and Route Domains issue with '%'
Hello,
I'm using the header X-Forwarded-For to tell the server the remote client IP (using AutoMap in the Virtual Server). When a Route Domain is involved, all the IPs are written with this ...
The_Bhattman
Nimbostratus
Jul 30, 2011HI Jarvil,
Yes sorry about that. I, for some reason, misunderstood your question.
Yes your correct taht HTTP::header command along with getfield will work
Here is the typical code where you insert the field instead of replace it
when HTTP_REQUEST {
HTTP::header insert X-Forwarded-For [getfield [IP::client_addr] "%" 1]
}
Bhattman
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