| Line 23... |
Line 23... |
| 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_clamav_freshclam = "Mise à jour de l'antivirus (toutes les 4 heures)";
|
27 |
$l_clamav_freshclam = "Mise à jour de l'antivirus (toutes les 4 heures)";
|
| - |
|
28 |
$l_clamav_daemon = "Antimalware";
|
| 28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_ntpd = "Service de mise à l'heure réseau";
|
| 29 |
$l_fail2ban = "Détecteur d'intrusion";
|
30 |
$l_fail2ban = "Détecteur d'intrusion";
|
| 30 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
31 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
| 31 |
$l_vnstat = "Grapheur de flux réseau";
|
32 |
$l_vnstat = "Grapheur de flux réseau";
|
| 32 |
$l_havp = "Proxy Antivirus";
|
- |
|
| 33 |
$l_tinyproxy = "Proxy HTTP léger";
|
- |
|
| 34 |
$l_unbound = "Serveur DNS principal";
|
33 |
$l_unbound = "Serveur DNS principal";
|
| 35 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
34 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
| 36 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
35 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
| 37 |
$l_dnsmasq_whitelist = "Serveur DNS pour la Whitelist (IPSET)";
|
36 |
$l_dnsmasq_whitelist = "Serveur DNS pour la Whitelist (IPSET)";
|
| 38 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
37 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
| Line 62... |
Line 61... |
| 62 |
$l_e2guardian = "URL and WEB content filter";
|
61 |
$l_e2guardian = "URL and WEB content filter";
|
| 63 |
$l_mysqld = "User database server";
|
62 |
$l_mysqld = "User database server";
|
| 64 |
$l_lighttpd = "WEB server (ALCASAR Control Center)";
|
63 |
$l_lighttpd = "WEB server (ALCASAR Control Center)";
|
| 65 |
$l_sshd = "Secure remote access";
|
64 |
$l_sshd = "Secure remote access";
|
| 66 |
$l_clamav_freshclam = "Antivirus update process (every 4 hours)";
|
65 |
$l_clamav_freshclam = "Antivirus update process (every 4 hours)";
|
| - |
|
66 |
$l_clamav_daemon= "Antimalware";
|
| 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_nfcapd = "Netflow collector";
|
69 |
$l_nfcapd = "Netflow collector";
|
| 70 |
$l_vnstat = "Network grapher";
|
70 |
$l_vnstat = "Network grapher";
|
| 71 |
$l_havp = "Antivirus Proxy";
|
- |
|
| 72 |
$l_tinyproxy = "Light HTTP Proxy";
|
- |
|
| 73 |
$l_unbound = "Main DNS server";
|
71 |
$l_unbound = "Main DNS server";
|
| 74 |
$l_unbound_blacklist = "Blacklist DNS server";
|
72 |
$l_unbound_blacklist = "Blacklist DNS server";
|
| 75 |
$l_unbound_whitelist = "Whitelist DNS server";
|
73 |
$l_unbound_whitelist = "Whitelist DNS server";
|
| 76 |
$l_dnsmasq_whitelist = "Whitelist DNS server (IPSET)";
|
74 |
$l_dnsmasq_whitelist = "Whitelist DNS server (IPSET)";
|
| 77 |
$l_unbound_blackhole = "Blackhole DNS server";
|
75 |
$l_unbound_blackhole = "Blackhole DNS server";
|
| Line 135... |
Line 133... |
| 135 |
}
|
133 |
}
|
| 136 |
|
134 |
|
| 137 |
//-------------------------------
|
135 |
//-------------------------------
|
| 138 |
// Actions on services
|
136 |
// Actions on services
|
| 139 |
//-------------------------------
|
137 |
//-------------------------------
|
| 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","nfcapd","vnstat");
|
138 |
$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");
|
| 141 |
$autorizeAction = array("start","stop","restart");
|
139 |
$autorizeAction = array("start","stop","restart");
|
| 142 |
|
140 |
|
| 143 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
141 |
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
|
| 144 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
142 |
if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
|
| 145 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
143 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
| Line 180... |
Line 178... |
| 180 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
178 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
| 181 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
179 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
| 182 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
180 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
| 183 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
181 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
| 184 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
182 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
| 185 |
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
|
183 |
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
|
| 186 |
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
|
- |
|
| 187 |
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
|
184 |
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
|
| 188 |
|
185 |
|
| 189 |
$OptServiceStatus = array();
|
186 |
$OptServiceStatus = array();
|
| 190 |
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
|
187 |
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
|
| 191 |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
188 |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|