Squid:SquidGuard:Updates
From K12LTSP Wiki
The squidGuard package included in K12LTSP is configured to automatically synchronize to the MESD blocklists every night. This is accomplished through the cron job /etc/cron.d/squidGuard which runs the update command below. MESD combines the blocklists from:
- ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz
- http://www.bn-paf.de/filter/de-blacklists.tar.gz.
The combined list is available here:
Making changes to the blacklists is very easy. The squidGuard RPM is prefconfigured with two locally-modifable databases, /var/squidguard/blacklists/local-ok/ and /var/squidguard/blacklists/local-block/. Each database has two files: domains and urls. If you want to block/unblock a whole web site, append the domain name to the domains file. To block/unblock just a specific webpage, add the URL to the urls file.
For example, if you want to make sure that web pages at CNN's web site are never blocked, you can append cnn.com to the end of /var/squidguard/blacklists/local-ok/domains. If you want to make sure that all of the pages at somebadsite.com are blocked, append that to /var/squidguard/blacklists/local-block/domains. If there is just a specific portion of a website you want blocked, say ~http://www.yahoo.com/adult-stuff/, you can add "yahoo.com/adult-stuff" to /var/squidguard/blacklists/local-block/urls.
Once you've made the modifications, you need to run a command or two for the changes to take. If you are using the pre-built RPM, you can run:
/usr/sbin/update''squidguard''blacklists
If you are not using the pre-built RPM, these commands should do the trick for you:
su squid -s /bin/sh -c "/usr/sbin/squidGuard -c /etc/squid/squidGuard.conf -C all"
/usr/bin/killall -HUP squid
See the squidGuard homepage, http://www.squidguard.org/config/#Lists, for more tips and tricks on working with the block lists.
