Forum Discussion
Matt_Breedlove_
Nimbostratus
Feb 02, 2007Need some opinions on iRule
Basically, I am trying to allow a few URI's to be accessible by the Internet
when trying to hit a particular Pool, but all other URI's to be dropped unless the source IP of the client is coming from...
Matt_Breedlove_
Nimbostratus
Feb 09, 2007Here is what I ended up with. And If statement could be used for the second switch if desired or a class with matchclass
If anyone is looking for URL whitelisting with certain source IP's being able to trump the URL filter...this is it
Thanks for the comments and help
Matt
when HTTP_REQUEST {
switch -glob [URI::decode [string tolower [HTTP::uri]]] {
/feedserver/login* { pool fc.acmehosting.com }
/feedserver/logout* { pool fc.acmehosting.com }
/feedserver/getdata* { pool fc.acmehosting.com }
/feedserver/setdata* { pool fc.acmehosting.com }
/feedserver/stateChange* { pool fc.acmehosting.com }
/feedserver/proxyRequest* { pool fc.acmehosting.com }
default {
switch -glob [IP::addr [IP::client_addr] {
203.4.71.* { pool fc.acmehosting.com }
10.* { pool fc.acmehosting.com }
default {
discard
}
}
}
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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