Changes

From SME Server
Jump to navigationJump to search
added script to Blacklists, other corrections
Line 5: Line 5:  
====Blacklists====
 
====Blacklists====
   −
The general procedure is to locate a suitable blacklist on the Internet, download the tgz file, uncompress it and move it to the  
+
The general procedure is to locate a suitable blacklist on the Internet, download the tgz file, uncompress it and move it to the /etc/dansguardian/blacklists directory. The SME server admin user would need to configure a cron job to regularly run the download & update script (see below).
 
  −
/etc/dansguardian/blacklists directory.
      
There is a commercial blacklist available from URLBlacklist.com (commercial at cost list but free for first download)
 
There is a commercial blacklist available from URLBlacklist.com (commercial at cost list but free for first download)
    
There is a free blacklist available from http://www.shallalist.de/ (free for private or personal & non commercial users, registration is required for commercial use, although still free).  
 
There is a free blacklist available from http://www.shallalist.de/ (free for private or personal & non commercial users, registration is required for commercial use, although still free).  
See full registration details here http://www.shallalist.de/licence.html
+
See full registration details here http://www.shallalist.de/licence.html  Scripts for automating the shallalist download process are here http://www.shallalist.de/helpers.html
   −
Scripts for automating the shallalist download process are here http://www.shallalist.de/helpers.html
+
A current (at March 2012) blacklists.tar.gz is available from http://cri.univ-tlse1.fr/blacklists/download/blacklists.tar.gz
 +
Here is a script to download and configure this list
 +
 
 +
If you wish to make dansguardian use squidguard blocking rules & have them updated weekly then ad the following to the /etc/cron.weekly/dansguardian file
 +
Please check the location of the blacklists is still current, if necessary search Google on "squidGuard blacklists" or "blacklists.tar.gz" to find a current location.
 +
 
 +
Create cron job
 +
cd /etc/cron.weekly
 +
pico -w dansguardian
 +
Add the following lines
 +
# blacklists update script for dansguardian
 +
cd /etc/dansguardian
 +
rm -f blacklists.tar.gz
 +
wget -qnv http://cri.univ-tlse1.fr/blacklists/download/blacklists.tar.gz -O blacklists.tar.gz
 +
tar -zxf blacklists.tar.gz
 +
chown -R root.root blacklists
 +
chmod -R 640 blacklists
 +
find blacklists -name new\* -exec rm {} \;
 +
rm -f blacklists/README
 +
chmod ug+x blacklists
 +
chmod ug+x blacklists/*
 +
Then to save & exit
 +
Ctrl o
 +
Ctrl x
 +
Change permissions on cron job & restart crond
 +
chmod +x dansguardian
 +
service crond restart
 +
 
 +
The scripts runs OK (manually instigated), but integration with Dansguardian not fully tested or documented (at 28 March 2012).
   −
The SME server admin user would need to configure a cron job to regularly run the download & update script
      
Also refer to this Forum post http://forums.contribs.org/index.php?topic=48449.new;topicseen which refers to list sites and an older blacklists update script from an earlier DG Howto.
 
Also refer to this Forum post http://forums.contribs.org/index.php?topic=48449.new;topicseen which refers to list sites and an older blacklists update script from an earlier DG Howto.
   
Previously blacklists were available from mesd.k12.or.us but this site appears non functional at 28 March 2012
 
Previously blacklists were available from mesd.k12.or.us but this site appears non functional at 28 March 2012
Previously there was a blacklist available from dungog.net which was installed at the beginning of this HOWTO, but this appears no longer accessible or functional (not tested at 28 March 2012).
+
Previously there was a blacklist available from dungog.net which was originally installed with packakges from dungog.net in an earlier Howto, but this appears no longer accessible.
    
====dansguardian.conf & dansguardianf1.conf====
 
====dansguardian.conf & dansguardianf1.conf====
624

edits

Navigation menu