Three Quick Steps to Setup Squid on a Mac
For some experiments on the HTTP/1.1 Vary header, I just setup the Squid web proxy on my Mac. Here are the three quick steps to get Squid up and running as a web proxy on a Mac.
Step 1: Install Squid
The best way to install Squid is via ports.
sudo port install squid
After installing, make the cache and logs directories writable. Since I am testing this locally on my personal Mac, I did the following:
cd /opt/local/var/squid sudo chmod go+rws cache sudo chmod go+rws logs
Step 2: Create swap directories and start Squid
cd /opt/local/sbin sudo ./squid -z sudo ./squid -N -d q -D
Step 3: Network Configuration
As shown in these screenshots.
Open System Preferences, and search for “Web Proxy”.

Select manual configuration, and enter host name and port number.




No comments yet.