Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 2597 2018-08-19 23:34:40Z tom.houdayer $
|
2 |
# $Id: alcasar.sh 2600 2018-08-19 23:48:55Z tom.houdayer $
|
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 1975... |
Line 1975... |
1975 |
echo "LDAP_BASE=cn=Users;dc=serverad;dc=localdomain" >> $CONF_FILE
|
1975 |
echo "LDAP_BASE=cn=Users;dc=serverad;dc=localdomain" >> $CONF_FILE
|
1976 |
echo "LDAP_UID=sAMAccountName" >> $CONF_FILE
|
1976 |
echo "LDAP_UID=sAMAccountName" >> $CONF_FILE
|
1977 |
echo "LDAP_FILTER=" >> $CONF_FILE
|
1977 |
echo "LDAP_FILTER=" >> $CONF_FILE
|
1978 |
echo "LDAP_USER=alcasar" >> $CONF_FILE
|
1978 |
echo "LDAP_USER=alcasar" >> $CONF_FILE
|
1979 |
echo "LDAP_PASSWORD=" >> $CONF_FILE
|
1979 |
echo "LDAP_PASSWORD=" >> $CONF_FILE
|
- |
|
1980 |
echo "SMS=off" >> $CONF_FILE
|
- |
|
1981 |
echo "SMS_NUM=" >> $CONF_FILE
|
1980 |
echo "MULTIWAN=off" >> $CONF_FILE
|
1982 |
echo "MULTIWAN=off" >> $CONF_FILE
|
1981 |
echo "FAILOVER=30" >> $CONF_FILE
|
1983 |
echo "FAILOVER=30" >> $CONF_FILE
|
1982 |
echo "## WANx=active,@IPx/mask,GWx,Weight,MTUx" >> $CONF_FILE
|
1984 |
echo "## WANx=active,@IPx/mask,GWx,Weight,MTUx" >> $CONF_FILE
|
1983 |
echo "#WAN1=\"1,$EXTIF:1,192.168.2.20/24,192.168.2.6,1,1500\"" >> $CONF_FILE
|
1985 |
echo "#WAN1=\"1,$EXTIF:1,192.168.2.20/24,192.168.2.6,1,1500\"" >> $CONF_FILE
|
1984 |
echo "#WAN2=\"1,$EXTIF:2,192.168.3.20/24,192.168.3.1,2,1500\"" >> $CONF_FILE
|
1986 |
echo "#WAN2=\"1,$EXTIF:2,192.168.3.20/24,192.168.3.1,2,1500\"" >> $CONF_FILE
|