Forum Discussion
sykurn_386269
Nimbostratus
Mar 18, 2019how to Outbound NAT to the specific destination IP
Hi,
how to do outbound NAT ?
I have global 0.0.0.0/0 VS and use SNAT Automap within it.
I've configured NAT, but the Origin IP address always translated to the SNAT Automap (self-IP egress...
Kai_Wilke
MVP
Mar 18, 2019Hi Sykurn,
you may apply the iRule below to your IP-Forward VS to flip the SNAT IP selectively...
when CLIENT_ACCEPTED {
if { [IP::local_addr] equals "50.50.50.50" } then {
snat 111.111.111.111
}
}
Note: The iRule is getting triggered in the clientside context. So the
is the destination address value of the client side connection. [IP::local_addr]
Cheers, Kai
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