Forum Discussion
Apr 29, 2010
Persist only specific IPs destined for a VS
I'm looking to limit persistence to specifc IPs destined for a VS and load balance everyone else with the default LB metric assigned to the Pool. I see I can only apply a mask in the standard Source ...
Apr 29, 2010
Cool, that's where I was going with it. Do you know if "if" is a cleaner way to do this vs setting the variable "hostip"? Setting the host variable leave the option to do something else with the info in the future..
when CLIENT_ACCEPTED {
set hostip { [matchclass [IP::client_addr] equals $::phsIPs]
Check if there was a match
if {$hostip ne ""}{
persist source_addr 28800
pool mypool
} else {
pool mypool
}
}
Yep I'm using ver 9.x, I've seen the command change a bit in 10x. Thanks for the reference thread, good info..
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