A parent’s guide to web filtering with a Linux box.

Is it possible to stop children from accessing inappropriate content on the web?
NO!  But you can make it difficult for them.  One leading blacklist has over 1.5 million bad web addresses in it’s database.

One solution would be to setup a web proxy.  A web proxy is something which caches your webpages.  The beauty of that is that they can block inappropriate material.

Step by step, this is what I did.

  1. Find a computer to run it on.  A Linksys NSLU2 network storage box.  I selected one of these because it’s:
    a. small
    b. uses little power
    c. wanted to see if I could remember Linux.
  2. Flashed a Debian Linux bootloader onto it.  This took a bit of effort as the instructions were not completely correct (eg. wrong in parts).  The wrong part being that static IP addresses don’t work, you should use DHCP assigned IP address.
  3. Installed Debian.
    Note: the installer fails at the disk formatting portion.  This workaround I used can be found here here.
  4. Installed and configured Squid Proxy.
  5. Configured iptables.
  6. Installed Dansguardian.
  7. Done.

It worked BUT I learnt the following:

  1. The Linksys NSLU2 does not have enough memory to run a Web Filtering solution.
  2. Much which is published on Linux sites is dated.
  3. Different Linuxes can have different commands to do the same thing (ie. update-rc.d vs. chkconfig)
  4. iptables probably not needed for what I was doing.
  5. I suspect SquidGuard might be a better choice of content filtering software.


NSLU2-Linux development group and user community

A parent’s guide to Linux Web filtering (the first thing I read)
note:  slanted towards RedHat Linux.
Parts now incorrect: httpd_accel* parameters now replaced, with http_port ip_proxy:

e2guardian – Dan’s Guardian replacement/fork

Iptables Tutorial 1.1.19

Sebastiaan Giebel’s Guide to Debian Linux on the NSLU2 installation and configuration.

Debian HOWTOs Debian on NSLU2 Installing Debian

Debian HOWTOs Debian on NSLU2 Tips for reducing memory usage

Disk formatting problem: DebianInstallerDisconnectsSSH

Part 2 of this can be found here

Comments are closed.