Forum Discussion
Techgeeeg_28888
Nimbostratus
Sep 26, 2012Load Balancing over two links
Hi guys,
I am sure what i am about to ask has already been discussed here. I have two internet links terminated on GTM and I have a Wild card Virtual Server taking the traffic to internet. I have two proxy servers sitting inside my network and I want one Proxy to utilize one ISP link and the other to utilize the other link and in case of failure of one of the links all the web traffic of that link should go via the second link. Can someone help me with an irule to achieve this.
Regards,
- What_Lies_Bene1
Cirrostratus
Can I suggest an alternative approach. Configure two virtual servers and two pools. Configure priority group activation for each pool with the 'active' server being the link you want to use, but reversed for the second pool. Then point proxy 1 at virtual server 1 and proxy 2 at virtual server 2. No need for an irule, persistence or anything complex. Does this make sense? - Techgeeeg
Nimbostratus
That I was thinking to do... but like right now I have one wildcard virtual server for all out going traffic. Now in the case that you are asking to do I will configure the Pool with priority group activation but what about the Virtual Server... I can't configure same Virtual Server multiple times also on the Wild card virtual server I have an Irule that map the Proxy private IP to a particular public IP pool using an snat pool. - Mohamed_Lrhazi
Altocumulus
I never used this but it sounds like you you might be asking about nexthop command: https://devcentral.f5.com/wiki/iRules.nexthop.ashx - What_Lies_Bene1
Cirrostratus
Yes sorry Techgeeeg, I didn't take that into account. Mohamed's suggestion seems workable if you mix it with a check that the pool member is available first and if not, use the other IP. - Techgeeeg
Nimbostratus
Hi Mohamed, - Michael_Yates
Nimbostratus
Do you have any other criteria that you could use to determine which ISP to use? - Techgeeeg
Nimbostratus
Hi Michael, - What_Lies_Bene1
Cirrostratus
Can you not switch the Virtual Server to be a Performance (Layer 4) VS so you can assign a pool. Then you can leave it round robin and make use of both links or mix in some source IP address persistence so one proxy uses one link and the second the other, although you won't be able to control which. - Techgeeeg
Nimbostratus
Hi, - What_Lies_Bene1
Cirrostratus
OK, I'm becoming increasingly confused by your requirements and restrictions I'm afraid. Why is the nexthop command not viable? Why can't you configure a more specific virtual server that just the proxies use?
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