Forum Discussion
genseek_32178
Jun 12, 2012Nimbostratus
iRule syntax
Hi,
We ve the following iRule configured,
iRule X
when CLIENT ACCEPTED {
if {[IP::addr [ IP::local_addr] equals 10.10.10.x ] } {
snatpool pool1
} ...
hooleylist
Jun 12, 2012Cirrostratus
If the client's destination IP address was 10.10.10.x, the iRule would apply a SNAT using snatpool pool1 on the serverside connection. If the client's destination IP address was 20.10.20.x, the iRule would apply a SNAT using snatpool pool2 on the serverside connection. So IP::local_addr in CLIENT_ACCEPTED refers to the client's destination (TMM's local address for the clientside context).
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