Subversion Repositories ALCASAR

Rev

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

Rev 347 Rev 354
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 347 2010-11-28 18:30:25Z richard $ 
2
#  $Id: alcasar.sh 354 2010-11-30 22:40:01Z 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 691... Line 691...
691
	cat << EOF > /etc/raddb/clients.conf
691
	cat << EOF > /etc/raddb/clients.conf
692
client 127.0.0.1 {
692
client 127.0.0.1 {
693
	secret = $secretradius
693
	secret = $secretradius
694
	shortname = localhost
694
	shortname = localhost
695
}
695
}
696
client $PRIVATE_NETWORK_MASK {
-
 
697
	secret = $secretradius
-
 
698
	shortname = localhost
-
 
699
}
-
 
700
EOF
696
EOF
701
# modif sql.conf
697
# modif sql.conf
702
	[ -e /etc/raddb/sql.conf.default ] || cp /etc/raddb/sql.conf /etc/raddb/sql.conf.default
698
	[ -e /etc/raddb/sql.conf.default ] || cp /etc/raddb/sql.conf /etc/raddb/sql.conf.default
703
	$SED "s?^[\t ]*login =.*?login = \"$DB_USER\"?g" /etc/raddb/sql.conf
699
	$SED "s?^[\t ]*login =.*?login = \"$DB_USER\"?g" /etc/raddb/sql.conf
704
	$SED "s?^[\t ]*password =.*?password = \"$radiuspwd\"?g" /etc/raddb/sql.conf
700
	$SED "s?^[\t ]*password =.*?password = \"$radiuspwd\"?g" /etc/raddb/sql.conf
Line 797... Line 793...
797
pidfile		/var/run/chilli.eth1.pid
793
pidfile		/var/run/chilli.eth1.pid
798
net		$PRIVATE_NETWORK_MASK
794
net		$PRIVATE_NETWORK_MASK
799
dynip		$PRIVATE_DYN_IP
795
dynip		$PRIVATE_DYN_IP
800
statip		$PRIVATE_STAT_IP
796
statip		$PRIVATE_STAT_IP
801
domain		localdomain
797
domain		localdomain
802
dns1		$DNS1
798
dns1		127.0.0.1
803
dns2		$DNS2
799
dns2		127.0.0.1
804
uamlisten	$PRIVATE_IP
800
uamlisten	$PRIVATE_IP
805
uamport		$UAMPORT
801
uamport		$UAMPORT
806
dhcpif		$INTIF
802
dhcpif		$INTIF
807
uamanyip
803
uamanyip
808
macallowlocal
804
macallowlocal