Jeff_Tuthill_10
Aug 10, 2009Nimbostratus
Pool Selection based on client domain name or IP address
So I think this may be an easy one but I am getting stuck on this. I have an application that I want to allow access to if the client has a certain domain name or is coming from a certain IP subnet...otherwise I want to discard the connection.
So far I have set up a Data Group with the allowed IP's and set up the irule as such:
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals $::DATA_GROUP_NAME] } {
pool pool1
} else {
discard
}
}
This works fine for the IP addresses but how do I get the domain name working? So my scenario is:
Go to pool1 if you are from 10.10.10.0 or 10.10.11.0 or from *.example.com otherwise you get discarded.