| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 2560 2018-06-10 21:04:56Z rexy $
|
2 |
# $Id: alcasar.sh 2561 2018-06-20 22:03:06Z 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 805... |
Line 805... |
| 805 |
do
|
805 |
do
|
| 806 |
$DIR_DEST_BIN/alcasar-profil.sh --add admin
|
806 |
$DIR_DEST_BIN/alcasar-profil.sh --add admin
|
| 807 |
done
|
807 |
done
|
| 808 |
fi
|
808 |
fi
|
| 809 |
|
809 |
|
| 810 |
# Launch after coova (in order to wait tun0 to be up)
|
810 |
# Run after coova (in order to wait tun0 to be up)
|
| 811 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/lighttpd.service
|
811 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/lighttpd.service
|
| 812 |
# Log file for ACC access imputability
|
812 |
# Log file for ACC access imputability
|
| 813 |
[ -e /var/Save/security/acc_access.log ] || touch /var/Save/security/acc_access.log
|
813 |
[ -e /var/Save/security/acc_access.log ] || touch /var/Save/security/acc_access.log
|
| 814 |
chown root:apache /var/Save/security/acc_access.log
|
814 |
chown root:apache /var/Save/security/acc_access.log
|
| 815 |
chmod 664 /var/Save/security/acc_access.log
|
815 |
chmod 664 /var/Save/security/acc_access.log
|
| Line 820... |
Line 820... |
| 820 |
## - Creating the CA and the server certificate (lighttpd) ##
|
820 |
## - Creating the CA and the server certificate (lighttpd) ##
|
| 821 |
##################################################################
|
821 |
##################################################################
|
| 822 |
CA ()
|
822 |
CA ()
|
| 823 |
{
|
823 |
{
|
| 824 |
$DIR_DEST_BIN/alcasar-CA.sh
|
824 |
$DIR_DEST_BIN/alcasar-CA.sh
|
| 825 |
|
- |
|
| 826 |
chown -R root:apache /etc/pki
|
825 |
chown -R root:apache /etc/pki
|
| 827 |
chmod -R 750 /etc/pki
|
826 |
chmod -R 750 /etc/pki
|
| 828 |
} # End of CA ()
|
827 |
} # End of CA ()
|
| 829 |
|
828 |
|
| 830 |
#############################################################
|
829 |
#############################################################
|