How To Install Squid Proxy on CentOS 8

Install Squid Proxy on CentOS 8

In this tutorial we will show you how to install Squid Proxy on CentOS 8. 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 organisation 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 Squid on a CentOS 8 server.

Install Squid Proxy on CentOS 8

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

Step 2. Installing Squid Proxy on CentOS 8.

Squid proxy is available on the default CentOS 8 repositories and can be installed by running the command:

Once the installation is done, start and enable it on system startup using following commands:

Step 3. Configuring Squid Proxy.

Before you can begin to customize the Squid configuration to suite your needs, create the configuration file backup:

Now we open squid’s main configuration file and add/edit the following:

Then, create our authentication file which Squid can use to verify for user authentications:

Step 4. Configure firewall for Squid.

If firewall is enabled, allow the Squid port. Replace the port if you have changed the default:

Finally done step configuration part now time to test browsing pointing squid ip and default port in client browser. On your Firefox, configure it to connect t external network via your Squid server. Preferences > General > Network Settings > Manual Proxy Configuration. Check Use this proxy server for all protocols.

Congratulation’s! You have successfully installed squid. Thanks for using this tutorial for installing squid proxy on CentOS 8 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 a best deal!