My Pi image acts as a network router with transparent squid-caching, dansguardian content filtreing, and connection to the OpenDNS filtered DNS service.
Ok, I posted my Raspberry Guardian image to dropbox:
https://www.dropbox.com/s/uq4ezoq2hurn6 ... ha2.img.7z
A quick tutorial:
1. You will need: Your Raspberry Pi, an 8 GB SDCard, and a USB Network Interface Card (NIC)
2. Decompress the image using 7zip and put it on your SDCard your favourite way. I use dd. Load the SDCard in the Pi's SDCard slot.
3. Attach the USB network adapter to your Pi. This will be your internal interface.
4. Connect your wifi router, or switch's uplink port to the USB network adapter's port with a patch cable.
5. Attach the ethernet cable from your cable/dsl/satellite/other broadband modem or router to the Pi's builtin network jack.
6. Power your Pi on! Give it about 5 minutes to start (to be safe) and you are connected.
7. Go to
http://www.opendns.com create a home DNS account, link it to your network, and set it to filter according to the categories you want.
8. To test that the pi's filtering is working, try accessing
http://www.raspberryguardiantest.net It should bring up a big yellow "Access Denied" sign. (Note, that is not a real website.)
9. The Pi's settings are available via Webmin: the configuration can only be accessed from the internal interface. The configuration url is:
https://raspberrypi.raspberry.pi:10000
10. Login to webmin on the Pi using the default username of pi and password of raspberry. You can change settings related to the firewall, squid-cache, dansguardian filter, and the pi in general from here, as well as access a text login. You can also ssh login to the pi from inside its network. Have fun!
A few things to know about this pi image:
I use OpenDNS to check website names to take some load off the Pi. You will need an OpenDNS account linked to your location's IP address to take advantage of this.
The image itself is compressed with 7zip, decompress the .img BEFORE putting it on your SDCard.
It is designed for an 8 Gigabyte SDCard, to give plenty of room for a large Squid-cache; with a smaller cache the image could easily be resized to fit on a 2 GB SDCard.
It Requires 2 network interfaces to be attached to your Pi. I got mine from Amazon:
http://www.amazon.com/TRENDnet-USB-100M ... sb+network
It would require a little tweaking to work with a wifi adapter as the internal interface, but I think it could be done.
My setup expects dhcp on the external interface and provides dhcp on the outgoing interface. Dhcp range provided by the Pi on the internal interface is 10.0.3.14 to 10.0.3.254 and the Pi sets its own address on the internal interface as 10.0.3.1
The external interface is the pi's builtin port, and the internal interface is the USB adapter.
The firewall is super-strict by default, although this can be changed from webmin, and blocks all traffic not explicitly permitted. By default this is only POP3, IMAP, SMTP, HTTPS, FTP, google talk, and gmail.
The filter is pretty draconian by default. You might want to change its settings in the dansguardian webmin module.
One glaring deficiency is that I haven't set up an override yet for dansguardian to give a password to bypass the filter. Maybe when I have more time.
Also, while configuration via webmin does not require any great command line skill, it is pretty complicated. I don't advise complete non-techies to try using this pi set-up.
This thing is still pretty rough and unpolished, but hopefully it will be useful.