Donate to Wikipedia

Transform a Mac into an Open-Source Server

The Tutorial


Squid is a 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 has extensive access controls and makes a great server accelerator. It runs on Unix and Windows and is licensed under the GNU GPL.
- Squid Website

Mac OS X 10.4 does not come with Squid pre-installed. To install version 2.6 of the MacPorts Squid Proxy Server package, execute the following from the command line (you may have to enter a Mac OS X administrative password):

sudo port install squid

Before you configure Squid, first install and configure Webmin (see menu at left). Login to Webmin on your server once it is up, and go to Squid Proxy Server under the Servers menu. Click the Module Config link, and set the following configurable options:

Full path to squid config file:

Squid executable:

Full path to PID file:

Full path to squid cache directory:

Squid cachemgr.cgi executable:

Full path to squid log directory:

Path to squidclient program:

Your Squid cache directory /opt/local/var/squid/cache has not been initialized.This must be done before Squid can be run.

Initializing the Squid cache with the command /opt/local/sbin/squid -f /opt/local/etc/squid/squid.conf -z ..

A log of the Squid installation can be found here.

Chapter 12 of the Book of Webmin is a great online guide for managing Squid with Webmin.