Forum Discussion
Kirit_Patel_521
Nimbostratus
Dec 13, 2011Wildcard 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.
Now when i define one to one SNAT for a particular server it does not work meaning the one to one snat should take precedence over wildcard . This is in 10.2.3
Here is my config. So when i initiate traffic from server 172.16.12.40 i should see traffic coming out from 204.8.131.252 not the flotaing-ip of the LOad balancer.
virtual out-vip {
ip forward
snat automap
destination any:any
mask 0.0.0.0
}
snat out-204.8.131.252 {
translation 204.8.131.252
origins 172.16.12.40
vlans VLAN12-T1-SandP enable
}
5 Replies
Sort By
- Hamish
Cirrocumulus
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.when CLIENT_ACCEPTED { if { [IP:addr [IP::client_addr] equals "172.16.12.40"] } { snat 204.8.131.252 return } snat automap }
- nitass
Employee
Sounds logical as I believe the VS is hit before the separate SNAT is done. i agree with Hamish.- kev_245_28249
Nimbostratus
I wish this SOL mentioned SNAT vs IP Forward. If you have a 0.0.0.0/0 IP Forward and a Snat configured it does't talk about this scenario
- nitass_89166
Noctilucent
Sounds logical as I believe the VS is hit before the separate SNAT is done. i agree with Hamish.- kev_245_28249
Nimbostratus
I wish this SOL mentioned SNAT vs IP Forward. If you have a 0.0.0.0/0 IP Forward and a Snat configured it does't talk about this scenario
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