Forum Discussion
Kevin_Pruett_73
Nimbostratus
May 24, 2012Outbound SNAT iRule defined by destination
Looking for assistance with a 9.4.6 iRule. I have written some very simple iRules, but I am not sure where to go with this one. Below are two iterations of iRules I attempted. The designed purpose ...
nathe
Cirrocumulus
May 24, 2012Kevin
This is how I'd do it (untested though).
Firstly, create a datagroup for all non SNAT IPs e.g. no_SNAT and all the address ranges
Then use this iRule:
when CLIENT_ACCEPTED {
Check if the remote address is part of the no_SNAT data group
if { [matchclass [IP::remote_addr] equals $::no_SNAT]} {
snat none
} else {
snat behind this address
snat 172.16.3.5
}
}
}
Hope this helps
N
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