Subversion Repositories ALCASAR

Rev

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

Rev 2964 Rev 2965
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2964 2021-07-04 09:23:08Z rexy $
2
#  $Id: alcasar.sh 2965 2021-07-04 22:15:08Z 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 2188... Line 2188...
2188
	echo "LDAP_PASSWORD=" >> $CONF_FILE
2188
	echo "LDAP_PASSWORD=" >> $CONF_FILE
2189
	echo "LDAP_SSL=on" >> $CONF_FILE
2189
	echo "LDAP_SSL=on" >> $CONF_FILE
2190
	echo "LDAP_CERT_REQUIRED=" >> $CONF_FILE
2190
	echo "LDAP_CERT_REQUIRED=" >> $CONF_FILE
2191
	echo "SMS=off" >> $CONF_FILE
2191
	echo "SMS=off" >> $CONF_FILE
2192
	echo "SMS_NUM=" >> $CONF_FILE
2192
	echo "SMS_NUM=" >> $CONF_FILE
2193
	echo "## MULTIWAN : WANx=@IPx,Weightx" >> $CONF_FILE
-
 
2194
	echo "MULTIWAN=off" >> $CONF_FILE
-
 
2195
	echo "#WAN1=\"192.168.0.250,1\"" >> $CONF_FILE
-
 
2196
	echo "#WAN2=\"192.168.0.251,1\"" >> $CONF_FILE
-
 
2197
	echo "BL_PUREIP=on" >> $CONF_FILE
2193
	echo "BL_PUREIP=on" >> $CONF_FILE
2198
	echo "BL_SAFESEARCH=off" >> $CONF_FILE
2194
	echo "BL_SAFESEARCH=off" >> $CONF_FILE
2199
	echo "WL_SAFESEARCH=off" >> $CONF_FILE
2195
	echo "WL_SAFESEARCH=off" >> $CONF_FILE
2200
	echo "IOT_CAPTURE=off" >> $CONF_FILE
2196
	echo "IOT_CAPTURE=off" >> $CONF_FILE
2201
	echo "WIFI4EU=off" >> $CONF_FILE
2197
	echo "WIFI4EU=off" >> $CONF_FILE
2202
	echo "WIFI4EU_CODE=123e4567-e89b-12d3-a456-426655440000" >> $CONF_FILE
2198
	echo "WIFI4EU_CODE=123e4567-e89b-12d3-a456-426655440000" >> $CONF_FILE
-
 
2199
	echo "MULTIWAN=Off" >> $CONF_FILE
2203
# Prompt customisation (colors)
2200
# Prompt customisation (colors)
2204
	[ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
2201
	[ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
2205
	cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
2202
	cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
2206
	$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
2203
	$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
2207
	$SED "s?^alias ll=.*?alias ll=\"ls -al --color\"?g" /etc/profile.d/60alias.sh
2204
	$SED "s?^alias ll=.*?alias ll=\"ls -al --color\"?g" /etc/profile.d/60alias.sh