Forum Discussion
runner_1355
Nimbostratus
Aug 22, 2011Direct 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
- The_Bhattman
Nimbostratus
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 - hoolio
Cirrostratus
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 - hoolio
Cirrostratus
Yeah, what Bhattman said :)
Aaron - runner_1355
Nimbostratus
Thanks! I will try this tonight during our outage window. - hoolio
Cirrostratus
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
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