Forum Discussion
brad_anton_1025
Nimbostratus
Feb 17, 2006pool selection based on client ip
i am trying to do a basic pool selection i have this, but its just not working
userlista is datagroup
when CLIENT_ACCEPTED {
if { [ matchclass [IP::client_addr]...
Colin_Walker_12
Feb 21, 2006Historic F5 Account
I'd like to see the data group that's associated with your rule.
I think your first attempt was closer, as you were using the client_addr variable.
Try something like:
when RULE_INIT {
log local0. "qa-rule --BRAD"
}
when CLIENT_ACCEPTED {
if { [ matchclass [IP::client_addr] equals $::test ] > 0 } {
pool qa-01-101-7200
} else {
drop
}
}But yes, things look fine in general, and that rule should allow you to select a pool based on the IP.
-Colin
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