Subversion Repositories ALCASAR

Rev

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

Rev 2324 Rev 2327
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2324 2017-07-10 10:18:59Z tom.houdayer $ 
2
#  $Id: alcasar.sh 2327 2017-07-10 22:29:15Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1233... Line 1233...
1233
esac
1233
esac
1234
echo
1234
echo
1235
EOF
1235
EOF
1236
	chmod a+x /etc/init.d/chilli
1236
	chmod a+x /etc/init.d/chilli
1237
	ln -s /etc/init.d/chilli /usr/libexec/chilli
1237
	ln -s /etc/init.d/chilli /usr/libexec/chilli
1238
# HTTPS login
-
 
1239
	echo "HTTPS_LOGIN=on" >> $CONF_FILE
-
 
1240
# conf file creation
1238
# conf file creation
1241
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1239
	[ -e /etc/chilli.conf.default ] || cp /etc/chilli.conf /etc/chilli.conf.default
1242
	#NTP Option configuration for DHCP
1240
	#NTP Option configuration for DHCP
1243
	#DHCP Options : rfc2132
1241
	#DHCP Options : rfc2132
1244
		#dhcp option value will be convert in hexa.
1242
		#dhcp option value will be convert in hexa.
Line 2064... Line 2062...
2064
# sshd liste on EXTIF & INTIF
2062
# sshd liste on EXTIF & INTIF
2065
	$SED "s?^#ListenAddress 0\.0\.0\.0.*?ListenAddress 0\.0\.0\.0?g" /etc/ssh/sshd_config
2063
	$SED "s?^#ListenAddress 0\.0\.0\.0.*?ListenAddress 0\.0\.0\.0?g" /etc/ssh/sshd_config
2066
# sshd authorized certificate for root login
2064
# sshd authorized certificate for root login
2067
	$SED "s?^PermitRootLogin.*?PermitRootLogin without-password?g" /etc/ssh/sshd_config
2065
	$SED "s?^PermitRootLogin.*?PermitRootLogin without-password?g" /etc/ssh/sshd_config
2068
# ALCASAR conf file
2066
# ALCASAR conf file
-
 
2067
	echo "HTTPS_LOGIN=on" >> $CONF_FILE
2069
	echo "SSH=on" >> $CONF_FILE
2068
	echo "SSH=on" >> $CONF_FILE
2070
	echo "SSH_ADMIN_FROM=0.0.0.0/0.0.0.0" >> $CONF_FILE
2069
	echo "SSH_ADMIN_FROM=0.0.0.0/0.0.0.0" >> $CONF_FILE
2071
	echo "LDAP=off" >> $CONF_FILE
2070
	echo "LDAP=off" >> $CONF_FILE
2072
	echo "LDAP_IP=0.0.0.0/0.0.0.0" >> $CONF_FILE
2071
	echo "LDAP_IP=0.0.0.0/0.0.0.0" >> $CONF_FILE
2073
	echo "MULTIWAN=off" >> $CONF_FILE
2072
	echo "MULTIWAN=off" >> $CONF_FILE