Forum Discussion
jmloveless_4477
Nimbostratus
Nov 09, 2010iRule to SNAT and select pool member
Good evening,
I am using the LC with an irule on the default gateway pool to snat a particular internal client to an outside address (overriding the automap on the default gateway poo...
hoolio
Cirrostratus
Nov 09, 2010Actually, maybe the issue is with specifying port 0 for the pool member? If that's the issue, you might try something like this:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals 10.251.1.65]} {
snat X.X.X.10
pool default_gateway_pool member X.X.X.1 [TCP::local_port]
}
elseif {[IP::addr [IP::client_addr] equals 10.40.14.12]} {
snat Y.Y.Y.10
pool default_gateway_pool member Y.Y.Y.1 [TCP::local_port]
}
}
Aaron
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