From 67e2e3e2a5887c5f1917c41d75518948fb7fc8d5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 30 Jun 2015 17:52:47 +0200 Subject: [PATCH] (ids) rename configd query rules action --- .../OPNsense/IDS/Api/SettingsController.php | 4 ++-- src/opnsense/service/conf/actions.d/actions_ids.conf | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php b/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php index 04f0b65af..d37b967cb 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/SettingsController.php @@ -106,7 +106,7 @@ class SettingsController extends ApiControllerBase // request list of installed rules $backend = new Backend(); - $response = $backend->configdpRun("ids list installedrules", array($itemsPerPage, + $response = $backend->configdpRun("ids query rules", array($itemsPerPage, ($currentPage-1)*$itemsPerPage, $searchPhrase, $sortStr)); @@ -143,7 +143,7 @@ class SettingsController extends ApiControllerBase { // request list of installed rules $backend = new Backend(); - $response = $backend->configdpRun("ids list installedrules", array(1, 0,'sid/'.$sid)); + $response = $backend->configdpRun("ids query rules", array(1, 0,'sid/'.$sid)); $data = json_decode($response, true); if ($data != null && array_key_exists("rows", $data) && count($data['rows'])>0) { diff --git a/src/opnsense/service/conf/actions.d/actions_ids.conf b/src/opnsense/service/conf/actions.d/actions_ids.conf index 4a8e77ccf..29f2d66fb 100644 --- a/src/opnsense/service/conf/actions.d/actions_ids.conf +++ b/src/opnsense/service/conf/actions.d/actions_ids.conf @@ -1,9 +1,3 @@ -[list.installedrules] -command:/usr/local/opnsense/scripts/suricata/queryInstalledRules.py -parameters:/limit %s /offset %s /filter %s /sort_by %s -type:script_output -message:request installed suricata rules - [list.classtypes] command:/usr/local/opnsense/scripts/suricata/listClasstypes.py parameters: @@ -16,6 +10,12 @@ parameters: type:script message:install suricata rules +[query.rules] +command:/usr/local/opnsense/scripts/suricata/queryInstalledRules.py +parameters:/limit %s /offset %s /filter %s /sort_by %s +type:script_output +message:request installed suricata rules + [query.alerts] command:/usr/local/opnsense/scripts/suricata/queryAlertLog.py parameters:/limit %s /offset %s /filter %s