Squid HTTP Proxy installation on Ubuntu Server 14.10

You can use Squid proxy instead of Apache on Ubuntu Server. To install and configure Squid on Ubuntu Server 14.10 (and similar Debian-based Linux distributions), follow the steps below:

1.Install the Squid3 package:

sudo apt-get install squid3

2.Edit the Squid configuration file /etc/squid3/squid.conf and replace:

#cache_dir ufs /var/spool/squid3 100 16 256

with:

cache_dir ufs /var/spool/squid3 5000 16 256  max-size=200000000

validation-status-icon-infoNOTE: 5000 is cache size in MB.

3.Stop the squid3 service.

sudo service squid3 stop
sudo squid3 –z

4.Edit the Squid configuration file again and add http_access allow all before http_access deny all to allow all clients to access the proxy.

5.Restart the squid3 service:

sudo service squid3 restart