Forum Discussion
Russell_77729
Nimbostratus
13 years agobasic iRule syntax
I have the following iRule. I want to also check for "[UDP::local_port] == 80". I would rather not nest my if statements. How can I evaluate clianet_addr and local_port in the same expression? ...
hoolio
Cirrostratus
13 years agoHi Russell,
You can try this:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals proxy_free] and [UDP::local_port] == 80} {
snat automap
} else {
snat none
}
}
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