How to Install Squid Proxy Server on Ubuntu 16.04

October 9, 2020 Liquid Web

A Squid Proxy Server is a feature-rich web server application that provides both reverse proxy services and caching options for websites. This provides a noticeable speedup of sites, and allows for reduced load times when being utilized.

Squids reverse proxy is a service that sits between the Internet and the webserver (usually within a private network) that redirects inbound client requests to a server where data is stored for easier retrieval. If the caching server (proxy) does not have the cached data, it then forwards the request on to the webserver where the data is actually stored. This type of caching allows for the collection of data and reproducing the original data values stored in a different location to provide for easier access.

A reverse proxy typically provides an additional layer of control to smooth the flow of inbound network traffic between your clients and the webserver.

Squid can be used as a caching service to SSL requests as well as DNS lookups. It can also provide a wide variety of support to multiple other types of caching protocols, such as ICP, HTCP, CARP, as well as WCCP.  Squid is an excellent choice for many types of setups, as it provides very granular controls by offering numerous system tools, as well as a monitoring framework using SNMP to provide a solid base for your caching needs.

In this video, we demonstrate how to install and configure a Squid Proxy server on Ubuntu 16.04

Commands used:

apt-get update
apt install squid
cp /etc/squid/squid.conf /etc/squid/squid.conf.bak

vim /etc/squid/squid.conf (change http_port to 2946)
1190 http_access deny all - (change to “allow all”) 

#acl our_networks src 10.1.1.0/16 10.1.2.0/16
#http_access allow our_networks
-- VVV change to VVV --
acl our_networks src 10.1.1.0/16 10.1.2.0/16
http_access allow our_networks

acl liquidweb src 10.1.10.0/24
acl liquidweb time M T W T F 9:00-17:00

:wq (to save the file in vim)

systemctl restart squid.service

Video by: Justin Palmer

About the Author

Liquid Web

Liquid Web powers online content, commerce, and potential for SMB entrepreneurs and the designers, developers and digital agencies who create for them. Sign up for our <a href="https://www.liquidweb.com/blog">newsletter</a> to stay up to date with our latest content.

More Content by Liquid Web
Previous Video
How to Convert .htaccess Rules to NGINX Directives
How to Convert .htaccess Rules to NGINX Directives

In this video, we demonstrate how to convert .htaccess rules to NGINX directives.

Next Video
Troubleshooting Microsoft SQL Server Error 18456, Login failed for user
Troubleshooting Microsoft SQL Server Error 18456, Login failed for user

In this video, we demonstrate how to troubleshoot the MSSQL Server Error 18456 Login Failed for User.

Learn What Qualities to Look for in Your Next Host in Our New Guide!

Download Now