Line 27... |
Line 27... |
27 |
$l_sshd = "Accès sécurisée distant";
|
27 |
$l_sshd = "Accès sécurisée distant";
|
28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_postfix = "Service de messagerie";
|
29 |
$l_postfix = "Service de messagerie";
|
30 |
$l_fail2ban = "Détecteur d'intrusion";
|
30 |
$l_fail2ban = "Détecteur d'intrusion";
|
31 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
31 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
32 |
$l_vnstat = "Grapheur de flux réseau";
|
32 |
$l_nfsen = "Grapheur de flux réseau";
|
- |
|
33 |
$l_vnstat = "Statistiques de flux réseau";
|
33 |
$l_unbound = "Serveur DNS principal";
|
34 |
$l_unbound = "Serveur DNS principal";
|
34 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
35 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
35 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
36 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
36 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
37 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
37 |
$l_ulogd_ssh = "journalisation des accès par SSH";
|
38 |
$l_ulogd_ssh = "journalisation des accès par SSH";
|
Line 63... |
Line 64... |
63 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
64 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
64 |
$l_ntpd = "Servidor de hora";
|
65 |
$l_ntpd = "Servidor de hora";
|
65 |
$l_postfix = "Servicio de correo electrónico";
|
66 |
$l_postfix = "Servicio de correo electrónico";
|
66 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
67 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
67 |
$l_nfcapd = "Colector de flujo NetFlow";
|
68 |
$l_nfcapd = "Colector de flujo NetFlow";
|
68 |
$l_vnstat = "Graficador de tráfico de red";
|
69 |
$l_nfsen = "Graficador de tráfico de red";
|
- |
|
70 |
$l_vnstat = "Estadísticas de flujo de red";
|
69 |
$l_unbound = "Servidor DNS principal ";
|
71 |
$l_unbound = "Servidor DNS principal ";
|
70 |
$l_unbound_blacklist = "Servidor DNS de Lista Negra";
|
72 |
$l_unbound_blacklist = "Servidor DNS de Lista Negra";
|
71 |
$l_unbound_whitelist = "Servidor DNS de Lista Blanca";
|
73 |
$l_unbound_whitelist = "Servidor DNS de Lista Blanca";
|
72 |
$l_unbound_blackhole = "Agujero negro DNS";
|
74 |
$l_unbound_blackhole = "Agujero negro DNS";
|
73 |
$l_ulogd_ssh = "Proceso de registro para accesos SSH";
|
75 |
$l_ulogd_ssh = "Proceso de registro para accesos SSH";
|
Line 99... |
Line 101... |
99 |
$l_sshd = "Secure remote access";
|
101 |
$l_sshd = "Secure remote access";
|
100 |
$l_ntpd = "Network time server";
|
102 |
$l_ntpd = "Network time server";
|
101 |
$l_postfix = "E-mail service";
|
103 |
$l_postfix = "E-mail service";
|
102 |
$l_fail2ban = "Intrusion Dectection System";
|
104 |
$l_fail2ban = "Intrusion Dectection System";
|
103 |
$l_nfcapd = "Netflow collector";
|
105 |
$l_nfcapd = "Netflow collector";
|
104 |
$l_vnstat = "Network grapher";
|
106 |
$l_nfsen = "Network grapher";
|
- |
|
107 |
$l_vnstat = "Network flow statistics";
|
105 |
$l_unbound = "Main DNS server";
|
108 |
$l_unbound = "Main DNS server";
|
106 |
$l_unbound_blacklist = "Blacklist DNS server";
|
109 |
$l_unbound_blacklist = "Blacklist DNS server";
|
107 |
$l_unbound_whitelist = "Whitelist DNS server";
|
110 |
$l_unbound_whitelist = "Whitelist DNS server";
|
108 |
$l_unbound_blackhole = "Blackhole DNS server";
|
111 |
$l_unbound_blackhole = "Blackhole DNS server";
|
109 |
$l_ulogd_ssh = "SSH access logging process";
|
112 |
$l_ulogd_ssh = "SSH access logging process";
|
Line 230... |
Line 233... |
230 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
233 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
231 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
234 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
232 |
$MainServiceStatus['sshd'] = checkServiceStatus("sshd");
|
235 |
$MainServiceStatus['sshd'] = checkServiceStatus("sshd");
|
233 |
$MainServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
236 |
$MainServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
234 |
$MainServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|
237 |
$MainServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|
235 |
$MainServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
- |
|
236 |
$MainServiceStatus['postfix'] = checkServiceStatus("postfix");
|
238 |
$MainServiceStatus['postfix'] = checkServiceStatus("postfix");
|
237 |
|
239 |
|
238 |
$FilterServiceStatus = array();
|
240 |
$FilterServiceStatus = array();
|
239 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
241 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
240 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
242 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
241 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
243 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
242 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
244 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
243 |
|
245 |
|
- |
|
246 |
$OptServiceStatus = array();
|
- |
|
247 |
$OptServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
- |
|
248 |
|
244 |
/****************
|
249 |
/****************
|
245 |
* MAIN *
|
250 |
* MAIN *
|
246 |
*****************/
|
251 |
*****************/
|
247 |
|
252 |
|
248 |
?><!DOCTYPE HTML>
|
253 |
?><!DOCTYPE HTML>
|
Line 285... |
Line 290... |
285 |
<div class="panel">
|
290 |
<div class="panel">
|
286 |
<div class="panel-header"><?= $l_filter_services ?></div>
|
291 |
<div class="panel-header"><?= $l_filter_services ?></div>
|
287 |
<div class="panel-row">
|
292 |
<div class="panel-row">
|
288 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
293 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
289 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
294 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
290 |
<!-- <TR align="center"> -->
|
- |
|
291 |
<?php foreach ( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
295 |
<?php foreach ( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
292 |
<tr>
|
296 |
<tr>
|
293 |
<?php if ($statusOK) { ?>
|
297 |
<?php if ($statusOK) { ?>
|
294 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
298 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
295 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
299 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
Line 309... |
Line 313... |
309 |
</div>
|
313 |
</div>
|
310 |
</div>
|
314 |
</div>
|
311 |
<div class="panel">
|
315 |
<div class="panel">
|
312 |
<div class="panel-header"><?= $l_opt_services ?></div>
|
316 |
<div class="panel-header"><?= $l_opt_services ?></div>
|
313 |
<div class="panel-row">
|
317 |
<div class="panel-row">
|
314 |
<form action="<?php echo $_SERVER['PHP_SELF']?>" method=POST>
|
- |
|
315 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
318 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
316 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"> </td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
319 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"> </td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
- |
|
320 |
<?php foreach ( $OptServiceStatus as $serviceName => $statusOK ) { ?>
|
- |
|
321 |
<tr>
|
- |
|
322 |
<?php if ($statusOK) { ?>
|
- |
|
323 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
- |
|
324 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
- |
|
325 |
<td width="80" align="center">---</td>
|
- |
|
326 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop";?></a></td>
|
- |
|
327 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
- |
|
328 |
<?php } else { ?>
|
- |
|
329 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
- |
|
330 |
<td align="center"><?php $comment="l_$serviceName"; echo "$serviceName</td><td>${$comment}" ;?> </td>
|
- |
|
331 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
- |
|
332 |
<td width="80" align="center">---</td>
|
- |
|
333 |
<td width="80" align="center">---</td>
|
- |
|
334 |
<?php } ?>
|
- |
|
335 |
</tr>
|
- |
|
336 |
<?php } ?>
|
- |
|
337 |
</table>
|
- |
|
338 |
</div>
|
- |
|
339 |
</div>
|
- |
|
340 |
<div class="panel">
|
- |
|
341 |
<div class="panel-header"><?= $l_opt_services ?></div>
|
- |
|
342 |
<div class="panel-row">
|
- |
|
343 |
<form action="<?php echo $_SERVER['PHP_SELF']?>" method=POST>
|
- |
|
344 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
317 |
<tr>
|
345 |
<tr>
|
318 |
<?php if ($wifi4eu == "on") { ?>
|
346 |
<?php if ($wifi4eu == "on") { ?>
|
319 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
347 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
320 |
<td align="center"><b>WIFI4EU</b></td><td><?php echo "network ID : $wifi4eu_code"; ?></td>
|
348 |
<td align="center"><b>WIFI4EU</b></td><td><?php echo "network ID : $wifi4eu_code"; ?></td>
|
321 |
<td width="80" align="center">---</td>
|
349 |
<td width="80" align="center">---</td>
|