Forum Discussion
Ranvir_Floura_7
Nimbostratus
Mar 25, 2009redirect based on source ip address
Need a little help in coming up with an iRule where if the client IP matches i want it going to a pool, if not just redirect to a url. I am missing something here
when CLIENT_ACCEPTED ...
Ranvir_Floura_7
Nimbostratus
Apr 01, 2009Hi Aaron,
Thanks for the directions. I am still having an issue. Here is what i have and it is complaining about undefined procedure: class.
class my_client_ips_class {
host x.x.x.209
host y.y.y.18
host z.z.z.15
}
when HTTP_REQUEST {
Check if client IP is in the datagroup
if {[matchclass [IP::client_addr] equals $::my_client_ips_class]}{
pool uat_pool
} else {
HTTP::redirect "http://abc.test.com"
}
}
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
