Forum Discussion
mart_58302
Nimbostratus
Sep 23, 2008Destination based redirect irule, a'la cache.pac implementing?
Hello.
We are using F5 for proxy servers gateway, and everything works fine, but due routings in proxy's if the clients destination is local network, the proxy's can't connect t...
hoolio
Cirrostratus
Sep 23, 2008Hi Mart,
Do you have a pool of proxy servers and another pool defined to handle the traffic? If so, you can use a rule like this:
when HTTP_REQUEST {
Check if host header value only contains numerals or colons ":"
The format is {%[CHARS]}, where CHARS can be a character ranges or single characters.
The literal hyphern character '-' needs to be listed first or last in the character set
if {[scan [HTTP::host] {%[0-9:]}] eq [HTTP::host]}{
Split the host header value on the : if it exists
and check if it's part of the stock private_net datagroup
if {[matchclass [getfield [HTTP::host] ":" 1] eq $::private_net]}{
Use the direct pool
pool direct_pool
Stop processing this event in this rule
return
}
}
If we reached here, use the proxy pool
pool proxy_pool
}
Aaron
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