Forum Discussion
iRule for SNAT
Dears I migrate an iRule from 10.2.0(LTM1600) to 11.4.1(4500) but it does not work. It will be applied to a virtual server Please help to debug Thanks
timing on
when CLIENT_ACCEPTED { if { [matchclass [IP::client_addr] equals $::SNAT_IP] } { snatpool SNATPool_Internal } }
2 Replies
- nathe
Cirrocumulus
Josh,
matchclass has been deprecated since v10 so you should use class match. Try this instead.
N
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals "SNAT_IP" ] } { snatpool SNATPool_Internal } } - Kevin_Stewart
Employee
Not 100% sure here, but either the matchclass is finally and completely deprecated in 11.4, or the $:: naming convention no longer works. Try this:
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals SNAT_IP] } { snatpool SNATPool_Internal } }where SNAT_IP is presumably the name of your address-based data group.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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