Forum Discussion
Thomas_Knutson_
Nimbostratus
May 19, 2011iRule to autonat for specific client subnets
We have a need to have certain client requests use the autonat function, specifically for devices on our internal subnets that call our virtual servers. For example, we want to only use autonat ...
hoolio
Cirrostratus
May 19, 2011Hi Thomas,
I'd add the three networks to an address datagroup and then use the class match command to see if the client IP is in the datagroup ranges:
when CLIENT_ACCEPTED {
Check if the client IP is in the client_ip_class datagroup
if {[class match [IP::client_addr] equals client_ip_class]}{
snat automap
}
}
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