diff options
author | Bill Marquette <billm@pfsense.org> | 2005-04-15 04:53:29 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-04-15 04:53:29 +0000 |
commit | 2874a41926eb887a69220a64d8b3dfa7979c41b3 (patch) | |
tree | d1c2982e8d7b607e2be66d74ddef3e48af2d0b87 /etc | |
parent | 3de5271a4ecdb7038848646fcec5ea0aedcfb4a9 (diff) | |
download | pfsense-2874a41926eb887a69220a64d8b3dfa7979c41b3.zip pfsense-2874a41926eb887a69220a64d8b3dfa7979c41b3.tar.gz |
missing global - fixed opt rules the right way :)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 40645bb..28c395d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -405,6 +405,8 @@ function filter_generate_aliases() { } function generate_optcfg_array(& $optcfg) { + global $config; + for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $oc = $config['interfaces']['opt' . $i]; @@ -968,7 +970,7 @@ function run_command_return_string($cmd) { return $tmp; } -function generate_user_filter_rule(& $rule,& $optcfg) { +function generate_user_filter_rule($rule, $optcfg) { /* don't include disabled rules */ if (isset($rule['disabled'])) { @@ -986,14 +988,13 @@ function generate_user_filter_rule(& $rule,& $optcfg) { $ispptp = true; } else { -/* XXX - billm - what is the intent of this code? It seems to be stopping us from applying rules to opt interfaces */ -/* - * if (strstr($rule['interface'], "opt")) { - * if (!array_key_exists($rule['interface'], $optcfg)) { - * return; - * } - * } - */ + /* Check to see if the interface is opt and in our opt list */ + if (strstr($rule['interface'], "opt")) { + if (!array_key_exists($rule['interface'], $optcfg)) { + return; + } + } + $nif = 1; $ispptp = false; |