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

My Squid HTTP proxy works fine with authentication. Here is the config:

auth_param basic program /usr/lib/squid/pam_auth
auth_param basic children 5
auth_param basic realm test-proxy
auth_param basic credentialsttl 4 hours
auth_param basic casesensitive off

But I want that my locally running applications which use the proxy don't have to authenticate. How to disable authentication for requests from localhost?

share|improve this question
up vote 3 down vote accepted

Something like

acl localhost src
acl auth proxy_auth REQUIRED
http_access allow localhost auth

should do the trick.

share|improve this answer
Some versions would fail using two values on http_access directive, so you should specify one per line and should work. Tested. – erm3nda Jun 26 '15 at 18:46

Better still - don't proxy for local requests - this is easily set up in browser config, group policy, proxy.pac etc. - there is generally no real case for local proxying.

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.