Subversion Repositories ALCASAR

Rev

Rev 634 | Rev 648 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 634 Rev 637
Line 1... Line 1...
1
#/bin/sh
1
#/bin/sh
2
# $Id: alcasar-bl.sh 634 2011-06-13 17:23:46Z richard $
2
# $Id: alcasar-bl.sh 637 2011-06-16 21:56:59Z richard $
3
 
3
 
4
# Script de gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via dansguardian)
4
# Script de gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via dansguardian)
5
# By 3abtux & rexy
5
# By 3abtux & rexy
6
 
6
 
7
CONF_FILE="/usr/local/etc/alcasar.conf"
7
CONF_FILE="/usr/local/etc/alcasar.conf"
Line 14... Line 14...
14
DIR_DNS_FILTER_AVAILABLE="/usr/local/etc/alcasar-dnsfilter-available"
14
DIR_DNS_FILTER_AVAILABLE="/usr/local/etc/alcasar-dnsfilter-available"
15
DIR_DNS_FILTER_ENABLED="/usr/local/etc/alcasar-dnsfilter-enabled"
15
DIR_DNS_FILTER_ENABLED="/usr/local/etc/alcasar-dnsfilter-enabled"
16
IP_RETOUR="20.0.0.1"
16
IP_RETOUR="20.0.0.1"
17
BL_SERVER="cri.univ-tlse1.fr"
17
BL_SERVER="cri.univ-tlse1.fr"
18
SED="/bin/sed -i"
18
SED="/bin/sed -i"
-
 
19
 
19
# Récupération de l'archive de la BL Toulouse
20
# Récupération de l'archive de la BL Toulouse
20
function transfert () {
21
function transfert () {
21
	mkdir -p $DIR_tmp
22
	mkdir -p $DIR_tmp
22
	cd $DIR_tmp
23
	cd $DIR_tmp
23
	wget http://$BL_SERVER/blacklists/download/blacklists.tar.gz
24
	wget http://$BL_SERVER/blacklists/download/blacklists.tar.gz