Beruflich Dokumente
Kultur Dokumente
Content filtering for the Web can be a messy proposition. A business may need to block only the most objectionable
Web sites, while schools may be required by law to follow a more thorough process. Whatever your needs, you can
build a solution with only open source pieces: squid, squidGuard, and blacklists.
Installation
apt-get install squidguard
Setup
http://squidguard.mesd.k12.or.us/blacklists.tgz
cp blacklist.tgz /var/lib/squidguard/db/
cd /var/lib/squidguard/db
tar xvzf blacklists.tgz
2 of 8 05/19/2010 04:07 PM
How to setup squidGuard under Debian http://techgurulive.com/2009/04/29/how-to-setup-sq...
/etc/squid/squidGuard.conf
Now you need to give the squidGuard database the appropriate ownership:
chown proxy:proxy -R /var/lib/squidguard/db/*
find /var/lib/squidguard/db -type f | xargs chmod 644
find /var/lib/squidguard/db -type d | xargs chmod 755
sudo -u proxy squidGuard -C all
If you look into the directories holding the files domains and urls you see that
additional files have been created: domains.db and urls.db.
Now you will need to tell squid to use squidGuard (arm squid), so add the
following line
redirect_program /usr/bin/squidGuard
/etc/squid/squid.conf
# TAG: redirect_program
/var/www/block.html
3 of 8 05/19/2010 04:07 PM
How to setup squidGuard under Debian http://techgurulive.com/2009/04/29/how-to-setup-sq...
squid -k reconfigure
Well the easiest way is to visit some nasty site and check to see if it is blocked,
also check some good sites to see if they are let through. The squidGuard
website also has a nice way of checking if it works at : verifying squidGuard
echo "http://www.rotten.com / - - GET" | squidGuard -d
sudo -u proxy squidGuard -C all
squid -k reconfigure
Links
squidGuard
squidGuard Docs
Liked this article? To continue getting our latest free Howtos and Tutorials,
you can also grab the RSS feed or Subscribe to Techgurulive by Email
Not Getting
Search
Related posts
How to setup TCP Wrappers (TCPD) Under FreeBSD
Eeebuntu Switching To Debian, No Longer Just for EeePC
4 of 8 05/19/2010 04:07 PM