Forum Discussion
Kirit_Patel_521
Dec 13, 2011Nimbostratus
Wildcard virtual server for outbound and one to one SNAT problem
Folks
I have a situation where I have defined wildcard virtual server with 0.0.0.0 network and 0.0.0.0 mask with IP forwarding which will basically allow every server internal to go outbound...
Hamish
Dec 13, 2011Cirrocumulus
Sounds logical as I believe the VS is hit before the separate SNAT is done. And as the VS has automap, the separate SNAT never gets hit because the server has already been SNAT'ed to the floating IP of the BigIP.
You could work around this with an iRule on the VS. A nice simple one such as
when CLIENT_ACCEPTED {
if { [IP:addr [IP::client_addr] equals "172.16.12.40"] } {
snat 204.8.131.252
return
}
snat automap
}
And remove the automap from the VS itself (Because the iRule does it for you. You could play with the iRule a bit and get it to use a datagroup as well for the matching... make it a bit more flexible when you want to change the IP's...
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