Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 654 → Rev 672

/scripts/sbin/alcasar-qos.sh
1,9 → 1,13
#/bin/sh
#/bin/bash
# $Id$
 
# active ou desactive la qualite de service réseau
# by 3abTux
# alcasar-CA.sh
# by Franck BOUIJOUX
# This script is distributed under the Gnu General Public License (GPL)
 
# Active / désactive la qualite de service réseau
# Enable / disable QOS
 
SED="/bin/sed -i"
FIC_QOS="/usr/local/etc/alcasar-iptables-qos.sh"
 
/scripts/sbin/alcasar-nf.sh
1,9 → 1,12
#/bin/sh
#/bin/bash
# $Id$
 
# alcasar-nf.sh
# by Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# active ou desactive le filtrage de protocoles réseau
# enable or disable the network protocols filter
# by rexy
 
SED="/bin/sed -i"
FIC_SERVICES="/usr/local/etc/alcasar-services"
/scripts/sbin/alcasar-safesearch.sh
1,9 → 1,13
#/bin/sh
#/bin/bash
# $Id: alcasar-bl.sh 412 2011-01-03 21:40:09Z richard $
 
# enable or disable safesearch filter on DG
# active ou désactive la fonction safesearch sur DG
# By rexy
# alcasar-safesearch.sh
# by Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Active / désactive la fonction safesearch sur DG
# Enable / disable safesearch filter on DG
 
DIR_DG="/etc/dansguardian/lists"
SED="/bin/sed -i"
 
/scripts/sbin/alcasar-mysql.sh
1,7 → 1,13
#! /bin/bash
# $Id$
 
## Script de sauvegarde de la base MySQL 'radius' (by rexy)
# alcasar-mysql.sh
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion (sauvegarde / import / RAZ) de la base MySQL 'radius'. Fermeture des sessions de comptabilité ouvertes
# Management of mysql 'radius' database (save / import / RAZ). Close the accounting open sessions
 
rep_tr="/var/Save/base" # répertoire d'accueil des sauvegardes
ext="sql" # extension des fichiers de sauvegarde
DB_RADIUS="db_radius"
/scripts/sbin/alcasar-version.sh
1,11 → 1,13
#!/bin/sh
#!/bin/bash
# $Id: alcasar-version-list.sh 393 2011-01-02 10:00:53Z franck $
 
# alcasar-version-list.sh
# by Rexy
# by Richard REY
# 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
# récupère les versions d'ALCASAR (stable et développement)
# download the ALCASAR versions (stable / dev)
 
VERSION="/var/www/html/VERSION"
SITE_VERSION="version.alcasar.info"
MAJ="False"
/scripts/sbin/alcasar-logout.sh
1,7 → 1,13
#/bin/sh
#/bin/bash
# $Id$
 
# deconnexion d'un usager
# alcasar-logout.sh
# by Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Déconnexion d'un ou de tous les usagers
# One user (or all users) disconnect
 
radiussecret=""
OLDIFS=$IFS
IFS=$'\n'
/scripts/sbin/alcasar-uninstall.sh
1,10 → 1,13
#!/bin/sh
#!/bin/bash
# $Id$
 
# alcasar-uninstall.sh
# by 3abtux, angel95 and rexy
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Désisntallation d'ALCASAR
# Uninstall ALCASAR
 
SED="/bin/sed -i"
clear
echo "-----------------------------------------------------------------------------"
/scripts/sbin/alcasar-profil.sh
1,7 → 1,13
#/bin/sh
#/bin/bash
# $Id$
 
# Gestion des comptes liés aux profils
# alcasar-profil.sh
# by Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion des comptes liés aux profiles
# Manage the profil logins
 
ADM_PROFIL="admin"
PROFILS="backup manager"
ALL_PROFILS=`echo $ADM_PROFIL $PROFILS`
/scripts/sbin/alcasar-dg-pureip.sh
1,10 → 1,12
#/bin/sh
#/bin/bash
 
# alcasar-dg-pureip.sh
# by Yohan & Rexy
# by Yohan DUBANCHET and Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion Dansguardian
# Activation / désactivation du filtrage d'url contenant des adresse IP (et non des noms de domaine)
# enable/disable filter of url that contains IP address (instead of domain names)
 
SED="/bin/sed -i"
function ip_disable (){
$SED "s/^\*ip$/#*ip/g" /etc/dansguardian/lists/bannedsitelist
/scripts/sbin/alcasar-bl.sh
1,9 → 1,13
#/bin/sh
#/bin/bash
# $Id$
 
# Script de gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via dansguardian)
# By 3abtux & rexy
# alcasar-bl.sh
# by Franck BOUIJOUX and Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion de la BL pour le filtrage de domaine (via dnsmasq) et d'URL (via Dansguardian)
# Manage the BL for DnsBlackHole (dnsmasq) and URL filtering (Dansguardian)
 
CONF_FILE="/usr/local/etc/alcasar.conf"
DIR_tmp="/tmp/blacklists"
FILE_tmp="/tmp/fileFilter.txt"
/scripts/sbin/alcasar-load_balancing.sh
1,16 → 1,15
#!/bin/bash
# $Id$
 
# alcasar-load_balancing.sh Connection Internet au travers de 2 ou plusieurs liens internet
#
# Version: 0.9 - 17 Nov 2010
#
# by Author: BOUIJOUX Franck (3abTux) <3abtux@free.fr>
# en cours d'expérimentation et d'écriture
# À optimiser
# alcasar-load_balancing.sh
# by BOUIJOUX Franck (3abTux) <3abtux@free.fr>
# This script is distributed under the Gnu General Public License (GPL)
 
# Définion des poids des routes : même poids --> alternance des connexions
# sinon le poids le plus faible est prioritaire
# Équilibrage de charge sur 2 ou plusieurs liens internet (en cours d'expérimentation)
# Définion des poids des routes : même poids --> alternance des connexions. Sinon le poids le plus faible est prioritaire
# Load balancing with 2 or more Internet links (experimental)
# Weitght of routes : same --> switch between link. The lowest weight gain the priority.
 
WEIGHT1=1
WEIGHT2=1
#WEIGHT3=3
/scripts/sbin/alcasar-havp.sh
1,11 → 1,13
#/bin/sh
#/bin/bash
# $Id$
 
# alcasar-havp.sh
# by Rexy
# by Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# Gestion Havp / Clamav
# Activation / désactivation antivirus de flux WEB (Havp + LibClamav)
# Enable / disable of WEB flow antivirus (HAVP + LibClamav)
CONF_FILE="/usr/local/etc/alcasar.conf"
SED="/bin/sed -i"
function av_disable (){
/scripts/sbin/alcasar-dateLog.sh
1,8 → 1,8
#!/bin/sh
#!/bin/bash
# $Id$
 
# alcasar-dateLog.sh
# by 3abtux
# by Franck BOUIJOUX
# This script is distributed under the Gnu General Public License (GPL)
 
# Permet de remettre les fichiers journaux à la date (time systeme) de leur rotation et archive (05h00)
9,7 → 9,6
# Utile lors de restauration système/copie sur le nouveau serveur pour être pris en compte
# par le script de nettoyage des logs
 
 
DIR="/var/Save/logs"
DIR2="/var/log/"
REPS="firewall squid dansguardian httpd"
/scripts/sbin/alcasar-bypass.sh
1,8 → 1,13
#!/bin/sh
#!/bin/bash
# $Id$
 
# Script portail-bypass
# Permet d'activer ou de désactiver le contournement de l'authentification et du filtrage WEB
# alcasar-bypass.sh
# by Franck BOUIJOUX and Richard REY
# This script is distributed under the Gnu General Public License (GPL)
 
# activation / désactivation du contournement de l'authentification et du filtrage WEB
# enable / disable the bypass of authenticate process and filtering
 
usage="Usage: alcasar-bypass.sh {--on or -on } | {--off or -off}"
SED="/bin/sed -i"
nb_args=$#