Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 631 2011-06-12 10:34:00Z richard $
|
2 |
# $Id: alcasar.sh 632 2011-06-12 17:48:40Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
|
7 |
|
Line 741... |
Line 741... |
741 |
$SED "s?^general_stats_use_totacct.*?general_stats_use_totacct: yes?g" /etc/freeradius-web/admin.conf
|
741 |
$SED "s?^general_stats_use_totacct.*?general_stats_use_totacct: yes?g" /etc/freeradius-web/admin.conf
|
742 |
$SED "s?^general_charset.*?general_charset: utf8?g" /etc/freeradius-web/admin.conf
|
742 |
$SED "s?^general_charset.*?general_charset: utf8?g" /etc/freeradius-web/admin.conf
|
743 |
[ -e /etc/freeradius-web/config.php.default ] || cp /etc/freeradius-web/config.php /etc/freeradius-web/config.php.default
|
743 |
[ -e /etc/freeradius-web/config.php.default ] || cp /etc/freeradius-web/config.php /etc/freeradius-web/config.php.default
|
744 |
cp -f $DIR_CONF/freeradiusweb-config.php /etc/freeradius-web/config.php
|
744 |
cp -f $DIR_CONF/freeradiusweb-config.php /etc/freeradius-web/config.php
|
745 |
cat <<EOF > /etc/freeradius-web/naslist.conf
|
745 |
cat <<EOF > /etc/freeradius-web/naslist.conf
|
746 |
nas1_name: alcasar.%{general_domain}
|
746 |
nas1_name: alcasar-$ORGANISME
|
747 |
nas1_model: Portail captif
|
747 |
nas1_model: Portail captif
|
748 |
nas1_ip: $PRIVATE_IP
|
748 |
nas1_ip: $PRIVATE_IP
|
749 |
nas1_port_num: 0
|
749 |
nas1_port_num: 0
|
750 |
nas1_community: public
|
750 |
nas1_community: public
|
751 |
EOF
|
751 |
EOF
|
Line 1068... |
Line 1068... |
1068 |
filterwin2k
|
1068 |
filterwin2k
|
1069 |
server=$DNS1
|
1069 |
server=$DNS1
|
1070 |
server=$DNS2
|
1070 |
server=$DNS2
|
1071 |
# le servive DHCP est configuré mais n'est exploité que pour le "bypass"
|
1071 |
# le servive DHCP est configuré mais n'est exploité que pour le "bypass"
|
1072 |
dhcp-range=$PRIVATE_DYN_FIRST_IP,$PRIVATE_DYN_LAST_IP,$PRIVATE_NETMASK,12h
|
1072 |
dhcp-range=$PRIVATE_DYN_FIRST_IP,$PRIVATE_DYN_LAST_IP,$PRIVATE_NETMASK,12h
|
1073 |
#dhcp-option=3,1.2.3.4
|
- |
|
1074 |
#dhcp-option=option:router,1.2.3.4
|
1073 |
dhcp-option=option:router,$PRIVATE_IP
|
1075 |
#dhcp-option=42,0.0.0.0
|
- |
|
1076 |
#dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5
|
1074 |
#dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5
|
1077 |
|
1075 |
|
1078 |
# Exemple de configuration statique : <@MAC>,<name>,<@IP>,<MASK>,<ttl bail>
|
1076 |
# Exemple de configuration statique : <@MAC>,<name>,<@IP>,<MASK>,<ttl bail>
|
1079 |
#dhcp-host=11:22:33:44:55:66,ssic-test,192.168.182.20,255.255.255.0,45m
|
1077 |
#dhcp-host=11:22:33:44:55:66,ssic-test,192.168.182.20,255.255.255.0,45m
|
1080 |
EOF
|
1078 |
EOF
|