Forum Discussion
Meshal_119384
Nimbostratus
Jul 09, 2015forward traffic to multi pools and add x port to original port
Hi all ,
I need to have migration from x load balancer to new f5 ltm ,
I have on old one 180 VIPs with different ports , i need to simplify the migration by not create 180 VIPs ,so i have an idea to...
Kevin_Stewart
Employee
Jul 15, 2015Okay, so I'm not accounting for how you make a pool selection here, but the following is a very simple way to choose a pool member and then forward traffic to that member on a derived port. This assumes of course that the pool members are all listening on multiple ports and that the VIP is listening on multiple (all) ports.
when HTTP_REQUEST {
select the pool (your pool selection will differ)
pool pool1
force an early load balancing decision and store the chosen server IP in a variable
set srv [lindex [LB::select] 3]
direct the request to the chosen pool member on the derived port (1[TCP::local_port])
node $srv:1[TCP::local_port]
}
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