Forum Discussion
How to send BIG-IP LTM, X-forwarded IP's to IIS "Ip Domain Filter" ?
Hi,
You can activate the X-Forwarded-For option in the http profile assigned to your Virtual Server.
Or you can use an irule for that :
when HTTP_REQUEST {
HTTP::header remove "X-Forwarded-For"
HTTP::header insert "X-Forwarded-For" "[IP::client_addr]"
}
Both solution works fine taken into account that you need to decrypt ssl (if https listening) and assign an http profile.
- dfmcfadden49_27Jul 08, 2016
Nimbostratus
Thank you for the reply. normally X-forward only sends the external IP to the IIS log. I see this Irule is a little different then the one I have used over the years. when HTTP_REQUEST { HTTP::header insert X-Forwarded-For [IP::remote_addr] } Does this Irule send to IIS for configuring "IP Domain Filters"? I guess the question should be how to I get the information in the IIS log to the "IP Domian filter" configuration. Can it be sent directly from the F5 or what is the process within IIS? Regards,
- Yann_Desmarest_Jul 08, 2016
Nacreous
I add the below line to avoid an attacker adding a custom X-Forwarded-For value :
HTTP::header remove "X-Forwarded-For"I'm using
which is the same asIP::client_addr
in your case.IP::remote_addrQuick description of the slight difference :
IP::client_addr - Returns the client IP address of a connection IP::remote_addr - Returns the IP address of the host on the far end of the connection.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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