Subversion Repositories ALCASAR

Rev

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

Rev 3070 Rev 3099
Line 33... Line 33...
33
	$l_nfcapd 		= "Collecteur de flux NetFlow";
33
	$l_nfcapd 		= "Collecteur de flux NetFlow";
34
	$l_vnstat		= "Grapheur de flux réseau";
34
	$l_vnstat		= "Grapheur de flux réseau";
35
	$l_unbound		= "Serveur DNS principal";
35
	$l_unbound		= "Serveur DNS principal";
36
	$l_unbound_blacklist	= "Serveur DNS pour la Blacklist";
36
	$l_unbound_blacklist	= "Serveur DNS pour la Blacklist";
37
	$l_unbound_whitelist	= "Serveur DNS pour la Whitelist";
37
	$l_unbound_whitelist	= "Serveur DNS pour la Whitelist";
38
	$l_dnsmasq_whitelist	= "Serveur DNS pour la Whitelist (IPSET)";
-
 
39
	$l_unbound_blackhole	= "Serveur DNS 'trou noir'";
38
	$l_unbound_blackhole	= "Serveur DNS 'trou noir'";
40
	$l_ulogd_ssh		= "journalisation des accès par SSH";
39
	$l_ulogd_ssh		= "journalisation des accès par SSH";
41
	$l_ulogd_ext_access	= "journalisation des tentatives d'accès externes";
40
	$l_ulogd_ext_access	= "journalisation des tentatives d'accès externes";
42
	$l_ulogd_traceability	= "journalisation des connexions WEB filtrés";
41
	$l_ulogd_traceability	= "journalisation des connexions WEB filtrés";
43
	$l_wifi4eu_id	= "Entrez votre identifiant réseau";
42
	$l_wifi4eu_id	= "Entrez votre identifiant réseau";
Line 72... Line 71...
72
	$l_nfcapd		= "Colector de flujo NetFlow";
71
	$l_nfcapd		= "Colector de flujo NetFlow";
73
	$l_vnstat		= "Graficador de tráfico de red";
72
	$l_vnstat		= "Graficador de tráfico de red";
74
	$l_unbound		= "Servidor DNS principal ";
73
	$l_unbound		= "Servidor DNS principal ";
75
	$l_unbound_blacklist	= "Servidor DNS de Lista Negra";
74
	$l_unbound_blacklist	= "Servidor DNS de Lista Negra";
76
	$l_unbound_whitelist	= "Servidor DNS de Lista Blanca";
75
	$l_unbound_whitelist	= "Servidor DNS de Lista Blanca";
77
	$l_dnsmasq_whitelist	= "Servidor DNS de Lista Blanca (IPSET)";
-
 
78
	$l_unbound_blackhole	= "Agujero negro DNS";
76
	$l_unbound_blackhole	= "Agujero negro DNS";
79
	$l_ulogd_ssh		= "Proceso de registro para accesos SSH";
77
	$l_ulogd_ssh		= "Proceso de registro para accesos SSH";
80
	$l_ulogd_ext_access	= "Proceso de registro de intentos de accesos externos";
78
	$l_ulogd_ext_access	= "Proceso de registro de intentos de accesos externos";
81
	$l_ulogd_traceability	= "Proceso de registro de acceso WEB";
79
	$l_ulogd_traceability	= "Proceso de registro de acceso WEB";
82
	$l_wifi4eu_id	= "Introduzca su identificador de red";
80
	$l_wifi4eu_id	= "Introduzca su identificador de red";
Line 111... Line 109...
111
	$l_nfcapd		= "Netflow collector";
109
	$l_nfcapd		= "Netflow collector";
112
	$l_vnstat		= "Network grapher";
110
	$l_vnstat		= "Network grapher";
113
	$l_unbound		= "Main DNS server";
111
	$l_unbound		= "Main DNS server";
114
	$l_unbound_blacklist	= "Blacklist DNS server";
112
	$l_unbound_blacklist	= "Blacklist DNS server";
115
	$l_unbound_whitelist	= "Whitelist DNS server";
113
	$l_unbound_whitelist	= "Whitelist DNS server";
116
	$l_dnsmasq_whitelist	= "Whitelist DNS server (IPSET)";
-
 
117
	$l_unbound_blackhole	= "Blackhole DNS server";
114
	$l_unbound_blackhole	= "Blackhole DNS server";
118
	$l_ulogd_ssh		= "SSH access logging process";
115
	$l_ulogd_ssh		= "SSH access logging process";
119
	$l_ulogd_ext_access	= "Extern access attempts logging process";
116
	$l_ulogd_ext_access	= "Extern access attempts logging process";
120
	$l_ulogd_traceability	= "Filtering WEB access logging process";
117
	$l_ulogd_traceability	= "Filtering WEB access logging process";
121
	$l_wifi4eu_id	= "Enter your network identifier";
118
	$l_wifi4eu_id	= "Enter your network identifier";
Line 213... Line 210...
213
}
210
}
214
 
211
 
215
//-------------------------------
212
//-------------------------------
216
// Actions on services
213
// Actions on services
217
//-------------------------------
214
//-------------------------------
218
$autorizeService = array("radiusd","chilli","mysqld","lighttpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","dnsmasq-whitelist","unbound-blackhole","e2guardian","clamav-daemon","clamav-freshclam","sshd","ntpd","fail2ban","nfcapd","vnstat","postfix");
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");
219
$autorizeAction = array("start","stop","restart");
216
$autorizeAction = array("start","stop","restart");
220
 
217
 
221
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
218
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
222
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
219
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
223
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
220
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
Line 245... Line 242...
245
$MainServiceStatus['postfix'] = checkServiceStatus("postfix");
242
$MainServiceStatus['postfix'] = checkServiceStatus("postfix");
246
 
243
 
247
$FilterServiceStatus = array();
244
$FilterServiceStatus = array();
248
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
245
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
249
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
246
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
250
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
-
 
251
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
247
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
252
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
248
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
253
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
249
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
254
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
250
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
255
 
251