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?

link|improve this question

78% accept rate
feedback

2 Answers

up vote 1 down vote accepted

Something like

acl localhost src 127.0.0.1
acl auth proxy_auth REQUIRED
http_access allow localhost auth

should do the trick.

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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