Forum Discussion
carpey_13558
Nimbostratus
Aug 17, 2007Quick 4.X irule logic question
I want to separate traffic using an IP range and port number. I tried using a rule similar to the one shown, but was having issues. I think it may have something to do with the logic operators. Which operator takes precedence? Would putting parenthese help?
if ( client_addr equals 10.10.10.10 netmask
255.255.255.0 and server_port equals 80
or client_addr 10.10.9.10 netmask 255.255.255.0
and server_port equals 80 ) {
use pool pool1
}
else {
use pool pool2
}
Thanks,
Carpey
- Deb_Allen_18Historic F5 AccountHi Carpey --
if ( ((client_addr equals 10.10.10.10 netmask 255.255.255.0) and server_port equals 80)) or ((client_addr 10.10.9.10 netmask 255.255.255.0) and (server_port equals 80)) ) { use pool pool1 } else { use pool pool2 }
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