Forum Discussion
Patrick_Chang_7
Feb 14, 2008Historic F5 Account
selective SNAT on Forwarding VS
I want to selectively SNAT on a forwarding VS based upon the IP address of the destination. My iRule would look like the following:
when CLIENT_ACCEPTED {
if [matchclass $$::internal_network...
hoolio
Cirrostratus
Feb 15, 2008Hi,
You can use not or ! to negate the comparison. I'm pretty sure you need to wrap the test in parens. And yes, IP::local_addr in the clientside context will be the destination IP.
when CLIENT_ACCEPTED {
if {not ([matchclass $::internal_networks equals [IP::local_addr])}{
snatpool pool_snat
}
}
Aaron
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