Forum Discussion
hooleylist
Mar 26, 2009Cirrostratus
Hi,
It would be cleaner to define the IP addresses in a datagroup of type 'address' and then use the matchclass command (Click here) to check the client IP against the datagroup.
when HTTP_REQUEST {
Check if client IP is in the datagroup
if {[matchclass [IP::client_addr] equals $::my_client_ips_class]}{
pool xyz
} else {
HTTP::redirect "http://redirect.example.com"
}
}
Aaron