Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: Jason W on June 15, 2011, 10:21:21 PM

Title: Web filtering with Dansguardian on a desktop.
Post by: Jason W on June 15, 2011, 10:21:21 PM
These are the extensions needed:  iptables.tcz dansguardian.tcz tinyproxy..tcz   Install them first before proceeding.

load those extensions, and then issue these commands, using the save.out file that is attached.  On my machine I need a "sleep 8" command placed before the ones below when placing them in bootlocal.sh:

# /usr/local/etc/init.d/tinyproxy start
# /usr/local/etc/init.d/dansguardian start
# iptables-restore /home/tc/save.out

That is assuming you save the save.out file to /home/tc/save.out, use different command if the file is in a different place.  Also, there is one reference to "eth0" in the save.out file, change that to whatever your network device is if different.

Now you are ready to install and run any web browser and you will have content filtering in all of them.  Without the iptables commands, you would have to set the proxy settings in each web browser, which can be done but this is hopefully more helpful.

If or when I do this setup on a router, I will post a fairly simple how to set up a dansguardian firewall/router that will filter from the server side.