tnastars_92934
Feb 02, 2010Nimbostratus
Help With IRule to limit access via an address data group
Hello,
I have created the below iRule. I am trying to limit access to a URL based on a specific URI, but allow all traffic to any other URI going to the virtual server. My main question is how to I specify what pool of address to send the traffic to? I think this will work if I can leave a default Pool on the virtual server as well as an iRule. Is that possible? If not is there code I can add to my iRule to specify the pool I wish to send traffic to?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/Foo/"} {
if { not [matchclass [IP::client_addr] equals $::Foo_IPs] } {
HTTP::respond 403 content "403 - Forbidden" }
}
}