Subversion Repositories ALCASAR

Rev

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

Rev 2272 Rev 2274
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2272 2017-06-04 19:03:43Z tom.houdayer $ 
2
#  $Id: alcasar.sh 2274 2017-06-06 06:12:50Z 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 1216... Line 1216...
1216
#dhcpgatewayport	none
1216
#dhcpgatewayport	none
1217
sslkeyfile	/etc/pki/tls/private/alcasar.key
1217
sslkeyfile	/etc/pki/tls/private/alcasar.key
1218
sslcertfile	/etc/pki/tls/certs/alcasar.crt
1218
sslcertfile	/etc/pki/tls/certs/alcasar.crt
1219
redirssl
1219
redirssl
1220
EOF
1220
EOF
1221
# create file for DHCP static ip. Reserve the second IP address for INTIF (the first one is for tun0)
1221
# create files for "DHCP static ip" and "DHCP static ip info". Reserve the second IP address for INTIF (the first one is for tun0)
1222
	echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
1222
	echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
-
 
1223
	echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers-info
1223
# create files for trusted domains and urls
1224
# create files for trusted domains and urls
1224
	touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
1225
	touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
1225
	chown root:apache $DIR_DEST_ETC/alcasar-*
1226
	chown root:apache $DIR_DEST_ETC/alcasar-*
1226
	chmod 660 $DIR_DEST_ETC/alcasar-*
1227
	chmod 660 $DIR_DEST_ETC/alcasar-*
1227
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)
1228
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)