aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-14 19:36:42 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-14 19:36:42 -0400
commit39faab78617ba0d41d6cd376d104711c40911c56 (patch)
treebb843927bd844767d912e071b81aa9a1ca0326d0
parentc662caf2c669edfd94022f1afe566f2939b8f13b (diff)
downloadpfsense-packages-39faab78617ba0d41d6cd376d104711c40911c56.tar.gz
pfsense-packages-39faab78617ba0d41d6cd376d104711c40911c56.tar.bz2
pfsense-packages-39faab78617ba0d41d6cd376d104711c40911c56.zip
Do not show "no rules" warning when auto-SID mgmt is enabling rules.
-rwxr-xr-xconfig/snort/snort_interfaces.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index 8559801f..697e611e 100755
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -257,9 +257,11 @@ include_once("fbegin.inc");
$no_rules = true;
if (isset($natent['customrules']) && !empty($natent['customrules']))
$no_rules = false;
- if (isset($natent['rulesets']) && !empty($natent['rulesets']))
+ elseif (isset($natent['rulesets']) && !empty($natent['rulesets']))
$no_rules = false;
- if (isset($natent['ips_policy']) && !empty($natent['ips_policy']))
+ elseif (isset($natent['ips_policy']) && !empty($natent['ips_policy']))
+ $no_rules = false;
+ elseif ($config['installedpackages']['snortglobal']['auto_manage_sids'] == 'on' && !empty($natent['enable_sid_file']))
$no_rules = false;
/* Do not display the "no rules" warning if interface disabled */
if ($natent['enable'] == "off")