Would you like to learn how to configure the Squid proxy basic authentication? In this tutorial, we are going to show you how to configure the basic authentication on the proxy server Squid.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Tutorial SQUID 4 - Configure the basic authentication

Install the required packages.

Copy to Clipboard

Search for the proxy server configuration file.

Copy to Clipboard

Edit the Squid configuration file.

Copy to Clipboard

Here is the file content, before our configuration.

Copy to Clipboard

Here is the file content, after our configuration.

Copy to Clipboard

These lines were used to enable the proxy basic authentication.

Copy to Clipboard

Create the proxy authentication file.

Copy to Clipboard

Create additional accounts.

Copy to Clipboard

Configure the correct file permissions.

Copy to Clipboard

Stop the SQUID service.

Copy to Clipboard

Start the proxy service.

Copy to Clipboard

In our example, we configured the SQUID server basic authentication.

On a local computer, configure the browser proxy settings.

Mozilla Proxy Configuration

The browser will request user authentication on the proxy server.

SQUID Proxy - Basic authentication

Congratulations! You learned how to configure the basic proxy authentication on the SQUID server.