Forum Discussion
Kevin_Nail
Nimbostratus
Aug 22, 2007Load balancing a pool across geographic locations
We are attempting to setup a pool that will be load balanced between the US and Singapore in a DMZ at our 2 sites. On the US side we have setup a route for the Asia traffic to get out of our firewall but we need to setup a SNAT for it to get back. We have setup an extra VLAN on the internal side for this project that we can use. The problem is that if we enable a SNAT on the external side (meaning the outgoing traffic to Asia) is SNAT'd then all traffic on the external side gets SNAT'd which breaks alot of things.
Question, is there a way to apply a SNAT to only 1 IP (the Asia IP)? or should we be using a NAT or maybe an iRule? We are scratching our heads so any help would be appreciated.
Thanks,
Kevin
- Diego_19194
Nimbostratus
Have u configured a snatpool? - Deb_Allen_18Historic F5 AccountSure, you can create an iRule to SNAT only traffic bound for the remote server address:
when LB_SELECTED { act only on connections going to remote servers if {[IP::addr [IP::server_addr] == 1.2.3.4]}{ snat to local address snat 4.3.2.1 } }
- Deb_Allen_18Historic F5 AccountBetter yet, if you enable SNAT automap on the selfIP on the egress vlan for that traffic, you can use "snat automap" instead:
when LB_SELECTED { act only on connections going to remote servers if {[IP::addr [IP::server_addr] == 1.2.3.4]}{ snat to local address snat automap } else { snat none }
- Kevin_Nail
Nimbostratus
Many thanks, - Deb_Allen_18Historic F5 AccountEgress VLAN would be the VLAN on which the packet leaves LTM, with the goal of forcing response traffic to return via that interface/VLAN.
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