Re: [squid-users] Differnt Upstream-Proxies

From: Muthukumar <kmuthu_gct@dont-contact.us>
Date: Sat, 21 Feb 2004 17:17:28 +0530


> I want squid forward http-request to one upstream proxy and https and some
> other http-request to a second differnet upstream proxy, but i don't know how
> to manage this.

You can do with the port selections to redirect http as well as other http and https
request to the upstream proxy
 
port acl's

acl http_port port 80
acl SSL_ports port 443 563
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http

Redirection rules

#http port request redirection
cache_peer http-upstream-cache-name parent 3128 3130 prefer_direct
#https and other http port request redirection
cache_peer https-other-upstream-cache-name parent 3128 3130 prefer_direct


cache_peer_access http-upstream-cache-name allow http_port
cache_peer_access http-upstream-cache-name deny all

cache_peer_access https-other-upstream-cache-name allow SSL_ports Safe_ports
cache_peer_access https-other-upstream-cache-name deny all

Try it out!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ Muthukumar Kandasamy/India $
$ ~~~~~~~~~~~~~~~~~~~~~~~ $
$ The secret to creativity is knowing how to hide your sources $
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Received on Sat Feb 21 2004 - 04:47:31 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:02 MST