Use Basic Authentication Squid

Use Basic Authentication Squid

Use Basic Authentication Squid

In this scenario we are configuring a HTTP proxy to require basic authentication, such as a username/password combo. We are assuming that you have already configured your proxy for HTTP, and you want to add this functionality.

If not, check here

blog.zwiegnet.com/linux-server/configure-squid-http-proxy-centos-6/

Login and su to root

Squid basic authentication: Login and su to root

as always, make a backup of the squid config

Squid basic authentication: as always, make a backup of the squid config

from here we need to install the htpasswd package

Squid basic authentication: we need to install the htpasswd package

back in the squid.conf file the acl CONNECT method CONNECT, and modify as follows:

Squid basic authentication: back in the squid.conf file the acl CONNECT method CONNECT, and modify as follows

from here create a username/password, for this example we used the username “squid”

Squid basic authentication: create a username/password, for this example we used the username "squid"

now we can’t forget to restart the squid service…

Squid basic authentication: we can't forget to restart the squid service…

now go to the web browser of the squid client you already have setup, as you can see, it wants a username/password

Squid basic authentication: go to the web browser of the squid client you already have setup, as you can see, it wants a…

go ahead and enter squid

That’s it!

Hosted Linux Servers at www.zwiegnet.com/go

Related guides: Configure Squid LDAP Authentication | Load Balance Squid Reverse Proxy

Leave a Reply

Your email address will not be published. Required fields are marked *