How To Install Squid on CentOS 7

Install Squid on CentOS 7

In this tutorial, we will show you how to install and configuration of Squid on your CentOS 7 server. For those of you who didn’t know, Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. Squid proxy is used by various organisations and internet providers to reduce bandwidth and to increase response time.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation of Squid proxy on a CentOS 7 server.

Install Squid on CentOS 7

Step 1. First, let’s start by ensuring your system is up-to-date.

Step 2. Installing Squid.

Installing Squid and related packages are now as simple as running just one command:

Verify and check the version of the Squid the installation:

Start the service and set it to start at Boot time:

Step 3. Configure Squid on CentOS 7.

You can now configure Squid. The configuration file is located at the following path:

Create our authentication file which Squid can use to verify for user authentications:

Finally, restart Squid services and add a firewall rule to allow squid 3128 port.

Done configuration part now time to test browsing pointing squid IP and default port in the client browser.

Congratulations! You have successfully installed squid. Thanks for using this tutorial for installing squid proxy on CentOS 7 system. For additional help or useful information, we recommend you to check the official squid website.

Squid Install Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “Squid Proxy” installation, starting from $10 (Paypal payment). Please contact us to get the best deal!