Commit a6588196 authored by Ad Schellevis's avatar Ad Schellevis

(status services) add ids/suricata to page

parent fa8bf4e4
......@@ -179,6 +179,9 @@ if (!function_exists('get_services')) {
if (isset($config['OPNsense']['proxy']['general']['enabled']) && $config['OPNsense']['proxy']['general']['enabled'] == 1) {
$services[] = array('name'=>'squid', 'description' => gettext("Proxy server"));
}
if (isset($config['OPNsense']['IDS']['general']['enabled']) && $config['OPNsense']['IDS']['general']['enabled'] == 1) {
$services[] = array('name'=>'suricata', 'description' => gettext("Intrusion Detection"));
}
return $services;
}
......@@ -400,6 +403,9 @@ if (!function_exists('service_control_start')) {
case 'squid':
configd_run("proxy start");
break;
case 'suricata':
configd_run("ids start");
break;
default:
log_error(gettext("Could not start unknown service `%s'", $name));
break;
......@@ -476,6 +482,9 @@ if (!function_exists('service_control_stop')) {
case 'squid':
configd_run("proxy stop");
break;
case 'suricata':
configd_run("ids stop");
break;
default:
log_error(gettext("Could not stop unknown service `%s'", $name));
break;
......@@ -550,6 +559,9 @@ if (!function_exists('service_control_restart')) {
case 'squid':
configd_run("proxy restart");
break;
case 'suricata':
configd_run("ids restart");
break;
default:
log_error(gettext("Could not restart unknown service `%s'", $name));
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment