Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2705 2019-03-05 22:30:50Z tom.houdayer $
|
2 |
# $Id: alcasar.sh 2708 2019-03-05 23:17: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 618... |
Line 618... |
618 |
echo "DNS1=$DNS1" >> $CONF_FILE
|
618 |
echo "DNS1=$DNS1" >> $CONF_FILE
|
619 |
echo "DNS2=$DNS2" >> $CONF_FILE
|
619 |
echo "DNS2=$DNS2" >> $CONF_FILE
|
620 |
echo "PUBLIC_MTU=$MTU" >> $CONF_FILE
|
620 |
echo "PUBLIC_MTU=$MTU" >> $CONF_FILE
|
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=none" >> $CONF_FILE
|
623 |
echo "EXT_DHCP_IP=" >> $CONF_FILE
|
624 |
echo "RELAY_DHCP_IP=none" >> $CONF_FILE
|
624 |
echo "RELAY_DHCP_IP=" >> $CONF_FILE
|
625 |
echo "RELAY_DHCP_PORT=none" >> $CONF_FILE
|
625 |
echo "RELAY_DHCP_PORT=" >> $CONF_FILE
|
626 |
echo "INT_DNS_DOMAIN=none" >> $CONF_FILE
|
626 |
echo "INT_DNS_DOMAIN=none" >> $CONF_FILE
|
627 |
echo "INT_DNS_IP=none" >> $CONF_FILE
|
627 |
echo "INT_DNS_IP=none" >> $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
|