Subversion Repositories ALCASAR

Rev

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

Rev 2967 Rev 2969
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2967 2021-07-08 09:47:39Z rexy $
2
#  $Id: alcasar.sh 2969 2021-07-09 22:40:56Z rexy $
3
 
3
 
4
# alcasar.sh
-
 
5
# ALCASAR is a Free and open source NAC 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)
6
# This script is distributed under the Gnu General Public License (GPL)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
7
#  team@alcasar.net
6
# contact : info@alcasar.net
8
 
7
 
9
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
-
 
10
# Ce programme est un logiciel libre ; This software is free and open source
-
 
11
# elle que publiée par la Free Software Foundation ; soit la version 3 de la Licence.
-
 
12
# Ce programme est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE GARANTIE ;
-
 
13
# sans même une garantie implicite de COMMERCIABILITE ou DE CONFORMITE A UNE UTILISATION PARTICULIERE.
-
 
14
# Voir la Licence Publique Générale GNU pour plus de détails.
-
 
15
 
-
 
16
# Script d'installation d'ALCASAR (Application Libre pour le Contrôle d'Accès Sécurisé et Authentifié au Réseau)
-
 
17
# ALCASAR est architecturé autour d'une distribution Linux Mageia minimaliste et les logiciels libres suivants :
-
 
18
# Install script for ALCASAR (a secured and authenticated Internet access control captive portal)
8
# Install script for ALCASAR (a secured and authenticated Internet access control captive portal)
19
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares :
9
# This script is distributed under the Gnu General Public License (GPLV3)
20
 
-
 
21
# Coovachilli, freeradius, mariaDB, lighttpd, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, NFsen and NFdump
-
 
22
 
10
 
23
# Options :
11
# Options :
24
#       -i or --install
12
#       -i or --install
25
#       -u or --uninstall
13
#       -u or --uninstall
26
# Functions :
14
# Functions :
Line 42... Line 30...
42
#	vnstat			: little network stat daemon
30
#	vnstat			: little network stat daemon
43
#	BL				: Adaptation of Toulouse University BlackList : split into 3 BL (for unbound, for e2guardian and for Netfilter)
31
#	BL				: Adaptation of Toulouse University BlackList : split into 3 BL (for unbound, for e2guardian and for Netfilter)
44
#	cron			: Logs export + watchdog + connexion statistics
32
#	cron			: Logs export + watchdog + connexion statistics
45
#	fail2ban		: Fail2ban IDS installation and configuration
33
#	fail2ban		: Fail2ban IDS installation and configuration
46
#	gammu_smsd		: Autoregister addon via SMS (gammu-smsd)
34
#	gammu_smsd		: Autoregister addon via SMS (gammu-smsd)
47
#	msec			: Mandriva security package configuration
35
#	msec			: Mageia security package configuration
48
#	letsencrypt		: Let's Encrypt client
36
#	letsencrypt		: Let's Encrypt client
49
#	post_install	: Security, log rotation, etc.
37
#	post_install	: Security, log rotation, etc.
50
 
38
 
51
DEBUG_ALCASAR='off'; export DEBUG_ALCASAR	# Debug mode = wait (hit key) after each function
39
DEBUG_ALCASAR='off'; export DEBUG_ALCASAR	# Debug mode = wait (hit key) after each function
52
DATE=`date '+%d %B %Y - %Hh%M'`
40
DATE=`date '+%d %B %Y - %Hh%M'`