Donate to Wikipedia

Transform a Mac into an Open-Source Server

The MacPorts.info Tutorial

Squid

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:
/opt/local/etc/squid/squid.conf

Squid executable:
/opt/local/sbin/squid

Full path to PID file:
/opt/local/var/squid/logs/squid.pid

Full path to squid cache directory:
/opt/local/var/squid/cache

Squid cachemgr.cgi executable:
/opt/local/libexec/cachemgr.cgi

Full path to squid log directory:
/opt/local/var/squid/logs

Path to squidclient program:
/opt/local/bin/squidclient

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.