For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

shaig_162391's avatar
shaig_162391
Icon for Nimbostratus rankNimbostratus
Jul 15, 2014

iRule for LB between few servers and tcp range ports on each server

I need to configure iRule for LB between few servers and tcp range ports on each server

 

Voip component will send tcp packet (always port 5060) to F5 VIP  F5 will take the tcp5060 and send it to destination servers and change the destination port between range 5040 to 5048 (5040,5042,5044,5046,5048) The return packet should be with the relevant port .

 

For example :

 

First packet : voip device --> tcp 5060 --> F5 VIP --> tcp 5040 --> destination server1 Return packet --> tcp5040 Second packet : voip device --> tcp 5060 --> F5 VIP --> tcp 5042 --> destination server 1 Return packet --> tcp5042 Third packet : voip device --> tcp 5060 --> F5 VIP --> tcp 5044  destination server1 Return packet --> tcp5044

 

And so on till port 5048 .

 

After finished all ports range on server1 F5 will start the same for server2 .

 

Please advise how we can do it .

 

Thanks Shai

 

1 Reply

  • Hi Shaig,

     

    You can populate the pool with destination servers on the range of ports you would like. Make sure the translation is turned on the VIP.

     

    For example:

     

    VIP IP:5060 --> Pool Member 1: SERVERIP1:5040

     

    VIP IP:5060 --> Pool Member 2: SERVERIP1:5042

     

    VIP IP:5060 --> Pool Member 3: SERVERIP1:5044

     

    VIP IP:5060 --> Pool Member 4: SERVERIP1:5046

     

    VIP IP:5060 --> Pool Member 5: SERVERIP1:5048

     

    VIP IP:5060 --> Pool Member 6: SERVERIP2:5040

     

    VIP IP:5060 --> Pool Member 7: SERVERIP2:5042

     

    VIP IP:5060 --> Pool Member 8: SERVERIP2:5044

     

    VIP IP:5060 --> Pool Member 9: SERVERIP2:5046

     

    VIP IP:5060 --> Pool Member 10: SERVERIP2:5048

     

    -=Bhattman=-