How to Set up a SQUID PROXY

Communications | Debian Support

Want to watch what everyone on your network is doing? Want to cache the web data to make your connection faster and use less bandwidth? Use a squid proxy. Here is some very simple and as of yet not completly tested method of setting it up. lets call it 90% of what you have to do.. I think there might be some firewall edits you have to make as well...hmmm...

apt-get install squid

cp /usr/share/doc/squid/examples/squid.conf /etc/squid.conf

nano /etc/squid/squid.conf

find the part that is something like this and uncomment it in.

acl bad dstdomain .myspace.com ad.uk.doubleclick.net
http_access deny bad
acl home src 192.168.1.0/24
http_access allow home

replace the /etc/squid/squid.conf with a real config file..

this is my config

acl bad dstdomain .myspace.com ad.uk.doubleclick.net
http_access deny bad
acl home src 192.168.1.0/24
http_access allow home


to change the error message of a blocked page
cd /usr/share/squid/
cd errors/
cd English/
nano ERR_ACCESS_DENIED
killall -HUP squid

to watch browsing activities of others
tail -f /var/log/squid/access.log