Would you like to learn how to install Squid 4 on Ubuntu Linux? In this tutorial, we are going to show you how to install and configure the Proxy server Squid on Ubuntu Linux.

• 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 – Installation on Ubuntu Linux

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

Change the access list named LOCALNET to your internal network address.

Copy to Clipboard

Change the local cache size from 1GB (1000) to the desired amount.

Copy to Clipboard

Stop the Squid service.

Copy to Clipboard

Create the local cache directories.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Configure the correct file permissions.

Copy to Clipboard

Start the proxy service.

Copy to Clipboard

In our example, we configured the Proxy server on the TCP port 3128.

Verify the status of the proxy service.

Copy to Clipboard

On a local computer, configure the browser proxy settings.

Mozilla Proxy Configuration

Congratulations! You have learned how to install the Squid proxy server on Ubuntu Linux.