Forum Discussion
RPM_201817
Nimbostratus
Oct 09, 2015Conditional HTTP/S Redirect - Source IP Range
My internal clients all fall within the private 10.0.0.0/8 IP address range. I'm looking for an iRule that will deliver all of the requirements listed below. The iRule will be attached to a single LT...
Kevin_Stewart
Employee
Oct 09, 2015This should be pretty close to your description:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 10.0.0.0/8] } {
local clients - allow all access
return
} else {
remote clients
if { [string tolower [HTTP::uri]] starts_with "/vcac/org/" } {
permit
return
} else {
redirect
HTTP::redirect "http://error.test.net/oops"
}
}
}
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