Forum Discussion
Christopher_Boo
Jun 05, 2012Cirrostratus
Need help combining 2 irules
I'm not much of a scripter but I usually figure it out of I stare at it long enough. I'm trying to combine the 2 irules below. I'd like to insert irule 2 at the end of irule 1. The idea is to allow...
Richard__Harlan
Jun 06, 2012Historic F5 Account
Ok it then this should work I had to double the switch statement but it allows if the ip matches and the URI matches it will goto rec.utt.pool ulse api.utt.pool
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals api.network.list] } {
switch -glob [string tolower [HTTP::uri]] {
"/pss-alerts*" -
"/pss-forms*" -
"/pss-reports*" -
"/pss-messaging*" {
pool rec.utt.pool
}
default {
pool api.utt.pool
}
}
} else {
switch -glob [string tolower [HTTP::uri]] {
"/pss-alerts*" -
"/pss-forms*" -
"/pss-reports*" -
"/pss-messaging*" {
pool rec.utt.pool
}
default {
reject
}
}
}
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