Forum Discussion
david_20684
Nimbostratus
May 08, 2008IP address and domain name restrictions in IIS
Has anyone come up with a solution for "IP Address and Domain Name Restrictions" settings in IIS behind an f5?
I would like to restrict access to our web servers running a private appli...
hoolio
Cirrostratus
May 09, 2008You can remove all existing XFF headers and insert a new value using this iRule:
when HTTP_REQUEST {
Remove all XFF headers, if present
while {[HTTP::header exists X-Forwarded-For]}{
Log a debug message for deleting the current XFF header
log local0. "Removing XFF: [HTTP::header value X-Forwarded-For]"
Remove the current XFF header
HTTP::header remove X-Forwarded-For
}
Now that no XFF headers exist, insert a new one
HTTP::header insert X-Forwarded-For [IP::client_addr]
}
This will ensure that only the BIG-IP XFF value is included in requests sent to the server. You'll need to parse the XFF header value to get the original IP address the BIG-IP received.
Aaron
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
