Forum Discussion
gdoyle
Aug 15, 2017Cirrostratus
Use iRule to SNAT based on Destination IP address without using a SNAT Pool.
I've seen an answer for a similar question on here, but the solution was to use a SNAT pool. Here's my situation:
ServerA that needs to reach out to an external IP address. ServerA is in a SNA...
janholtz
Aug 15, 2017Altostratus
Hi
I don't quite understand the question.
A SNAT pool is a group of IP addresses that could be used as source IP's on the F5 ... Do you mean that ServerA has the SAME IP address as one that is in the SNAT pool?
Do you need to conditinally SNAT traffic coming from Server A, in the event that it is destined for a specific external IP?
if so:
//
when RULE_INIT {
set ServerA 192.168.1.1
set DestinA 10.0.0.1
}
when CLIENT_ACCEPTED {
if { [IP::client_addr] equals $ServerA && [IP::remote_addr] equals $DestinA } {
snat $ServerA
}
}
//Jan
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