Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1768 → Rev 1769

/alcasar.sh
1723,10 → 1723,6
# mise à jour automatique de la distribution tous les jours 3h30
30 3 * * * root /usr/sbin/urpmi --auto-update --auto 2>&1
EOF
#cat << EOF > /etc/cron.d/alcasar-netflow
# mise à jour automatique du délais d'expiration des log Nertflow (tous les vendredi à 0h05)
#15 0 * * 1 root $DIR_DEST_BIN/alcasar-netflow.sh
#EOF
 
# mise à jour des stats de connexion (accounting). Scripts provenant de "dialupadmin" (rpm freeradius-web) (cf. wiki.freeradius.org/Dialup_admin).
# on écrase le crontab d'origine installé par le RPM "freeradius-web" (bug remonté à qa.mandriva.com : 46739).
1871,10 → 1867,9
$SED "s?^#ListenAddress 0\.0\.0\.0.*?ListenAddress 0\.0\.0\.0?g" /etc/ssh/sshd_config
# sshd autorise les connections root par certificat
$SED "s?^PermitRootLogin.*?PermitRootLogin without-password?g" /etc/ssh/sshd_config
# Put the default value in conf file (sshd, QOS and protocols/dns/ are off)(web antivirus is on)
# Put the default values in conf file
echo "SSH=off" >> $CONF_FILE
echo "SSH_ADMIN_FROM=0.0.0.0/0.0.0.0" >> $CONF_FILE
echo "QOS=off" >> $CONF_FILE
echo "LDAP=off" >> $CONF_FILE
echo "LDAP_IP=0.0.0.0/0.0.0.0" >> $CONF_FILE
echo "YOUTUBE_ID=ABCD1234567890abcdef" >> $CONF_FILE
/conf/etc/alcasar-iptables-qos.sh
File deleted
Property changes:
Deleted: svn:eol-style
-native
\ No newline at end of property
Deleted: svn:executable
-*
\ No newline at end of property
Deleted: svn:keywords
-Date Author Id
\ No newline at end of property
/scripts/alcasar-netflow.sh
File deleted
Property changes:
Deleted: svn:executable
-*
\ No newline at end of property
/scripts/alcasar-conf.sh
217,7 → 217,6
ORGANISME=`grep ORGANISM $CONF_FILE|cut -d"=" -f2`
DOMAIN=`grep DOMAIN $CONF_FILE|cut -d"=" -f2`
DHCP_mode=`grep DHCP= $CONF_FILE|cut -d"=" -f2`
INT_DNS_active=`grep INT_DNS_ACTIVE= $CONF_FILE|cut -d"=" -f2`
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't launch on install stage
then
if [ $DHCP_mode = "off" ]
224,8 → 223,6
then
$DIR_SBIN/alcasar-dhcp.sh --off
fi
# Implementation of a local internal DNS server
$DIR_SBIN/alcasar-dns-local.sh --$INT_DNS_active
# Implementation of the authentification LDAP
# $DIR_SBIN/alcasar-ldap.sh --$INT_LDAP_active
 
/scripts/alcasar-iptables.sh
41,8 → 41,6
DNSMASQ_WL_ENABLED="/usr/local/share/dnsmasq-wl-enabled" # enabled domain names for the Whitelist
TMP_users_set_save="/tmp/users_set_save" # tmp file for backup users set
TMP_set_save="/tmp/ipset_save" # tmp file for blacklist and whitelist creation
QOS=`grep ^QOS= $CONF_FILE|cut -d"=" -f2` # QOS (on/off)
QOS=${QOS:=off}
SSH=`grep ^SSH= $CONF_FILE|cut -d"=" -f2` # sshd active (on/off)
SSH=${SSH:=off}
SSH_ADMIN_FROM=`grep ^SSH_ADMIN_FROM= $CONF_FILE|cut -d"=" -f2`
383,11 → 381,6
$IPTABLES -A FORWARD -i $TUNIF -p icmp -j REJECT
fi
 
# If QOS is activate #
if [ $QOS = on ] && [ -e /usr/local/etc/alcasar-iptables-qos.sh ]; then
. /usr/local/etc/alcasar-iptables-qos.sh
fi
 
# Autorisation des connections sortant du LAN
# Allow forward connections with log
#$IPTABLES -A FORWARD -i $TUNIF -s $PRIVATE_NETWORK_MASK -m state --state NEW -j ULOG --ulog-prefix "RULE F_all -- ACCEPT "
/scripts/sbin/alcasar-qos.sh
File deleted
Property changes:
Deleted: svn:eol-style
-LF
\ No newline at end of property
Deleted: svn:executable
-*
\ No newline at end of property
Deleted: svn:keywords
-Id Author Date
\ No newline at end of property
/scripts/sbin/alcasar-dateLog.sh
File deleted
Property changes:
Deleted: svn:eol-style
-LF
\ No newline at end of property
Deleted: svn:executable
-*
\ No newline at end of property
Deleted: svn:keywords
-Id Author Date
\ No newline at end of property
/scripts/sbin/alcasar-dns-local.sh
File deleted
Property changes:
Deleted: svn:eol-style
-native
\ No newline at end of property
Deleted: svn:executable
-*
\ No newline at end of property
/scripts/sbin/alcasar-profil.sh
51,7 → 51,7
chmod 640 $DIR_KEY/key_*
}
 
usage="Usage: alcasar-profil.sh --list | --add | --del | --pass"
usage="Usage: alcasar-profil.sh [-l|--list] [-a|--add] [-d|--del] [-p|--pass]"
nb_args=$#
args=$1
 
79,7 → 79,7
echo "$usage"
exit 0
;;
--add|-add)
--add|-a)
# ajout d'un compte
list
if [ $Lang == "fr" ]
117,7 → 117,7
concat
list
;;
--del|-del)
--del|-d)
# suppression d'un compte
list
if [ $Lang == "fr" ]
134,7 → 134,7
concat
list
;;
--pass|-pass)
--pass|-p)
# changement du mot de passe d'un compte
list
if [ $Lang == "fr" ]
159,7 → 159,7
done
concat
;;
--list|-list)
--list|-l)
# liste des comptes par profile
list
;;