diff options
author | Ermal <eri@pfsense.org> | 2013-01-26 16:47:39 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-01-26 16:47:39 +0100 |
commit | dadcb727d5ac0f94081cafdcc4db55a0408a5e46 (patch) | |
tree | d72a5871bdf9bd9b23681c2ad7c73ba187637e75 /config | |
parent | b97368f2ed50c70ba7102acacd7d65cc3ffec109 (diff) | |
download | pfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.tar.gz pfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.tar.bz2 pfsense-packages-dadcb727d5ac0f94081cafdcc4db55a0408a5e46.zip |
Push this down here
Diffstat (limited to 'config')
-rwxr-xr-x | config/snort/snort.inc | 20 |
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')) { |