Line 22... |
Line 22... |
22 |
$l_chilli = "Passerelle d'interception et serveur DHCP";
|
22 |
$l_chilli = "Passerelle d'interception et serveur DHCP";
|
23 |
$l_e2guardian = "Filtre d'URL et de contenu WEB";
|
23 |
$l_e2guardian = "Filtre d'URL et de contenu WEB";
|
24 |
$l_mysqld = "Serveur de la base des usagers";
|
24 |
$l_mysqld = "Serveur de la base des usagers";
|
25 |
$l_lighttpd = "Serveur WEB (Alcasar Control Center)";
|
25 |
$l_lighttpd = "Serveur WEB (Alcasar Control Center)";
|
26 |
$l_sshd = "Accès sécurisée distant";
|
26 |
$l_sshd = "Accès sécurisée distant";
|
27 |
$l_freshclam = "Mise à jour de l'antivirus (toutes les 2 heures)";
|
27 |
$l_freshclam = "Mise à jour de l'antivirus (toutes les 4 heures)";
|
28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_fail2ban = "Détecteur d'intrusion";
|
29 |
$l_fail2ban = "Détecteur d'intrusion";
|
30 |
$l_nfsen = "Grapheur de flux NetFlow";
|
30 |
$l_nfsen = "Grapheur de flux NetFlow";
|
31 |
$l_vnstat = "Grapheur de flux réseau";
|
31 |
$l_vnstat = "Grapheur de flux réseau";
|
32 |
$l_havp = "Proxy Antivirus";
|
32 |
$l_havp = "Proxy Antivirus";
|
Line 61... |
Line 61... |
61 |
$l_chilli = "Interception gateway and DHCP server";
|
61 |
$l_chilli = "Interception gateway and DHCP server";
|
62 |
$l_e2guardian = "URL and WEB content filter";
|
62 |
$l_e2guardian = "URL and WEB content filter";
|
63 |
$l_mysqld = "User database server";
|
63 |
$l_mysqld = "User database server";
|
64 |
$l_lighttpd = "WEB server (ALCASAR Control Center)";
|
64 |
$l_lighttpd = "WEB server (ALCASAR Control Center)";
|
65 |
$l_sshd = "Secure remote access";
|
65 |
$l_sshd = "Secure remote access";
|
66 |
$l_freshclam = "Antivirus update process (every 2 hours)";
|
66 |
$l_freshclam = "Antivirus update process (every 4 hours)";
|
67 |
$l_ntpd = "Network time server";
|
67 |
$l_ntpd = "Network time server";
|
68 |
$l_fail2ban = "Intrusion Dectection System";
|
68 |
$l_fail2ban = "Intrusion Dectection System";
|
69 |
$l_nfsen = "Netflow grapher";
|
69 |
$l_nfsen = "Netflow grapher";
|
70 |
$l_vnstat = "Network grapher";
|
70 |
$l_vnstat = "Network grapher";
|
71 |
$l_havp = "Antivirus Proxy";
|
71 |
$l_havp = "Antivirus Proxy";
|
Line 135... |
Line 135... |
135 |
}
|
135 |
}
|
136 |
|
136 |
|
137 |
//-------------------------------
|
137 |
//-------------------------------
|
138 |
// Actions on services
|
138 |
// Actions on services
|
139 |
//-------------------------------
|
139 |
//-------------------------------
|
140 |
$autorizeService = array("radiusd","chilli","mysqld","lighttpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","dnsmasq-whitelist","unbound-blackhole","e2guardian","havp","tinyproxy","freshclam","sshd","ntpd","fail2ban","nfsen","vnstat");
|
140 |
$autorizeService = array("radiusd","chilli","mysqld","lighttpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","dnsmasq-whitelist","unbound-blackhole","e2guardian","havp","tinyproxy","clamav-freshclam","sshd","ntpd","fail2ban","nfsen","vnstat");
|
141 |
$autorizeAction = array("start","stop","restart");
|
141 |
$autorizeAction = array("start","stop","restart");
|
142 |
|
142 |
|
143 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
143 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
144 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
144 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
145 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
145 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
Line 181... |
Line 181... |
181 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
181 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
182 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
182 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
183 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
183 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
184 |
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
|
184 |
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
|
185 |
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
|
185 |
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
|
186 |
$FilterServiceStatus['freshclam'] = checkServiceStatus("freshclam");
|
186 |
$FilterServiceStatus['clamav-freshclam'] = checkServiceStatus("clamav-freshclam");
|
187 |
|
187 |
|
188 |
$OptServiceStatus = array();
|
188 |
$OptServiceStatus = array();
|
189 |
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
|
189 |
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
|
190 |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
190 |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
191 |
$OptServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|
191 |
$OptServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|