Forum Discussion

runner_1355's avatar
runner_1355
Icon for Nimbostratus rankNimbostratus
Aug 22, 2011

Direct traffic to specific pool member

I have a situation where I have a pool with three members. I need a way to open three tabs in a web browser and access each of the three members each in a different browser tab. Is there a way to write an irule that will allow me to somehow specify the pool member in the uri and then keep a persistent connection to that node? Since the source IP address would be the same on all three browser tabs, I can't create an irule based on source address. It would have to be some other method but I don't know what it would be.

 

 

 

5 Replies

  • Hi Runner,

     

    There is a code share that Hoolio posted up that might just do the trick

     

     

    http://devcentral.f5.com/wiki/iRules.Select_pool_member_based_on_HTTP_query_string_parameter.ashx

     

     

    Keep in mind that this is something you might want to keep out from the public. From a security perspective you do not want someone to discover that they can specifically pick up the backend system via URI

     

     

    I hope this helps

     

     

    Bhattman

     

     

  • Hi Runner,

     

     

    Here is an example iRule you could try:

     

     

    http://devcentral.f5.com/wiki/iRules.Select_pool_member_based_on_HTTP_query_string_parameter.ashx

     

     

    Aaron
  • I'd try testing this iRule on a test virtual server before putting it on a production virtual server. And As Bhattman suggested, you might want to limit by client IP/network, who can select their pool member directly.

     

     

    Aaron