Forum Discussion
Joe_Curl_105786
Nimbostratus
Oct 23, 2013Pool Selection
I am trying to select a pool based on the server port the client tries to connect on. I am getting the below error. I am also posting the rule below as well. Thanks for any assistance.
iRule ...
Kevin_Stewart
Employee
Oct 23, 2013Assuming you mean the destination port of the VIP, you'd use TCP::local_port.
when CLIENT_ACCEPTED {
switch -glob [TCP::local_port] {
"10320" {
pool CloverLeaf-NADCLLINTSIN01C-Pool
log local0. "Cloverleaf Matched 10.28.8.93"
}
"10870" {
pool CloverLeaf-NADCLLINTSIN01B-Pool
log local0. "Cloverleaf Matched 10.28.8.91"
}
default {
discard
}
}
}
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