Forum Discussion
Thiyagu_343098
Nimbostratus
Jul 30, 2018Conditional SNAT based on source IP
Hello All,
I'm working on a task to configure an irule to do a conditional SNAT based on source IP.
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals DNS_SNAT_TEST]} {
...
crodriguez
Jul 30, 2018Ret. Employee
Unless you're running an older version of BIG-IP software, I would use the CLASS MATCH command rather than MATCHCLASS. FINDCLASS and MATCHCLASS are deprecated as of v10. The CLASS MATCH equivalent of your MATCHCLASS command is:
class match [IP::client_addr] equals DNS_SNAT_TEST
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