Subversion Repositories ALCASAR

Rev

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

Rev 2728 Rev 2730
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2728 2019-05-20 20:55:06Z rexy $
2
#  $Id: alcasar.sh 2730 2019-05-21 22:03:25Z rexy $
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
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
#  team@alcasar.net
7
#  team@alcasar.net
Line 989... Line 989...
989
	$SED "s?^[\t ]*status_server =.*?status_server = no?g" /etc/raddb/radiusd.conf
989
	$SED "s?^[\t ]*status_server =.*?status_server = no?g" /etc/raddb/radiusd.conf
990
	$SED "s?^[\t ]*proxy_requests.*?proxy_requests = no?g" /etc/raddb/radiusd.conf # remove the proxy function
990
	$SED "s?^[\t ]*proxy_requests.*?proxy_requests = no?g" /etc/raddb/radiusd.conf # remove the proxy function
991
	$SED "s?^[\t ]*\$INCLUDE proxy.conf.*?#\$INCLUDE proxy.conf?g" /etc/raddb/radiusd.conf # remove the proxy function
991
	$SED "s?^[\t ]*\$INCLUDE proxy.conf.*?#\$INCLUDE proxy.conf?g" /etc/raddb/radiusd.conf # remove the proxy function
992
# Add ALCASAR & Coovachilli dictionaries
992
# Add ALCASAR & Coovachilli dictionaries
993
	[ -e /etc/raddb/dictionary.default ] || cp /etc/raddb/dictionary /etc/raddb/dictionary.default
993
	[ -e /etc/raddb/dictionary.default ] || cp /etc/raddb/dictionary /etc/raddb/dictionary.default
994
	cp $DIR_CONF/radius/dictionary.alcasar /usr/share/freeradius/dictionary.alcasar
994
	cp $DIR_CONF/radius/dictionary.alcasar /etc/raddb/
995
	echo -e '\n$INCLUDE dictionary.alcasar' > /etc/raddb/dictionary
995
	echo '$INCLUDE dictionary.alcasar' > /etc/raddb/dictionary
996
	cp /usr/share/doc/coova-chilli/dictionary.coovachilli /usr/share/freeradius/dictionary.coovachilli
996
	cp /usr/share/doc/coova-chilli/dictionary.coovachilli /etc/raddb/
997
	echo -e '\n$INCLUDE dictionary.coovachilli' >> /etc/raddb/dictionary
997
	echo '$INCLUDE dictionary.coovachilli' >> /etc/raddb/dictionary
998
# Set "client.conf" to describe radius clients (coova on 127.0.0.1)
998
# Set "client.conf" to describe radius clients (coova on 127.0.0.1)
999
	[ -e /etc/raddb/clients.conf.default ] || cp -f /etc/raddb/clients.conf /etc/raddb/clients.conf.default
999
	[ -e /etc/raddb/clients.conf.default ] || cp -f /etc/raddb/clients.conf /etc/raddb/clients.conf.default
1000
	cat << EOF > /etc/raddb/clients.conf
1000
	cat << EOF > /etc/raddb/clients.conf
1001
client localhost {
1001
client localhost {
1002
	ipaddr = 127.0.0.1
1002
	ipaddr = 127.0.0.1