Forum Discussion
Shawn_Puckett_8
Nimbostratus
Jul 18, 2006SNAT iRules for Multiple Gateways
Short description: I need to use different gateways out of the F5 for SNAT IPs.
Longer version: I need some of my systems that sit behind the Big-IP to NAT to different IPs so I can have our...
Deb_Allen_18
Jul 18, 2006Historic F5 Account
Hi Shawn -
The gateway pool members can be monitored by multiple transparent monitors to external IP destinations via ICMP or other protocols, rather than using the default ICMP monitor. Doc on transparent monitors is here: Click here
For outbound traffic, create the pools and the SNATs to match the virtual servers as you mention above, and also a wildcard virtual server enabled on the internal VLAN (Click here, Click here). Then apply the rule to the wildcard virtual server. The basic idea behind the rule you show would work, with one modification:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::remote_addr] equals 192.168.72.65/28]} {
pool gateway-2
} else {
pool gateway -1
}
}CLIENT_ACCEPTED happens before the SNAT, and IP::local_addr in CLIENT_ACCEPTED is the address local to the BIG-IP (in this case the destination IP) so you'll want to look instead for the real IP.HTH
/deb
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