From 11c348d1adafbbdfd3101d69e8d431715847bae9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 3 Aug 2011 18:37:26 +0000 Subject: Correct saving of interface in barnyard config --- config/snort/snort_barnyard.php | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php index e54ce831..2e857f22 100644 --- a/config/snort/snort_barnyard.php +++ b/config/snort/snort_barnyard.php @@ -47,7 +47,6 @@ global $g; if (!is_array($config['installedpackages']['snortglobal']['rule'])) $config['installedpackages']['snortglobal']['rule'] = array(); -//nat_rules_sort(); $a_nat = &$config['installedpackages']['snortglobal']['rule']; $id = $_GET['id']; @@ -60,7 +59,6 @@ if (isset($_GET['dup'])) { } if (isset($id) && $a_nat[$id]) { - /* old options */ $pconfig['def_ssl_ports_ignore'] = $a_nat[$id]['def_ssl_ports_ignore']; $pconfig['flow_depth'] = $a_nat[$id]['flow_depth']; @@ -292,15 +290,6 @@ function enable_change(enable_change) { // make shure a default answer is called if this is envoked. endis2 = (document.iform.barnyard_enable); - document.iform.barnyard_mysql.disabled = endis; document.iform.barnconfigpassthru.disabled = endis; } @@ -319,19 +308,6 @@ echo " print_info_box2($savemsg); } - if (0 && file_exists($d_snortconfdirty_path)) { - echo '

'; - - if($savemsg) { - print_info_box_np2("{$savemsg}"); - }else{ - print_info_box_np2(' - The Snort configuration has changed and snort needs to be restarted on this interface.
- You must apply the changes in order for them to take effect.
- '); - } - } - ?> @@ -416,14 +392,15 @@ echo " } } foreach ($interfaces as $iface => $ifacename): + if ($iface != $pconfig['interface']) + continue; ?> - - + + +
- Choose which interface this rule applies to.
- Hint: in most cases, you'll want to use WAN here.
+ The interface this rule applies to.
+ -- cgit v1.2.3
Mysql Settings