Forum Discussion
James_Thomson
Employee
Apr 11, 2005intelligent SNAT using server_selected
I read post http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=1540 and it was helpful. I am trying to do the same type of thing, but add 1 more piece. I have a BIG-IP with ext...
James_Thomson
Employee
Apr 13, 2005So, I updated with this:
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
snat automap
log "snat automap"
}
else {
snat none
log "snat none"}}
You were right, IP::server_addr was not available. So, I thought this would work without defining a snat automap in the SNATS section, but it doesn't. It logs the correct way, but the command "snat automap" does not trigger the snat'ing. If I create a snat automap through the SNAT's section, it gets automapped every time, even though I see it log "snat none" in /var/log/ltm, it doesn't seem to be running the snat none command.
So, the if command is working ok, but the snat commands are not.
I even tried changing it to this and taking off the snat I had defined.
when LB_SELECTED {
if {[IP::addr "[IP::client_addr]/24" equals "[LB::server addr]/24"]} {
use snat automap
log "snat automap"
}}
It logs "snat automap", but it does not snat it.
Any ideas?
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