Subversion Repositories ALCASAR

Rev

Rev 2922 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2922 Rev 2926
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2922 2021-02-22 22:48:39Z rexy $
2
#  $Id: alcasar.sh 2926 2021-02-26 23:26:26Z 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 2169... Line 2169...
2169
        echo "#WAN2=\"1,$EXTIF:2,192.168.3.20/24,192.168.3.1,2,1500\"" >> $CONF_FILE
2169
        echo "#WAN2=\"1,$EXTIF:2,192.168.3.20/24,192.168.3.1,2,1500\"" >> $CONF_FILE
2170
        echo "BL_PUREIP=on" >> $CONF_FILE
2170
        echo "BL_PUREIP=on" >> $CONF_FILE
2171
        echo "BL_SAFESEARCH=off" >> $CONF_FILE
2171
        echo "BL_SAFESEARCH=off" >> $CONF_FILE
2172
        echo "WL_SAFESEARCH=off" >> $CONF_FILE
2172
        echo "WL_SAFESEARCH=off" >> $CONF_FILE
2173
        echo "IOT_CAPTURE=off" >> $CONF_FILE
2173
        echo "IOT_CAPTURE=off" >> $CONF_FILE
-
 
2174
        echo "WIFI4EU=off" >> $CONF_FILE
-
 
2175
        echo "WIFI4EU_CODE=123e4567-e89b-12d3-a456-426655440000" >> $CONF_FILE
2174
# Prompt customisation (colors)
2176
# Prompt customisation (colors)
2175
        [ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
2177
        [ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
2176
        cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
2178
        cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
2177
        $SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
2179
        $SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
2178
# sudoers configuration for "apache" & "sysadmin"
2180
# sudoers configuration for "apache" & "sysadmin"