Table of Contents

Ubuntu - Squid - Install Squid

Install Squid

sudo apt install squid

Start squid service and enable it at startup

sudo systemctl start squid
sudo systemctl enable squid

Configure Squid

You can check the configuration file in /etc/squid/squid.conf.

Before we dig into the configuration, let’s see the proxy server in action.

Just change the proxy setting on your browser to the IP address of the proxy and the port 3128 since this is the squid default port.

You can change the default port by changing the http_port option in the configuration file.

If you are using a firewall don’t forget to open the squid server port.