SquidGuard blacklists update
|
Information on SquidGuard Blacklists avaiable on SquidGuard/Blacklists.
File: /usr/local/bin/update-bl.sh
How the script works :
- It downloads the file blacklists.tar.gz from SquidGuard website.
- It decompress the tarball into /var/lib/squidguard/db.
- It modifies the files permissions.
- It recompiles SquidGuard files.
- It reloads Squid and it will automatically reload SquidGuard.
- It fills the SquidAlyzer databases with blacklists categories.
#!/bin/bash # # Copyright @2006 Savoir-faire Linux, http://www.savoirfairelinux.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # cd /tmp wget ftp://ftp.teledanmark.no/pub/www/proxy/squidGuard/contrib/blacklists.tar.gz cd /var/lib/squidguard/db tar zxvf /tmp/blacklists.tar.gz rm /tmp/blacklists.tar.gz chown -R squid:root /var/lib/squidguard/db squidguard -C all /etc/init.d/squid reload /usr/local/bin/blacklist.sh

www.savoirfairelinux.com