Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 392 → Rev 393

/scripts/sbin/alcasar-nf.sh
8,7 → 8,7
FIC_SERVICES="/usr/local/etc/alcasar-services"
FIC_EXCEPTIONS="/usr/local/etc/alcasar-filter-exceptions"
 
usage="Usage: alcasar-nf.sh -on | -off "
usage="Usage: alcasar-nf.sh {--on or -on} | {--off | -off} "
nb_args=$#
args=$1
if [ $nb_args -eq 0 ]
21,7 → 21,7
echo "$usage"
exit 0
;;
-on)
-on|-on)
# activation du filtrage réseau
$SED "s?^FILTERING.*?FILTERING=\"yes\"?g" /usr/local/bin/alcasar-iptables.sh
# tri du fichier de services
36,7 → 36,7
chmod 664 $FIC_EXCEPTIONS
/usr/local/bin/alcasar-iptables.sh
;;
-off)
--off|-off)
# désactivation du filtrage réseau
$SED "s?^FILTERING.*?FILTERING=\"no\"?g" /usr/local/bin/alcasar-iptables.sh
/usr/local/bin/alcasar-iptables.sh
/scripts/sbin/alcasar-havp.sh
1,7 → 1,14
#/bin/sh
# $Id$
 
# alcasar-havp.sh
# by Rexy
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion Havp / Clamav
 
SED="/bin/sed -i"
usage="Usage: alcasar-havp.sh -on | -off | -update"
usage="Usage: alcasar-havp.sh {--on or -on} | {--off or -off} | {--update or -update}"
nb_args=$#
args=$1
if [ $nb_args -eq 0 ]
14,19 → 21,19
echo "$usage"
exit 0
;;
-on)
--on|-on)
# activation havp
$SED "s/^proxyport =.*/proxyport = 8090/g" /etc/dansguardian/dansguardian.conf
service dansguardian reload
service havp start
;;
-off)
--off|-off)
# désactivation du filtrage
$SED "s/^proxyport =.*/proxyport = 3128/g" /etc/dansguardian/dansguardian.conf
service dansguardian reload
service havp stop
;;
-update)
--update|-update)
#mise à jour de la base de signature
freshclam
;;
/scripts/sbin/alcasar-version-list.sh
1,6 → 1,10
#!/bin/sh
# $Id $
# $Id$
 
# alcasar-version-list.sh
# by Rexy
# This script is distributed under the Gnu General Public License (GPL)
 
# permet de connaitre la version d'ALCASAR en production/stable pour permettre une éventuelle MAJ
NEW_VERSION="/var/www/html/VERSION-ONLINE"
VERSION="/var/www/html/VERSION"