Subversion Repositories ALCASAR

Rev

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

Rev 3099 Rev 3170
Line 23... Line 23...
23
	$l_chilli		= "Passerelle d'interception et serveur DHCP";
23
	$l_chilli		= "Passerelle d'interception et serveur DHCP";
24
	$l_e2guardian		= "Filtre d'URL et de contenu WEB";
24
	$l_e2guardian		= "Filtre d'URL et de contenu WEB";
25
	$l_mysqld		= "Serveur de la base des usagers";
25
	$l_mysqld		= "Serveur de la base des usagers";
26
	$l_lighttpd		= "Serveur WEB (Alcasar Control Center)";
26
	$l_lighttpd		= "Serveur WEB (Alcasar Control Center)";
27
	$l_sshd			= "Accès sécurisée distant";
27
	$l_sshd			= "Accès sécurisée distant";
28
	$l_clamav_freshclam	= "Mise à jour de l'antivirus (toutes les 4 heures)";
-
 
29
	$l_clamav_daemon	= "Antimalware";
-
 
30
	$l_ntpd			= "Service de mise à l'heure réseau";
28
	$l_ntpd			= "Service de mise à l'heure réseau";
31
	$l_postfix		= "Service de messagerie";
29
	$l_postfix		= "Service de messagerie";
32
	$l_fail2ban		= "Détecteur d'intrusion";
30
	$l_fail2ban		= "Détecteur d'intrusion";
33
	$l_nfcapd 		= "Collecteur de flux NetFlow";
31
	$l_nfcapd 		= "Collecteur de flux NetFlow";
34
	$l_vnstat		= "Grapheur de flux réseau";
32
	$l_vnstat		= "Grapheur de flux réseau";
Line 61... Line 59...
61
	$l_chilli		= "Pasarela de interceptación y servidor DHCP";
59
	$l_chilli		= "Pasarela de interceptación y servidor DHCP";
62
	$l_e2guardian		= "Filtro de contenidos URL y WEB";
60
	$l_e2guardian		= "Filtro de contenidos URL y WEB";
63
	$l_mysqld		= "Motor de base de datos para usuarios";
61
	$l_mysqld		= "Motor de base de datos para usuarios";
64
	$l_lighttpd		= "Servidor WEB (ALCASAR Control Center)";
62
	$l_lighttpd		= "Servidor WEB (ALCASAR Control Center)";
65
	$l_sshd			= "Servidor Seguro Acceso Remoto";
63
	$l_sshd			= "Servidor Seguro Acceso Remoto";
66
	$l_clamav_freshclam		= "Proceso de actualización Antivirus (cada 4 horas)";
-
 
67
	$l_clamav_daemon	= "Antimalware";
-
 
68
	$l_ntpd			= "Servidor de hora";
64
	$l_ntpd			= "Servidor de hora";
69
	$l_postfix		= "Servicio de correo electrónico";
65
	$l_postfix		= "Servicio de correo electrónico";
70
	$l_fail2ban		= "Sistema de Detección de Intrusos";
66
	$l_fail2ban		= "Sistema de Detección de Intrusos";
71
	$l_nfcapd		= "Colector de flujo NetFlow";
67
	$l_nfcapd		= "Colector de flujo NetFlow";
72
	$l_vnstat		= "Graficador de tráfico de red";
68
	$l_vnstat		= "Graficador de tráfico de red";
Line 99... Line 95...
99
	$l_chilli		= "Interception gateway and DHCP server";
95
	$l_chilli		= "Interception gateway and DHCP server";
100
	$l_e2guardian		= "URL and WEB content filter";
96
	$l_e2guardian		= "URL and WEB content filter";
101
	$l_mysqld		= "User database server";
97
	$l_mysqld		= "User database server";
102
	$l_lighttpd		= "WEB server (ALCASAR Control Center)";
98
	$l_lighttpd		= "WEB server (ALCASAR Control Center)";
103
	$l_sshd			= "Secure remote access";
99
	$l_sshd			= "Secure remote access";
104
	$l_clamav_freshclam	= "Antivirus update process (every 4 hours)";
-
 
105
	$l_clamav_daemon= "Antimalware";
-
 
106
	$l_ntpd			= "Network time server";
100
	$l_ntpd			= "Network time server";
107
	$l_postfix		= "E-mail service";
101
	$l_postfix		= "E-mail service";
108
	$l_fail2ban		= "Intrusion Dectection System";
102
	$l_fail2ban		= "Intrusion Dectection System";
109
	$l_nfcapd		= "Netflow collector";
103
	$l_nfcapd		= "Netflow collector";
110
	$l_vnstat		= "Network grapher";
104
	$l_vnstat		= "Network grapher";
Line 210... Line 204...
210
}
204
}
211
 
205
 
212
//-------------------------------
206
//-------------------------------
213
// Actions on services
207
// Actions on services
214
//-------------------------------
208
//-------------------------------
215
$autorizeService = array("radiusd","chilli","mysqld","lighttpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","clamav-daemon","clamav-freshclam","sshd","ntpd","fail2ban","nfcapd","vnstat","postfix");
209
$autorizeService = array("radiusd","chilli","mysqld","lighttpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","sshd","ntpd","fail2ban","nfcapd","vnstat","postfix");
216
$autorizeAction = array("start","stop","restart");
210
$autorizeAction = array("start","stop","restart");
217
 
211
 
218
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
212
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
219
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
213
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
220
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
214
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
Line 244... Line 238...
244
$FilterServiceStatus = array();
238
$FilterServiceStatus = array();
245
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
239
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
246
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
240
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
247
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
241
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
248
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
242
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
249
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
-
 
250
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
-
 
251
 
243
 
252
/****************
244
/****************
253
*	MAIN	*
245
*	MAIN	*
254
*****************/
246
*****************/
255
 
247