Forum Discussion
SteveMP
Nimbostratus
Mar 28, 2019TCL errors on iRule
I have an iRule that looks at the source IP, tries to match the IP address to one in a data group list, and if it matches it sends it to a specific pool. This works in one region, but I copy and pas...
youssef1
Cumulonimbus
Mar 29, 2019Hi Steve,
For information EWS Path will always begin wit /ews/...
Answer above from Kai is fine, it will catch you error but this irule will not redirect you to the right pool because URI check fails...
So you can try this irule:
when HTTP_REQUEST {
set uri [string tolower [HTTP::path]]
if { ($uri starts_with "/ews") && ([class match [IP::client_addr] equals "O365_Exchange_Online_IPv4"]) } {
pool /Common/AP_EXT_O365_Exchange_Online_Direct
}
}
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
