Douglas E. Comer

Computer Science Department
Purdue University
West Lafayette, IN 47907

webmaster: W. David Laverell

Companion Topics


Book Information

Purpose of Site

Getting Started



"What's New"

"Coming Attractions"

"C Pointers"



Hands-On Networking: Experiment 16.2 Home > Student > Experiments > 16.2

Experiment 16.2

Chapter 16
16.1 16.3
Installing the Squid Web Proxy Cache software is somewhat more difficult than Apache. The basic idea is the same:
  1. Go to Squid Web Proxy Cache
  2. Click on the latest stable version (2.5)
  3. Download the .tar.gz file to a convenient directory
  4. Type tar xvf file.tar.gz
  5. Change to that directory
  6. Type ./configure
  7. Type make
  8. Type make install

At this point there are some changes that need to be made. Change directory to /usr/local/squid/var, make a new directory called cache by typing mkdir cache, change the owner of this new directory and the logs directory to squid by typing chown squid cache logs, and then make the following changes to /usr/local/squid/etc/squid.conf:

  1. find the line that begins with cache_effective_user and change it to cache_effective_user squid. (Uncomment that line if necessary)
  2. find the line that begins with acl our_networks and change it by adding the networks to which you want to grant access by listing the networks in CIDR notation. For example, acl our_networks
  3. Uncomment the following line which should read http_access allow our_networks

      Now execute /usr/local/squid/sbin/squid, and follow the directions to complete the experiment.

      This site is maintained by W. David Laverell of the Computer Science Department at Calvin College. For assistance or corrections, please contact him at