Forum Discussion

raunak_337416's avatar
raunak_337416
Icon for Nimbostratus rankNimbostratus
Oct 12, 2017

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.

 

5 Replies

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    Based on what condition you want to send traffic to different pools?

     

  • 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's avatar
    P_K
    Icon for Altostratus rankAltostratus

    can you explain how the requests comes in and flow works?

     

  • 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's avatar
    P_K
    Icon for Altostratus rankAltostratus

    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:7777

    Apply below iRule to your VIP and test.

    when HTTP_REQUEST {

    switch -glob [string tolower [HTTP::uri]] {

    "/index*"
    {

    pool Pool_1

    }

    "/reports*"
    {

    pool Pool_2

    }

    }

    }