Line 21... |
Line 21... |
21 |
$l_service_action = "Actions";
|
21 |
$l_service_action = "Actions";
|
22 |
$l_radiusd = "Serveur d'authentification et d'autorisation";
|
22 |
$l_radiusd = "Serveur d'authentification et d'autorisation";
|
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_httpd = "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_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";
|
Line 57... |
Line 57... |
57 |
$l_service_action = "Acciones";
|
57 |
$l_service_action = "Acciones";
|
58 |
$l_radiusd = "Servidor de autenticación y autorización.";
|
58 |
$l_radiusd = "Servidor de autenticación y autorización.";
|
59 |
$l_chilli = "Pasarela de interceptación y servidor DHCP";
|
59 |
$l_chilli = "Pasarela de interceptación y servidor DHCP";
|
60 |
$l_e2guardian = "Filtro de contenidos URL y WEB";
|
60 |
$l_e2guardian = "Filtro de contenidos URL y WEB";
|
61 |
$l_mysqld = "Motor de base de datos para usuarios";
|
61 |
$l_mysqld = "Motor de base de datos para usuarios";
|
62 |
$l_lighttpd = "Servidor WEB (ALCASAR Control Center)";
|
62 |
$l_httpd = "Servidor WEB (ALCASAR Control Center)";
|
63 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
63 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
64 |
$l_ntpd = "Servidor de hora";
|
64 |
$l_ntpd = "Servidor de hora";
|
65 |
$l_postfix = "Servicio de correo electrónico";
|
65 |
$l_postfix = "Servicio de correo electrónico";
|
66 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
66 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
67 |
$l_nfcapd = "Colector de flujo NetFlow";
|
67 |
$l_nfcapd = "Colector de flujo NetFlow";
|
Line 93... |
Line 93... |
93 |
$l_service_action = "Actions";
|
93 |
$l_service_action = "Actions";
|
94 |
$l_radiusd = "Authentication and authorisation server";
|
94 |
$l_radiusd = "Authentication and authorisation server";
|
95 |
$l_chilli = "Interception gateway and DHCP server";
|
95 |
$l_chilli = "Interception gateway and DHCP server";
|
96 |
$l_e2guardian = "URL and WEB content filter";
|
96 |
$l_e2guardian = "URL and WEB content filter";
|
97 |
$l_mysqld = "User database server";
|
97 |
$l_mysqld = "User database server";
|
98 |
$l_lighttpd = "WEB server (ALCASAR Control Center)";
|
98 |
$l_httpd = "WEB server (ALCASAR Control Center)";
|
99 |
$l_sshd = "Secure remote access";
|
99 |
$l_sshd = "Secure remote access";
|
100 |
$l_ntpd = "Network time server";
|
100 |
$l_ntpd = "Network time server";
|
101 |
$l_postfix = "E-mail service";
|
101 |
$l_postfix = "E-mail service";
|
102 |
$l_fail2ban = "Intrusion Dectection System";
|
102 |
$l_fail2ban = "Intrusion Dectection System";
|
103 |
$l_nfcapd = "Netflow collector";
|
103 |
$l_nfcapd = "Netflow collector";
|
Line 204... |
Line 204... |
204 |
}
|
204 |
}
|
205 |
|
205 |
|
206 |
//-------------------------------
|
206 |
//-------------------------------
|
207 |
// Actions on services
|
207 |
// Actions on services
|
208 |
//-------------------------------
|
208 |
//-------------------------------
|
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");
|
209 |
$autorizeService = array("radiusd","chilli","mysqld","httpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","sshd","ntpd","fail2ban","nfcapd","vnstat","postfix");
|
210 |
$autorizeAction = array("start","stop","restart");
|
210 |
$autorizeAction = array("start","stop","restart");
|
211 |
|
211 |
|
212 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
212 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
213 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
213 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
214 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
214 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
Line 221... |
Line 221... |
221 |
//-------------------------------
|
221 |
//-------------------------------
|
222 |
$MainServiceStatus = array();
|
222 |
$MainServiceStatus = array();
|
223 |
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
|
223 |
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
|
224 |
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
|
224 |
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
|
225 |
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
|
225 |
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
|
226 |
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
|
226 |
$MainServiceStatus['httpd'] = checkServiceStatus("httpd");
|
227 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
227 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
228 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
228 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
229 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
229 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
230 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
230 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
231 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
231 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
Line 266... |
Line 266... |
266 |
<tr>
|
266 |
<tr>
|
267 |
<?php if ($statusOK) { ?>
|
267 |
<?php if ($statusOK) { ?>
|
268 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
268 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
269 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
269 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
270 |
<td width="80" align="center">---</td>
|
270 |
<td width="80" align="center">---</td>
|
271 |
<td width="80" align="center"><?php if (($serviceName != "chilli") && ($serviceName != "lighttpd")) { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop</a>"; } else echo "---";?></td>
|
271 |
<td width="80" align="center"><?php if (($serviceName != "chilli") && ($serviceName != "httpd")) { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop</a>"; } else echo "---";?></td>
|
272 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
272 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
273 |
<?php } else { ?>
|
273 |
<?php } else { ?>
|
274 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
274 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
275 |
<td align="center"><?php $comment="l_$serviceName"; echo "$serviceName</td><td>${$comment}" ;?> </td>
|
275 |
<td align="center"><?php $comment="l_$serviceName"; echo "$serviceName</td><td>${$comment}" ;?> </td>
|
276 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
276 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|