Forum Discussion
quickref_74249
Nimbostratus
Oct 05, 2010SNAT with Data group list
Hi,
i searched the forum already and according to the posts i found i can't find the problem with my setup.
We use source NAT per default in our environment. therfore we have created a ...
hoolio
Cirrostratus
Oct 14, 2010If you're on 9.4.4 or higher, you should change the matchclass line to remove the $:: prefix from the datagroup name:
if {[matchclass [IP::client_addr] equals BAC]}{
You can also add another debug line inside the if statement to see which condition in the rule is being matched:
rule BAC_NAT {
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]:[TCP::client_port]: New connection to [IP::local_addr]:[TCP::local_port]"
if {[matchclass [IP::client_addr] equals BAC]}{
log local0. "[IP::client_addr]:[TCP::client_port]: Matched BAC datagroup, using AC_TEST snatpool"
snatpool AC_TEST
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: No BAC datagroup match, using ServerSNATpool snatpool"
snatpool ServerSNATpool
}
}
}
Aaron
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
