*** Note: Please add new entries to the top of this file. ***
-------------------------------------------------------------------------------
+- do not generate anti-spoof rules for optional interfaces that have other interfaces
+ bridged to them (as opposed to being bridged to another interface, which was already
+ handled properly) when the filtering bridge is on (mkasper)
+
- added support for 3rd party extensions in the group management and dynamic menu system. (ptaylor)
- Thanks to Leo Fante for code modifications
/* OPT spoof check */
foreach ($optcfg as $on => $oc) {
/* omit for bridged interfaces when the filtering bridge is on */
- if ($oc['ip'] && (!$oc['bridge'] || !isset($config['bridge']['filteringbridge'])))
+ $isbridged = false;
+ foreach ($optcfg as $on2 => $oc2) {
+ if ($oc2['bridge'] && $oc2['bridge_if'] == $on) {
+ $isbridged = true;
+ break;
+ }
+ }
+
+ if ($oc['ip'] && !(($oc['bridge'] || $isbridged) && isset($config['bridge']['filteringbridge'])))
$ipfrules .= filter_rules_spoofcheck_generate($on, $oc['if'], $oc['sa'], $oc['sn'], $log);
}