Forum Discussion
dfmcfadden49_27
Nimbostratus
Jul 08, 2016How to send BIG-IP LTM, X-forwarded IP's to IIS "Ip Domain Filter" ?
On a BIG-IP LTM, we have a requirement to create an IP deny filter with Windows "Ip Domain Filters" on our Windows IIS. We need to have the X-forward IP data available for this including the log data...
Yann_Desmarest
Cirrus
Jul 08, 2016Hi,
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.
Yann_Desmarest
Cirrus
Jul 08, 2016I add the below line to avoid an attacker adding a custom X-Forwarded-For value :
HTTP::header remove "X-Forwarded-For"
I'm using
IP::client_addr which is the same as IP::remote_addr in your case.
Quick 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
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