Squid is an open source caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid also has extensive access controls and makes a great server accelerator. This article will show you how to install and configure the Squid Proxy Server in RHEL/CentOS 5.

How to install Linux

You can use either Red Hat Enterprise Linux 5 or CentOS 5. RHEL 5 can be purchased from Red Hat and comes with support. CentOS 5 on the other hand can be downloaded here.

NoteTo simplify our administration tasks, log in as the user root and specify your root password. This is not the recommended way of administering a Linux box, but for the tasks at hand it is the most efficient way.

How to setup the Squid Proxy Server

The Server – GUI installation already include Squid so all we have to do is start the Squid service and open the Squid port in the firewall.

Edit squid.conf1. Edit the Squid configuration file /etc/squid/squid.conf. See a sample squid.conf. Learn more about the Squid Access Control List (ACL).
Service Configuration2. Start the squid service. Learn how to start services.
Security Level Configuration3. Squid listens on the port 3128 so this should be opened in the firewall. Learn how to configure the firewall.
IE7 Squid Denied4. Configure your browser to use Squid. If you hit any of the deny rules, you should see a Squid error message.

How to integrate Active Directory

You can use you Active Directory user accounts for authenticating in Squid. You can also the Active Directory groups to group the access control in Squid. This section describes how to use Samba to integrate Active Directory into Squid.

How to generate analysis reports

To generate analysis report for Squid, we are going to use the Squid Analysis Report Generator (SARG) and Webmin. Webmin will make it easier to manage SARG.

Visit the forum to ask for help or to give a comment.

Posted on 11/15/2008 and last updated on 8/7/2010
Filed under Squid Proxy Server