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 ...
Thomas_Knutson_
Nimbostratus
May 19, 2011I did some more looking around, and think I may have been able to adapt an iRule to acomplish this. Will the iRule below work, or is there a better way for me to write it?
when CLIENT_ACCEPTED {
if { [IP::addr [IP::remote_addr] equals xx.xx.xx.xx/24] } {
snat automap
} elseif { [IP::addr [IP::remote_addr] equals yy.yy.yy.yy/24] } {
snat automap
} elseif { [IP::addr [IP::remote_addr] equals zz.zz.zz.zz/24] } {
snat automap
} else {
return
}
}
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