Forum Discussion
marlon_Gino-gi1
Nimbostratus
Dec 28, 2006conditional snat with multiple gateway
The LTM box is setup with multiple gateway,what we need is for our internal network that sit behind the LTM to SNAT to different IPs so that it can use the snat address defined for the secondar...
kykong_107132
Nimbostratus
Dec 29, 2006Hi,
u can try out this irule. Happy trying and happy new year.
-----------------------------------------------------------------------------
when LB_FAILED {
if { [LB::status pool gateway_pool member 203.131.1.1] eq "down" } {
snat 222.126.20.10
}
else {snat 203.131.1.10}
}
-----------------------------------------------------------------------------
Assign this irule to your wildcard virtual server.
In this irule, I assume that 222.126.20.10 will be your external network2 Snat IP address and 203.131.1.10 will be external network1 snat IP address.
if F5 detected your gateway_pool member for external network1 is down, it will snat using external network2 IP address.
regards,
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
