Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm setting up a squid proxy on my computer (I use ubuntu).

However, my computer is not connected to the internet directly. I connect to the internet via an authenticating proxy (incidentally, also squid). I want to set up my own squid to send all requests to the internet via the other proxy.

I was mucking around with the tutorials and documentation, and found something called cache_peer. I tried using it, but to no avail.

You may ask, "Why are you doing this?"

A: My final goal is:

If my squid recieves a request to, then it will convert the request into

This is just like a simple URL rewrite (I know this term from apache).

So if you know how to do that, please tell me that too.



PS: i've never configured a squid proxy before in my life. this is my first time.

share|improve this question
What version of Squid are you using? – Zanchey Aug 31 '09 at 5:40
up vote 3 down vote accepted

See the Squid documentation for the cache_peer directive. For a proxy on, you could use something like:

cache_peer parent 8080 0 no-query default login=user:password
acl all src 
never_direct allow all
share|improve this answer
Yep, that will push all traffic through a proxy with a user and password. – Rich Bradshaw Aug 31 '09 at 10:21
thanks, I'll try that – harshath.jr Aug 31 '09 at 19:58

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.