Subversion Repositories ALCASAR

Rev

Rev 2708 | Rev 2711 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2708 Rev 2709
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2708 2019-03-05 23:17:43Z tom.houdayer $
2
#  $Id: alcasar.sh 2709 2019-03-05 23:20:31Z 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 621... Line 621...
621
        echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
621
        echo "PRIVATE_IP=$PRIVATE_IP_MASK" >> $CONF_FILE
622
        echo "DHCP=on" >> $CONF_FILE
622
        echo "DHCP=on" >> $CONF_FILE
623
        echo "EXT_DHCP_IP=" >> $CONF_FILE
623
        echo "EXT_DHCP_IP=" >> $CONF_FILE
624
        echo "RELAY_DHCP_IP=" >> $CONF_FILE
624
        echo "RELAY_DHCP_IP=" >> $CONF_FILE
625
        echo "RELAY_DHCP_PORT=" >> $CONF_FILE
625
        echo "RELAY_DHCP_PORT=" >> $CONF_FILE
626
        echo "INT_DNS_DOMAIN=none" >> $CONF_FILE
626
        echo "INT_DNS_DOMAIN=" >> $CONF_FILE
627
        echo "INT_DNS_IP=none" >> $CONF_FILE
627
        echo "INT_DNS_IP=" >> $CONF_FILE
628
        echo "INT_DNS_ACTIVE=off" >> $CONF_FILE
628
        echo "INT_DNS_ACTIVE=off" >> $CONF_FILE
629
# network default
629
# network default
630
        [ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
630
        [ -e /etc/sysconfig/network.default ] || cp /etc/sysconfig/network /etc/sysconfig/network.default
631
        cat <<EOF > /etc/sysconfig/network
631
        cat <<EOF > /etc/sysconfig/network
632
NETWORKING=yes
632
NETWORKING=yes