Subversion Repositories ALCASAR

Rev

Rev 2764 | Rev 2776 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2764 Rev 2775
Line 25... Line 25...
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 4 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_nfcapd 		= "Collecteur 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";
33
	$l_tinyproxy		= "Proxy HTTP léger";
33
	$l_tinyproxy		= "Proxy HTTP léger";
34
	$l_unbound		= "Serveur DNS principal";
34
	$l_unbound		= "Serveur DNS principal";
35
	$l_unbound_blacklist	= "Serveur DNS pour la Blacklist";
35
	$l_unbound_blacklist	= "Serveur DNS pour la Blacklist";
Line 64... Line 64...
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 4 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_nfcapd		= "Netflow collector";
70
	$l_vnstat		= "Network grapher";
70
	$l_vnstat		= "Network grapher";
71
	$l_havp			= "Antivirus Proxy";
71
	$l_havp			= "Antivirus Proxy";
72
	$l_tinyproxy		= "Light HTTP Proxy";
72
	$l_tinyproxy		= "Light HTTP Proxy";
73
	$l_unbound		= "Main DNS server";
73
	$l_unbound		= "Main DNS server";
74
	$l_unbound_blacklist	= "Blacklist DNS server";
74
	$l_unbound_blacklist	= "Blacklist DNS server";
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","clamav-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","nfcapd","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 169... Line 169...
169
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
169
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
170
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
170
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
171
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
171
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
172
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
172
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
173
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
173
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
-
 
174
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
174
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
175
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
175
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
176
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
176
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
177
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
177
 
178
 
178
$FilterServiceStatus = array();
179
$FilterServiceStatus = array();
Line 187... Line 188...
187
 
188
 
188
$OptServiceStatus = array();
189
$OptServiceStatus = array();
189
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
190
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
190
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
191
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
191
$OptServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
192
$OptServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
192
$OptServiceStatus['nfsen'] = checkServiceStatus("nfsen");
-
 
193
$OptServiceStatus['vnstat'] = checkServiceStatus("vnstat");
193
$OptServiceStatus['vnstat'] = checkServiceStatus("vnstat");
194
/****************
194
/****************
195
*	MAIN	*
195
*	MAIN	*
196
*****************/
196
*****************/
197
 
197