Morris, A few minor mods to the download script and conf file and it all works really well.
Thanks for your assistance. Andrew > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Morris Maynard > Sent: Monday, 12 November 2001 9:10 PM > To: Andrew Oakeley; [EMAIL PROTECTED] > Subject: RE: Simple Conf file > > > This is my conf file, which works with webmin. You can add additional ok > sites to ok/domains and additional not-ok sites to notok/domains. > I modified webmin's squidguard module so that it works. The modfied module > is at: > > ftp://ftp.maynidea.com/linux/sgwm.tar.gz > > After the config file is the script I use to do periodic monthly > downloads. > Modify the paths to suit your setup, and put it in cron.weekly or > something. > > # > # CONFIG FILE FOR SQUIDGUARD > # > > dbhome /var/run/squidguard/db/blacklists > logdir /var/log/squidguard > > # DESTINATION CLASSES: > > destination bl_ok { > domainlist ok/domains > } > > destination bl_notok { > domainlist notok/domains > } > > destination bl_ads { > domainlist ads/domains > urllist ads/urls > } > > destination bl_aggressive { > domainlist aggressive/domains > urllist aggressive/urls > log stopped.log > } > > destination bl_audio-video { > domainlist audio-video/domains > urllist audio-video/urls > log stopped.log > } > > destination bl_drugs { > domainlist drugs/domains > urllist drugs/urls > log stopped.log > } > > destination bl_gambling { > domainlist gambling/domains > urllist gambling/urls > log stopped.log > } > > destination bl_hacking { > domainlist hacking/domains > urllist hacking/urls > log stopped.log > } > > destination bl_porn { > domainlist porn/domains > urllist porn/urls > expressionlist porn/expressions > log stopped.log > } > > destination bl_violence { > domainlist violence/domains > urllist violence/urls > log stopped.log > } > > destination bl_warez { > domainlist warez/domains > urllist warez/urls > log stopped.log > } > > src adults { > user mom dad root administrator > } > > src kids { > user mike jack bob alice erin > } > > time authtime { > weekly s 06:00 - 23:30 > weekly a 06:00 - 23:59 > weekly f 06:00 - 23:59 > weekly mtwh 06:00 - 22:30 > } > > acl { > > adults { > pass bl_ok !bl_notok !bl_ads !bl_aggressive !bl_drugs !bl_gambling > !bl_hacking !bl_porn !bl_violence !bl_warez all > redirect > http://192.168.2.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname =%n&client user=%i&clientgroup=%s&targetgroup=%t&url=%u } kids within authtime { pass bl_ok !bl_notok !bl_ads !bl_aggressive !bl_drugs !bl_gambling !bl_hacking !bl_porn !bl_violence !bl_warez all redirect http://192.168.2.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&client user=%i&clientgroup=%s&targetgroup=%t&url=%u } else { pass none redirect http://192.168.2.1/timeblock.html } default { pass none redirect http://192.168.2.1/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&client user=%i&clientgroup=%s&targetgroup=%t&url=%u } } #!/bin/sh echo squidguard Blacklist Download cd /usr/local/squidguard/db/ [ -f oldlists.tar.gz ] && rm -f oldlists.tar.gz tar -czf oldlists.tar.gz * echo "Running ftp....." echo "open ftp.ost.eltele.no user anonymous [EMAIL PROTECTED] cd /pub/www/proxy/squidGuard/contrib bin mget blacklists.tar.gz* close quit" | ftp -i -n gzip -dc blacklists.tar.gz~ | tar xvf - echo "Blacklists updated" echo "Changing Ownership" chown -R nobody:nobody /usr/local/squidguard/db/blacklists /etc/rc.d/init.d/squid reload
