sudo apt install squid
sudo systemctl start squid sudo systemctl enable 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.