From 1ef295d754f838935412ddefc8d5fa00c51bcc1c Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Tue, 14 May 2013 00:38:49 -0300 Subject: snort - (re)include two level menu and change start stop icons to toggle status as well show current snort status --- config/snort/snort_sync.xml | 166 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100755 config/snort/snort_sync.xml (limited to 'config/snort/snort_sync.xml') diff --git a/config/snort/snort_sync.xml b/config/snort/snort_sync.xml new file mode 100755 index 00000000..30d935ee --- /dev/null +++ b/config/snort/snort_sync.xml @@ -0,0 +1,166 @@ + + + + + +. +All rights reserved. +*/ +/* ========================================================================== */ +/* +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code MUST retain the above copyright notice, +this list of conditions and the following disclaimer. + +2. Redistributions in binary form MUST reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. +*/ +/* ========================================================================== */ +]]> + + Describe your package requirements here + Currently there are no FAQ items provided. + snortsync + 1.3_1 pkg v.1.9 + Proxy server snort: XMLRPC Sync + + + + Snort Interfaces + /snort/snort_interfaces.php + + + Global Settings + /snort/snort_interfaces_global.php + + + Updates + /snort/snort_download_updates.php + + + Alerts + /snort/snort_alerts.php + + + Blocked + /snort/snort_blocked.php + + + Whitelists + /snort/snort_interfaces_whitelist.php + + + Suppress + /snort/snort_interfaces_suppress.php + + + Sync + /pkg_edit.php?xml=snort_sync.xml&id=0 + + + + + + Snort XMLRPC Sync + listtopic + + + Enable Sync + varsyncenablexmlrpc + + Important: While using "Sync to hosts defined below", only sync from host A to B, A to C but do not enable XMLRPC sync to A. This will result in a loop!]]> + select + + auto + + + + + + + + XMLRPC timeout + varsynctimeout + + input + 150 + 5 + + + + Destination Server + none + rowhelper + + + Enable + varsyncdestinenable + checkbox + + + GUI Protocol + varsyncprotocol + http or https]]> + select + HTTP + + + + + + + GUI IP-Address + varsyncipaddress + + input + 15 + + + GUI Port + varsyncport + + input + 3 + + + GUI Admin Password + varsyncpassword + + password + 20 + + + + + + snort_resync(); + + + snort_resync(); + + -- cgit v1.2.3 From 68970450506e68d97398e0f39709e175434cd55b Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Tue, 14 May 2013 01:48:53 -0300 Subject: snort - include sync code Current status: it replicates xml config, but It's not calling all snort functions after config save. --- config/snort/snort_sync.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'config/snort/snort_sync.xml') diff --git a/config/snort/snort_sync.xml b/config/snort/snort_sync.xml index 30d935ee..5bfeba12 100755 --- a/config/snort/snort_sync.xml +++ b/config/snort/snort_sync.xml @@ -46,9 +46,9 @@ POSSIBILITY OF SUCH DAMAGE. Describe your package requirements here Currently there are no FAQ items provided. snortsync - 1.3_1 pkg v.1.9 + 1.0 Proxy server snort: XMLRPC Sync - + /usr/local/pkg/snort/snort.inc Snort Interfaces @@ -80,7 +80,7 @@ POSSIBILITY OF SUCH DAMAGE. Sync - /pkg_edit.php?xml=snort_sync.xml&id=0 + /pkg_edit.php?xml=snort/snort_sync.xml @@ -91,7 +91,7 @@ POSSIBILITY OF SUCH DAMAGE. Enable Sync - varsyncenablexmlrpc + varsynconchanges Important: While using "Sync to hosts defined below", only sync from host A to B, A to C but do not enable XMLRPC sync to A. This will result in a loop!]]> select @@ -158,9 +158,9 @@ POSSIBILITY OF SUCH DAMAGE. - snort_resync(); + write_config();snort_sync_on_changes(); - snort_resync(); + write_config();snort_sync_on_changes(); -- cgit v1.2.3