Subversion Repositories ALCASAR

Rev

Rev 421 | Rev 434 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 421 Rev 425
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 421 2011-01-06 19:50:29Z franck $ 
2
#  $Id: alcasar.sh 425 2011-01-08 01:15:53Z stephane $ 
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 800... Line 800...
800
dns1		$PRIVATE_IP
800
dns1		$PRIVATE_IP
801
dns2		$PRIVATE_IP
801
dns2		$PRIVATE_IP
802
uamlisten	$PRIVATE_IP
802
uamlisten	$PRIVATE_IP
803
uamport		$UAMPORT
803
uamport		$UAMPORT
804
dhcpif		$INTIF
804
dhcpif		$INTIF
-
 
805
ethers		/usr/local/etc/alcasar-ethers
805
uamanyip
806
uamanyip
806
macallowlocal
807
macallowlocal
807
locationname	$HOSTNAME
808
locationname	$HOSTNAME
808
radiusserver1	127.0.0.1
809
radiusserver1	127.0.0.1
809
radiusserver2	127.0.0.1
810
radiusserver2	127.0.0.1
Line 819... Line 820...
819
coaport		3799
820
coaport		3799
820
include		/usr/local/etc/alcasar-uamallowed
821
include		/usr/local/etc/alcasar-uamallowed
821
include		/usr/local/etc/alcasar-uamdomain
822
include		/usr/local/etc/alcasar-uamdomain
822
include		/usr/local/etc/alcasar-macallowed
823
include		/usr/local/etc/alcasar-macallowed
823
EOF
824
EOF
-
 
825
# Création du fichiers ethers pour la fonctionnalité de DHCP static
-
 
826
	cp -f $DIR_CONF/alcasar-ethers /usr/local/etc/alcasar-ethers
824
# création des fichiers de sites, d'urls et d'adresses MAC de confiance
827
# création des fichiers de sites, d'urls et d'adresses MAC de confiance
825
	echo -e "uamallowed=\"\"" > /usr/local/etc/alcasar-uamallowed
828
	echo -e "uamallowed=\"\"" > /usr/local/etc/alcasar-uamallowed
826
	echo -e "uamdomain=\"\"" > /usr/local/etc/alcasar-uamdomain
829
	echo -e "uamdomain=\"\"" > /usr/local/etc/alcasar-uamdomain
827
	echo -e "macallowed=\"\"" > /usr/local/etc/alcasar-macallowed
830
	echo -e "macallowed=\"\"" > /usr/local/etc/alcasar-macallowed
828
	chown root:apache /usr/local/etc/alcasar-*
831
	chown root:apache /usr/local/etc/alcasar-*