Forum Discussion
**** Mult-Pool Load Balancing based on Destination TCP port ****
As per my requirement ,I have tried and it is working.
VS has been configured for all port (*) and for each local_port, traffic is destined to specific pool
=============================
when CLIENT_ACCEPTED {
switch [TCP::local_port clientside] {
"2181" {
pool pool_abcd_2181
log local0. "abcd port 2181 is:[TCP::local_port]"
}
"2182" {
pool pool_abcd_2182
log local0. "abcd port 2182 is:[TCP::local_port]"
}
"2183" {
pool pool_abcd_2183
log local0. "abcd port 2183 is:[TCP::local_port]"
}
"5051" {
pool pool_abcd_5051
log local0. "abcd port 5051 is:[TCP::local_port]"
}
"6051" {
pool pool_abcd_6051
log local0. "abcd port 6051 is:[TCP::local_port]"
}
"7051" {
pool pool_abcd_7051
log local0. "abcd port 7051 is:[TCP::local_port]"
}
"8051" {
pool pool_abcd_8051
log local0. "abcd port 8051 is:[TCP::local_port]"
}
"9051" {
pool pool_abcd_9051
log local0. "abcd port 9051 is:[TCP::local_port]"
}
"9092" {
pool pool_abcd_9092
log local0. "abcd port 9092 is:[TCP::local_port]"
}
"9093" {
pool pool_abcd_9093
log local0. "abcd port 9093 is:[TCP::local_port]"
}
"9094" {
pool pool_abcd_9094
log local0. "abcd port 9094 is:[TCP::local_port]"
}
"9095" {
pool pool_abcd_9095
log local0. "abcd port 9095 is:[TCP::local_port]"
}
default {
reject
log local0. "abcd port denied is:[TCP::local_port]"
}
}
}
==========================
Hope it will be helpful
Recent Discussions
Related Content
* 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
