Forum Discussion
cerpika_14370
Nimbostratus
Aug 26, 2010Exclude servers from SNAT automap
Hello, I have a question regarding excluding 2 servers from a snat automap. The BIG-IP has SNAT automap set, and a forwarding virtual server to make sure the servers behind the BIG-IP find their appro...
George_Watkins_
Aug 27, 2010Historic F5 Account
Hi cerpika,
Here are two ways to do the same thing. If you need more than two addresses or so, I'd recommend consolidating them into a datagroup for ease of manageability.
Example 1:
when LB_SELECTED {
if { [[IP::server_addr] != 10.0.0.1] or [[IP::server_addr] != 10.0.0.2] } {
snat automap
}
}
Example 2:
when LB_SELECTED {
switch -glob [IP::server_addr] {
10.0.0.1 -
10.0.0.2 { }
default {
snat automap
}
}
}
Hope this helps,
George
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