Squid is one of the most highly configurable software packages available, but we’re going to use the absolutely simplest deployment possible.
apt-get install squid3
Backup the original 7,930 line Squid configuration file (not an exaggeration).
mv /etc/squid/squid.conf /etc/squid/squid.conf.old
Create a new Squid configuration file with everything we need.
echo -e "http_port 127.0.0.1:3128\nhttp_access allow all" > /etc/squid/squid.conf
Verify that Squid starts.
service squid start
Enable the service to start at boot.
systemctl enable squid