3,14 → 3,12 |
|
# alcasar.sh |
|
# ALCASAR - Portail captif d'accès à l'Internet - Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] |
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] |
# Ce programme est un logiciel libre ; This software is free and open source |
# elle que publiée par la Free Software Foundation ; soit la version 3 de la Licence. |
# Ce programme est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE GARANTIE ; |
# sans même une garantie implicite de COMMERCIABILITE ou DE CONFORMITE A UNE UTILISATION PARTICULIERE. |
# Voir la Licence Publique Générale GNU pour plus de détails. |
# Vous devriez avoir reçu un exemplaire de la Licence Publique Générale GNU avec ce programme ; |
# si ce n'est pas le cas, consultez : <http://www.gnu.org/licenses/>. |
|
# team@alcasar.net |
|
804,6 → 802,10 |
# modif dialup.conf |
[ -e /etc/raddb/sql/mysql/dialup.conf.default ] || cp /etc/raddb/sql/mysql/dialup.conf /etc/raddb/sql/mysql/dialup.conf.default |
cp -f $DIR_CONF/dialup.conf /etc/raddb/sql/mysql/dialup.conf |
# insures that mysql is up before radius start |
$SED "s?^# Should-Start.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd |
$SED "s?^# Should-Stop.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd |
|
} # End param_radius () |
|
########################################################################## |
1515,25 → 1517,6 |
/sbin/chkconfig --add $i |
done |
|
# On rajoute une tempo pour relancer radius après le redémarrage de mysqld (bug en cours d'analyse) |
# cat << EOF > /etc/rc.local |
#!/bin/sh |
# |
### BEGIN INIT INFO |
# Provides: rc.local |
# X-Mandriva-Compat-Mode |
# Default-Start: 2 3 4 5 |
# Short-Description: Local initialization script |
# Description: This script will be executed *after* all the other init scripts. |
# You can put your own initialization stuff in here if you don't |
# want to do the full Sys V style init stuff. |
### END INIT INFO |
# |
#/etc/init.d/mysqld restart |
#sleep 1 |
#/etc/init.d/radiusd restart |
#touch /var/lock/subsys/local |
#EOF |
echo "/usr/local/sbin/alcasar-load_balancing.sh start &" >> /etc/rc.local |
|
# On applique les préconisations ANSSI |
1588,7 → 1571,7 |
else |
$SED "s?timeout_established.*?timeout_established = 3600?g" /etc/sysctl.conf |
fi |
# suppression des log_martians (ALCASAR est souvent entre deux réseaux en adressage privée) |
# disable log_martians (ALCASAR is often installed between two private network addresses) |
sysctl -w net.ipv4.conf.all.log_martians=0 |
# On supprime la gestion du <CTRL>+<ALT>+<SUPPR> et des Magic SysReq Keys |
# ??? $SED "s?^ALLOW_REBOOT=.*?ALLOW_REBOOT=no?g" /etc/security/msec/level.fileserver |