Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2510 2018-03-11 14:38:39Z tom.houdayer $
|
2 |
# $Id: alcasar.sh 2512 2018-03-11 15:19:43Z tom.houdayer $
|
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 934... |
Line 934... |
934 |
$SED "s?^[\t ]*proxy_requests.*?proxy_requests = no?g" /etc/raddb/radiusd.conf # remove the proxy function
|
934 |
$SED "s?^[\t ]*proxy_requests.*?proxy_requests = no?g" /etc/raddb/radiusd.conf # remove the proxy function
|
935 |
$SED "s?^[\t ]*\$INCLUDE proxy.conf.*?#\$INCLUDE proxy.conf?g" /etc/raddb/radiusd.conf # remove the proxy function
|
935 |
$SED "s?^[\t ]*\$INCLUDE proxy.conf.*?#\$INCLUDE proxy.conf?g" /etc/raddb/radiusd.conf # remove the proxy function
|
936 |
|
936 |
|
937 |
# Add ALCASAR dictionary
|
937 |
# Add ALCASAR dictionary
|
938 |
cp $DIR_CONF/radius/dictionary.alcasar /usr/share/freeradius/dictionary.alcasar
|
938 |
cp $DIR_CONF/radius/dictionary.alcasar /usr/share/freeradius/dictionary.alcasar
|
- |
|
939 |
echo -e '\n$INCLUDE dictionary.alcasar' >> /usr/share/freeradius/dictionary
|
- |
|
940 |
# Add CoovaChilli dictionary
|
- |
|
941 |
cp /usr/share/doc/coova-chilli/dictionary.coovachilli /usr/share/freeradius/dictionary.coovachilli
|
- |
|
942 |
echo -e '\n$INCLUDE dictionary.coovachilli' >> /usr/share/freeradius/dictionary
|
939 |
# Set "client.conf" to describe radius clients (coova on 127.0.0.1)
|
943 |
# Set "client.conf" to describe radius clients (coova on 127.0.0.1)
|
940 |
[ -e /etc/raddb/clients.conf.default ] || cp -f /etc/raddb/clients.conf /etc/raddb/clients.conf.default
|
944 |
[ -e /etc/raddb/clients.conf.default ] || cp -f /etc/raddb/clients.conf /etc/raddb/clients.conf.default
|
941 |
cat << EOF > /etc/raddb/clients.conf
|
945 |
cat << EOF > /etc/raddb/clients.conf
|
942 |
client localhost {
|
946 |
client localhost {
|
943 |
ipaddr = 127.0.0.1
|
947 |
ipaddr = 127.0.0.1
|