Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 15: Line 15:  
Here is a script to download and configure this list
 
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
+
If you wish to make dansguardian use squidguard blocking rules & have them updated weekly then add 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.
 
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.
   Line 45: Line 45:  
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 originally installed with packakges from dungog.net in an earlier Howto, but this appears no longer accessible.
+
Previously there was a blacklist available from dungog.net which was originally installed with packages from dungog.net in an earlier Howto, but this appears no longer accessible.
===Troubleshooting Blacklists===
+
 
 +
=====Troubleshooting Blacklists=====
    
'''Why are sites not being blacklisted?'''
 
'''Why are sites not being blacklisted?'''
Line 57: Line 58:  
If you have a site you want to allow or others you do not want to allow, read up for example on the exceptions lists. They override the banned lists. If you regularly update the blacklists with the method above, then any personal changes made in the blacklist folder /etc/dansguardian/lists/blacklists/* will be lost on the next update.  Instead make changes to the various exception, banned, and gray list files in /etc/dansguardian/lists. Changes there will say put.
 
If you have a site you want to allow or others you do not want to allow, read up for example on the exceptions lists. They override the banned lists. If you regularly update the blacklists with the method above, then any personal changes made in the blacklist folder /etc/dansguardian/lists/blacklists/* will be lost on the next update.  Instead make changes to the various exception, banned, and gray list files in /etc/dansguardian/lists. Changes there will say put.
   −
'''Send yourself Email Warning Message'''
+
'''Send yourself email earning message'''
    
The above script is straight forward and clean and works well. It is suggested to try it first if you are setting up a cron job to regularly download new blacklists.
 
The above script is straight forward and clean and works well. It is suggested to try it first if you are setting up a cron job to regularly download new blacklists.
Line 63: Line 64:  
First test the email portion to make sure it works. With all the spam filters etc out there it may or may not be caught by them. Put the following into a command prompt, (add your email.) This will confirm that the main part of the script works. You should receive an email from your server.
 
First test the email portion to make sure it works. With all the spam filters etc out there it may or may not be caught by them. Put the following into a command prompt, (add your email.) This will confirm that the main part of the script works. You should receive an email from your server.
   −
  echo "See /var/log/blacklists_dl.log on" `uname -n` |/bin/mail -s'Blacklist DL Error' email@someware.com
+
  echo "See /var/log/blacklists_dl.log on" `uname -n` |/bin/mail -s'Blacklist DL Error' email@somewhere.com
    
If the above email test works it confirms that your email can be send. Now here is the script. Follow the instructions above for setting up the blacklists accept use this script instead.
 
If the above email test works it confirms that your email can be send. Now here is the script. Follow the instructions above for setting up the blacklists accept use this script instead.
Line 76: Line 77:  
  #If an error occurs during download then an email will be sent via the mail program and then will exit.
 
  #If an error occurs during download then an email will be sent via the mail program and then will exit.
 
  [ $? -gt 0 ] && echo "See /var/log/blacklists_dl.log on" \
 
  [ $? -gt 0 ] && echo "See /var/log/blacklists_dl.log on" \
  `uname -n` |/bin/mail -s'Blacklist DL Error' colin@scottmission.com && exit 1
+
  `uname -n` |/bin/mail -s'Blacklist DL Error' email@somewhere.com && exit 1
 
  tar -zxf blacklists.tar.gz
 
  tar -zxf blacklists.tar.gz
 
  chown -R root.root blacklists
 
  chown -R root.root blacklists
Line 245: Line 246:  
[[Category:Dungog]]
 
[[Category:Dungog]]
 
[[Category:Administration:Content Spam Virus Blocking]]
 
[[Category:Administration:Content Spam Virus Blocking]]
 +
[[Category:Contrib:webfiltering]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu