Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a squid proxy cluster to let my users surf in the internet and on intranet ressources.

Now there is a special user, that wants to configure another squid in the net of the users. So this proxy wants to access the internet over a proxy-proxy configuration.

It doesnt work at the moment.

So here is the question: Whats the configuration line for my squid.conf to allow an IP to use my squid as an upstream proxy?

share|improve this question
up vote 2 down vote accepted

Let's say you have two proxies:

 ________       _________       _________       __________
| client | --> | proxy B | --> | proxy A | --> { internet }
|________|     |_________|     |_________|     {__________}
              port           port
              8000           8080

Your configuration for proxy A already works so we'll ignore that for now. The difference is that proxy B must be configured to send all requests to a proxy, not the internet. So how do to this in Squid for proxy B's configuration?

Investigate the cache_peer configuration directive.

Something like (for proxy B):

http_port 8000
cache_peer proxy_A parent 8080 0 no-query
share|improve this answer
So there is no difference for proxy A whether to handle an user or a proxy? – Fake4d Jan 5 '11 at 8:34
No. You don't need to alter proxy A. – PP. Jan 5 '11 at 8:40

On one proxy (the client side), you need to define the cache_peer.

On the other proxy (the server side), you need to define the appropriate acl line to allow the proxy IP to use this proxy.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.