aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-26 16:47:39 +0100
committerErmal <eri@pfsense.org>2013-01-26 16:47:39 +0100
commitdadcb727d5ac0f94081cafdcc4db55a0408a5e46 (patch)
treed72a5871bdf9bd9b23681c2ad7c73ba187637e75 /config
parentb97368f2ed50c70ba7102acacd7d65cc3ffec109 (diff)
downloadpfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.tar.gz
pfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.tar.bz2
pfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.zip
Push this down here
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort.inc20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 68f65158..39d48687 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -141,20 +141,20 @@ function snort_build_list($snortcfg, $listname = "", $whitelist = false) {
}
}
- /* build an interface array list */
- if (function_exists('get_configured_interface_list'))
- $int_array = get_configured_interface_list();
- else {
- $int_array = array('lan');
- for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++)
- if(isset($config['interfaces']['opt' . $j]['enable']))
- $int_array[] = "opt{$j}";
- }
-
/* iterate through interface list and write out whitelist items
* and also compile a home_net list for snort.
*/
if ($wanip == 'yes') {
+ /* build an interface array list */
+ if (function_exists('get_configured_interface_list'))
+ $int_array = get_configured_interface_list();
+ else {
+ $int_array = array('wan', 'lan');
+ for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++)
+ if(isset($config['interfaces']['opt' . $j]['enable']))
+ $int_array[] = "opt{$j}";
+ }
+
foreach ($int_array as $int) {
/* calculate interface subnet information */
if (function_exists('get_interface_ip')) {