Forum Discussion
Diego_23471
Nimbostratus
Apr 23, 2013redirect based on source ip
I can't seem to get redirects based on client IP working. The IP on alloweed IP class works by passing traffic. All other ips get dropped.
when CLIENT_ACCEPTED {
Check ...
Kevin_Stewart
Employee
Apr 23, 2013IP::addr is a boolean operator, which you don't need to make a comparison with a data group entry. So an updated (v10/v11) version of your rule might look something like this:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals ALLOWED_IP_class] } {
pool prodpool
} else {
pool testpool
}
}
If you define ALLOWED_IP_class as an address class, then you can filter on both host (specific) and network (subnet) client IPs.
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