Line 21... |
Line 21... |
21 |
$l_service_status_img_ko= "Arrété";
|
21 |
$l_service_status_img_ko= "Arrété";
|
22 |
$l_service_action = "Actions";
|
22 |
$l_service_action = "Actions";
|
23 |
$l_radiusd = "Serveur Radius (AAA : Authentication, Authorization, Accounting)";
|
23 |
$l_radiusd = "Serveur Radius (AAA : Authentication, Authorization, Accounting)";
|
24 |
$l_chilli = "Portail captif, client Radius et serveur DHCP";
|
24 |
$l_chilli = "Portail captif, client Radius et serveur DHCP";
|
25 |
$l_e2guardian = "Filtre d'URL et de contenu WEB";
|
25 |
$l_e2guardian = "Filtre d'URL et de contenu WEB";
|
26 |
$l_mysqld = "Serveur de la base des usagers";
|
26 |
$l_mariadb = "Serveur de la base des usagers";
|
27 |
$l_httpd = "Serveur WEB (Alcasar Control Center)";
|
27 |
$l_httpd = "Serveur WEB (Alcasar Control Center)";
|
28 |
$l_sshd = "Accès sécurisée distant";
|
28 |
$l_sshd = "Accès sécurisée distant";
|
29 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_ntpd = "Service de mise à l'heure réseau";
|
30 |
$l_postfix = "Service de messagerie";
|
30 |
$l_postfix = "Service de messagerie";
|
31 |
$l_fail2ban = "Détecteur d'intrusion";
|
31 |
$l_fail2ban = "Détecteur d'intrusion";
|
Line 59... |
Line 59... |
59 |
$l_service_status_img_ko= "Detenido";
|
59 |
$l_service_status_img_ko= "Detenido";
|
60 |
$l_service_action = "Acciones";
|
60 |
$l_service_action = "Acciones";
|
61 |
$l_radiusd = "Servidor Radius (AAA : Authentication, Authorization, Accounting)";
|
61 |
$l_radiusd = "Servidor Radius (AAA : Authentication, Authorization, Accounting)";
|
62 |
$l_chilli = "Portal cautivo, cliente Radius y servidor DHCP";
|
62 |
$l_chilli = "Portal cautivo, cliente Radius y servidor DHCP";
|
63 |
$l_e2guardian = "Filtro de contenidos URL y WEB";
|
63 |
$l_e2guardian = "Filtro de contenidos URL y WEB";
|
64 |
$l_mysqld = "Motor de base de datos para usuarios";
|
64 |
$l_mariadb = "Motor de base de datos para usuarios";
|
65 |
$l_httpd = "Servidor WEB (ALCASAR Control Center)";
|
65 |
$l_httpd = "Servidor WEB (ALCASAR Control Center)";
|
66 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
66 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
67 |
$l_ntpd = "Servidor de hora";
|
67 |
$l_ntpd = "Servidor de hora";
|
68 |
$l_postfix = "Servicio de correo electrónico";
|
68 |
$l_postfix = "Servicio de correo electrónico";
|
69 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
69 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
Line 97... |
Line 97... |
97 |
$l_service_status_img_ko= "Stopped";
|
97 |
$l_service_status_img_ko= "Stopped";
|
98 |
$l_service_action = "Actions";
|
98 |
$l_service_action = "Actions";
|
99 |
$l_radiusd = "Radius server (AAA : Authentication, Authorization, Accounting)";
|
99 |
$l_radiusd = "Radius server (AAA : Authentication, Authorization, Accounting)";
|
100 |
$l_chilli = "Captive portal, Radius client and DHCP server";
|
100 |
$l_chilli = "Captive portal, Radius client and DHCP server";
|
101 |
$l_e2guardian = "URL and WEB content filter";
|
101 |
$l_e2guardian = "URL and WEB content filter";
|
102 |
$l_mysqld = "User database server";
|
102 |
$l_mariadb = "User database server";
|
103 |
$l_httpd = "WEB server (ALCASAR Control Center)";
|
103 |
$l_httpd = "WEB server (ALCASAR Control Center)";
|
104 |
$l_sshd = "Secure remote access";
|
104 |
$l_sshd = "Secure remote access";
|
105 |
$l_ntpd = "Network time server";
|
105 |
$l_ntpd = "Network time server";
|
106 |
$l_postfix = "E-mail service";
|
106 |
$l_postfix = "E-mail service";
|
107 |
$l_fail2ban = "Intrusion Dectection System";
|
107 |
$l_fail2ban = "Intrusion Dectection System";
|
Line 210... |
Line 210... |
210 |
}
|
210 |
}
|
211 |
|
211 |
|
212 |
//-------------------------------
|
212 |
//-------------------------------
|
213 |
// Actions on services
|
213 |
// Actions on services
|
214 |
//-------------------------------
|
214 |
//-------------------------------
|
215 |
$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","nfsen-ng","vnstat","postfix");
|
215 |
$autorizeService = array("radiusd","chilli","mariadb","httpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","sshd","ntpd","fail2ban","nfcapd","nfsen-ng","vnstat","postfix");
|
216 |
$autorizeAction = array("start","stop","restart");
|
216 |
$autorizeAction = array("start","stop","restart");
|
217 |
|
217 |
|
218 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
218 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
219 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
219 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
220 |
$execStatus = serviceExec($_GET['service'], $_GET['action']); // not used
|
220 |
$execStatus = serviceExec($_GET['service'], $_GET['action']); // not used
|
Line 225... |
Line 225... |
225 |
// Check services status
|
225 |
// Check services status
|
226 |
//-------------------------------
|
226 |
//-------------------------------
|
227 |
$MainServiceStatus = array();
|
227 |
$MainServiceStatus = array();
|
228 |
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
|
228 |
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
|
229 |
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
|
229 |
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
|
230 |
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
|
230 |
$MainServiceStatus['mariadb'] = checkServiceStatus("mariadb");
|
231 |
$MainServiceStatus['httpd'] = checkServiceStatus("httpd");
|
231 |
$MainServiceStatus['httpd'] = checkServiceStatus("httpd");
|
232 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
232 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
233 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
233 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
234 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
234 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
235 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
235 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|