Subversion Repositories ALCASAR

Rev

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

Rev 1081 Rev 1101
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1081 2013-05-03 00:31:22Z franck $ 
2
#  $Id: alcasar.sh 1101 2013-05-21 18:48:24Z franck $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
Line 987... Line 987...
987
uamsecret	$secretuam
987
uamsecret	$secretuam
988
uamallowed	alcasar
988
uamallowed	alcasar
989
coaport		3799
989
coaport		3799
990
include		$DIR_DEST_ETC/alcasar-uamallowed
990
include		$DIR_DEST_ETC/alcasar-uamallowed
991
include		$DIR_DEST_ETC/alcasar-uamdomain
991
include		$DIR_DEST_ETC/alcasar-uamdomain
992
#dhcpgateway
992
#dhcpgateway\t
993
#dhcprelayagent
993
#dhcprelayagent\t
994
#dhcpgatewayport
994
#dhcpgatewayport\t
995
EOF
995
EOF
996
# create file for DHCP static ip. Reserve the second IP address for eth1 (the first one is for tun0)
996
# create file for DHCP static ip. Reserve the second IP address for eth1 (the first one is for tun0)
997
	echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
997
	echo "$PRIVATE_MAC $PRIVATE_SECOND_IP" > $DIR_DEST_ETC/alcasar-ethers
998
# create files for trusted domains and urls
998
# create files for trusted domains and urls
999
	touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
999
	touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain