831,8 → 831,8 |
} # End of CA () |
|
################################################################## |
## Function "time_server" ## |
## - Configuring NTP server ## |
## Function "time_server" ## |
## - Configuring NTP server ## |
################################################################## |
time_server () |
{ |
1225,8 → 1225,8 |
} # End of chilli () |
|
################################################################## |
## Fonction "dansguardian" ## |
## - Paramètrage du gestionnaire de contenu Dansguardian ## |
## Function "dansguardian" ## |
## - Set the parameters of this HTML proxy (as controler) ## |
################################################################## |
dansguardian () |
{ |
1248,14 → 1248,15 |
cp -f $DIR_CONF/template-fr.html /usr/share/dansguardian/languages/french/template.html |
# Don't log |
$SED "s?^loglevel =.*?loglevel = 0?g" $DIR_DG/dansguardian.conf |
# on désactive par défaut le controle de contenu des pages html |
# # Change the default report page |
$SED "s?^accessdeniedaddress =.*?accessdeniedaddress = http://$HOSTNAME.$DOMAIN?g" $DIR_DG/dansguardian.conf |
# Disable HTML content control |
$SED "s?^weightedphrasemode =.*?weightedphrasemode = 0?g" $DIR_DG/dansguardian.conf |
cp $DIR_DG/lists/bannedphraselist $DIR_DG/lists/bannedphraselist.default |
$SED "s?^[^#]?#&?g" $DIR_DG/lists/bannedphraselist # (on commente ce qui ne l'est pas) |
# on désactive par défaut le contrôle d'URL par expressions régulières |
# Disable URL control with regex |
cp $DIR_DG/lists/bannedregexpurllist $DIR_DG/lists/bannedregexpurllist.default |
$SED "s?^[^#]?#&?g" $DIR_DG/lists/bannedregexpurllist # (on commente ce qui ne l'est pas) |
|
# Configure Dansguardian for large site |
# Minimum number of processus to handle connections |
$SED "s?^minchildren =.*?minchildren = 15?g" $DIR_DG/dansguardian.conf |
1267,8 → 1268,7 |
$SED "s?^preforkchildren =.*?preforkchildren = 10?g" $DIR_DG/dansguardian.conf |
# maximum age of a child process before it croaks it |
$SED "s?^maxagechildren =.*?maxagechildren = 1000?g" $DIR_DG/dansguardian.conf |
|
# on désactive par défaut le contrôle de téléchargement de fichiers |
# Disable download files control |
[ -e $DIR_DG/dansguardianf1.conf.default ] || cp $DIR_DG/dansguardianf1.conf $DIR_DG/dansguardianf1.conf.default |
$SED "s?^blockdownloads =.*?blockdownloads = off?g" $DIR_DG/dansguardianf1.conf |
[ -e $DIR_DG/lists/bannedextensionlist.default ] || mv $DIR_DG/lists/bannedextensionlist $DIR_DG/lists/bannedextensionlist.default |
1286,8 → 1286,8 |
} # End of dansguardian () |
|
################################################################## |
## Fonction "antivirus" ## |
## - configuration of havp, libclamav and freshclam ## |
## Function "antivirus" ## |
## - Set the parameters of havp, libclamav and freshclam ## |
################################################################## |
antivirus () |
{ |
1339,10 → 1339,10 |
/usr/bin/freshclam --no-warnings |
} # End of antivirus () |
|
########################################################################## |
## Fonction "tinyproxy" ## |
## - configuration of tinyproxy (proxy between filterde users and havp) ## |
########################################################################## |
################################################################################ |
## Function "tinyproxy" ## |
## - Set the parameters of tinyproxy (proxy between filterde users and havp) ## |
################################################################################ |
tinyproxy () |
{ |
tinyproxy_exist=`grep -c ^tinyproxy: /etc/passwd` |
1393,10 → 1393,10 |
EOF |
|
} # end of tinyproxy |
################################################################################## |
## function "ulogd" ## |
## - Ulog config for multi-log files ## |
################################################################################## |
############################################################################## |
## function "ulogd" ## |
## - Ulog config for multi-log files ## |
############################################################################## |
ulogd () |
{ |
# Three instances of ulogd (three different logfiles) |
1423,9 → 1423,9 |
|
|
########################################################## |
## Function "nfsen" ## |
## - install the nfsen grapher ## |
## - install the two plugins porttracker & surfmap ## |
## Function "nfsen" ## |
## - install the nfsen grapher ## |
## - install the two plugins porttracker & surfmap ## |
########################################################## |
nfsen() |
{ |