Sunday, April 23rd, 2006
Commands necessary to make squid run as a proxy for ME not as admin
Assumes squid installed via fink.
Useful for debugging:
squid -NCd1
top -l 1 | grep squid
sudo squid -k shutdown
Making squid have no cache — I just want it to be a proxy — add the following to /etc/squid.conf:
acl AllIncomingIps src 0.0.0.0/0.0.0.0
no_cache deny AllIncomingIps
Getting the permissions right (make owner me and open up permissions):
sudo chown -R myusername /sw/var/log/squid/
chmod -R u=rwx,g=rw,o=rw /sw/var/log/squid/
sudo chown -R myusername /sw/var/cache/squid/
chmod -R u=rwx,g=rw,o=rw /sw/var/cache/squid/
sudo chown -R myusername /sw/var/run/
chmod -R u=rwx,g=rwx,o=rx /sw/var/run/
Now, I can run squid instead of sudo squid and that makes me happy.
Of course, I actually don’t run it manually, I use launchd thanks to Steve’s instructions.
