By user12625760 on Jan 16, 2007
I have finally installed a transparent caching server on the home server. Mainly as it provides an easy way to block unsuitable sites from the kids.
Adding these lines to ipnat.conf, recall my internal network is nge0 and the internet lives on rtls0
rdr nge0 0.0.0.0/0 port 80 -> 127.0.0.1 port 8080 tcp
The proxy server is listening on port 8080.
Then taking the source to squid which I built with these options:
CC=cc ./configure --prefix=/opt/squid --enable-ipf-transparent --enable-ssl
Whilst I could have used the package from blastwave.org I would like to wean the system off blastwave packages as they pull in lots of duplicated libraries when used on Solaris 10 or as in my case Nevada.
The squid cache is being stored in it's own ZFS file system /tank/squid/cache as you would expect however thanks to the way I have laid out the file systems it does snapshotted so it won't chew through disk.