How to: Linux / UNIX setup Squid Proxy authentication

by on October 8, 2007 · 3 comments· LAST UPDATED October 8, 2007

in , ,

Q. I'm using Squid Cache Version 2.6.STABLE. It is configured perfectly and I'd like to know how do I allow squid to only authenticated users?

A. Squid can authenticate users if squid is configured to use proxy_auth ACLs. Browsers send the user's authentication credentials in the Authorization request header. If Squid gets a request and the http_access rule list gets to a proxy_auth ACL, Squid looks for the Authorization header. If the header is present, Squid decodes it and extracts a username and password.

If the header is missing, Squid returns an HTTP reply with status 407 (Proxy Authentication Required). The user agent (browser) receives the 407 reply and then prompts the user to enter a name and password. The name and password are encoded, and sent in the Authorization header for subsequent requests to the proxy.

Your Squid software comes with a few authentication helper programs. These include (click link below to open Squid cache authentication configuration tutorial):



If you would like to be kept up to date with our posts, you can follow us on Twitter, Facebook, Google+, or even by subscribing to our RSS Feed.


{ 3 comments… read them below or add one }

1 deepak August 29, 2009 at 1:18 pm

I want to know about the user based authentication on squid server.Plz help me

Reply

2 mikey October 8, 2009 at 8:08 am

cool

~Mike, Malaysia

Reply

3 Anil Pandey September 28, 2011 at 6:54 am

I want to know about the user based authentication on squid server.Plz help me
how to configure it plz guide me step by step
thanx

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , ,

Previous Faq:

Next Faq: