diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-01 10:45:02 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-01 10:45:02 +0000 |
commit | 1dd1e41fc2503fc9e77df4a91ec4e1dda5bea0be (patch) | |
tree | 32f60a04689375b3ea5bdb4d42b57bb32af63044 | |
parent | d76ecf1368b049bd775e3cd4bf9feb00fa0fda40 (diff) | |
download | pfsense-1dd1e41fc2503fc9e77df4a91ec4e1dda5bea0be.zip pfsense-1dd1e41fc2503fc9e77df4a91ec4e1dda5bea0be.tar.gz |
Ticket #331. For now skip virtual interfaces on loginterface directive. This is contrary to what OpenBSD supports and is being discussed on how to proceed.
-rw-r--r-- | etc/inc/filter.inc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 152cbb3..f1b8f0b 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2252,9 +2252,15 @@ function filter_setup_logging_interfaces() { echo "filter_setup_logging_interfaces() being called $mt\n"; } $rules = ""; - foreach ($FilterIflist as $ifdescr => $ifname) { - /* do not work with tun interfaces */ - $rules .= "set loginterface {$ifname['if']}\n"; + foreach ($FilterIflist as $ifdescr => $ifcfg) { + /* + * XXX: This should be cleared out after a discussion + * between pf(4) devs is cleared out. This breaks + * compatibility with OpenBSD. + */ + if(isset($ifcfg['virtual'])) + continue; + $rules .= "set loginterface {$ifcfg['if']}\n"; } return $rules; } |