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...
nathe
Jun 06, 2012Cirrocumulus
Just refreshed the screen to post my suggestion and Richard had beaten me to it ;-)
Think a curly brace is missing. Here's mine anyway:
when HTTP_REQUEST {
if { [class match [IP::client_addr] eq 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
}
}
}
if { [class match [IP::client_addr] ne api.network.list] } {
switch -glob [string tolower [HTTP::uri]] {
"/pss-alerts*" -
"/pss-forms*" -
"/pss-reports*" -
"/pss-messaging*" {
pool rec.utt.pool
}
default {
reject
}
}
}
}
At least we're both on the same page!
N
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