Subversion Repositories ALCASAR

Rev

Rev 3294 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3294 Rev 3298
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3294 2025-07-20 22:26:38Z rexy $
2
#  $Id: alcasar.sh 3298 2025-09-07 22:33:37Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, apache, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, apache, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 791... Line 791...
791
{
791
{
792
	$DIR_DEST_BIN/alcasar-CA.sh
792
	$DIR_DEST_BIN/alcasar-CA.sh
793
	chmod 755 /etc/pki/
793
	chmod 755 /etc/pki/
794
	chown root:apache /etc/pki/CA; chmod 750 /etc/pki/CA
794
	chown root:apache /etc/pki/CA; chmod 750 /etc/pki/CA
795
	chown root:apache /etc/pki/CA/alcasar-ca.crt; chmod 640 /etc/pki/CA/alcasar-ca.crt
795
	chown root:apache /etc/pki/CA/alcasar-ca.crt; chmod 640 /etc/pki/CA/alcasar-ca.crt
796
	chown root:root /etc/pki/CA/private; chmod 700 /etc/pki/CA/private
796
	chown root:root /etc/pki/CA/private /etc/pki/tls/private
797
	chmod 600 /etc/pki/CA/private/*
797
	chmod 700 /etc/pki/CA/private /etc/pki/tls/private
798
	chown -R root:apache /etc/pki/tls/private; chmod 750 /etc/pki/tls/private
798
	chmod 600 /etc/pki/CA/private/* /etc/pki/tls/private/*
799
	chmod 640 /etc/pki/tls/private/*
-
 
800
	chmod 644 /etc/pki/tls/certs/*
799
	chmod 644 /etc/pki/tls/certs/*
801
} # End of CA()
800
} # End of CA()
802
 
801
 
803
######################################################
802
######################################################
804
##                       "ACC"                      ##
803
##                       "ACC"                      ##