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 24, 2008Can you add an HTTP profile to the VIP and test with the example in my first post above? The HTTP profile is required to allow LTM to parse the request as HTTP.
The private_net class referenced in the example is a stock class of addresses defining RFC1918 internal IP's:
b class private_net list
class private_net {
network 10.0.0.0/8
network 172.16.0.0/12
network 192.168.0.0/16
}
If you don't want to parse the HTTP and can instead look at the requested IP address, you could use something like this:
when CLIENT_ACCEPTED {
if { [matchclass [IP::local_addr] equals $::private_net] } {
forward
} else {
pool live-proxy-pool
}
}
As this rule doesn't inspect the HTTP headers/data you wouldn't need an HTTP profile on the VIP.
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