Forum Discussion
One VIP On Port 443 Need To Send Traffic To 2 Diffrent Pool On Different Ports
Hi Experts,
Need assistance and guidance to understand the configuration to setup a VIP on port 443 which will send traffic to 2 different Pool with different ports.
Example: VIP: 10.10.10.22 Port 443 Pool1: 1.1.1.1 and 1.1.1.2 on Port 8080 Pool2: 3.3.3.1 and 3.3.3.2 on Port 7777
Waiting for expert advice.
- P_K
Altostratus
Based on what condition you want to send traffic to different pools?
- raunak_337416
Nimbostratus
Hi PK
Thanks for your response.
I have to send the traffic based on the back-end ports (8080 and 7777) , also secondly based on the URI.
- P_K
Altostratus
can you explain how the requests comes in and flow works?
- raunak_337416
Nimbostratus
Actually to save public IP as a VIP, the solution was designed like this where we have to use 1 vip to cater multiple pools based on different URI's.
For eg: Considering below setup:: if there is a uri and (where index is the main content for the web page hosted on one set of pool members on port 8080 and reports are the files catered from other pool member on port 7777).
So basically when request comes for report the LTM must send that traffic to 2nd Pool and if the request comes in for the main web page LTM sends that traffic to 1st Pool.
- P_K
Altostratus
Thanks for clarification and diagram. if i understood properly, you need to create 2 pools
Pool_1 -> 1.1.1.1:8080 and 1.1.1.2:8080 Pool_2 -> 3.3.3.1:777 and 3.3.3.2:7777Apply below iRule to your VIP and test.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
{ pool Pool_1 }"/index*"
{ pool Pool_2 } } }"/reports*"
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