Forum Discussion
Christopher_Ach
Nimbostratus
Dec 15, 2008Load Balancing to mulitple SNAT Pools - VIP Sandwich
Hi
I have been told that what im trying to do is coined a VIP (virtual server) Sandwich, but im not sure how to configure it or if it can be done better via a Irule
Issue:
Internal Traffic destined for Internet passes through a LTM. Essentially I want to perform a SNAT on the traffic but I want to load balance the traffic (ratio LB) across 2 SNAT different Pools.
The reason for this is I need to control traffic back into my 2 ISP different links. I can control this at my Internet PE via advertising. So I want to SNAT traffic to Public IPs and I want to be able to control the ratio the LB SNATs to the two SNAT Pools
I was thinking that I could have 3 Vips.
first VIP is the front end VIP 0.0.0.0
second and third VIP are pool members of the first VIP and have associated SNAT pools on them.
They could be FastL4, but im not too sure where to enable the NAT check box and if all 3 VIPs would need to be 0.0.0.0?
Im trying to think of a way that I can use Irules to do this. The research I have done so far show me ways to snat based on source or dst IP, but I cannot use this method as all source IP must be LB'd and all dest traffic is random
Also I will have a default route on this LTM to my Internet PE, i.e all the traffic with either SNAT1 or SNAT2 will hit the same GW and then go out one of 2 ISP links that I control via advertising.
Any Ideas?
Thanks
Chris
3 Replies
- JRahm
Admin
You could do that if your are at least at 9.4 with the virtual name command, but if I'm understanding your requirement correctly, couldn't you just snat every third connection to a different snat address? - Christopher_Ach
Nimbostratus
Hi Thanks for your post - L4L7_53191
Nimbostratus
I am not entirely sure that this will meet your requirements, but you may be able to simply use a gateway pool with your two ISP links as pool members, with a ratio of 3:2. Then turn on SNAT automap on your 0.0.0.0 virtual server so the LTM will tag the traffic with the appropriate IP space for the respective links.
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