Forum Discussion
Adam_3360
Nimbostratus
Dec 10, 2010SNAT iRule based on outbound destination address
Hi All
Don't know if this is the correct way to do it, but I am trying to configure Outbound SNAT based on the destination address.
The scenario is that I have an internal server w...
Chris_Miller
Altostratus
Dec 10, 2010Yep, that makes sense. You'll simply need to do a rule that switches based on destination address. I need to look into what form of IP::addr to use here though.
when CLIENT_ACCEPTED {
switch -glob [IP::local_addr] {
"1.1.1.1" { snat x.x.x.x }
"2.2.2.2" { snat y.y.y.y }
}}
Something like that would work as long as I have the right form of IP::addr.
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