Revision 7a6148e4
Added by Ermal Luçi almost 17 years ago
etc/inc/filter.inc | ||
---|---|---|
2097 | 2097 |
} |
2098 | 2098 |
|
2099 | 2099 |
$isbridged = false; |
2100 |
foreach ($FilterIflist as $on2 => $oc2) { |
|
2101 |
if ($oc2['bridge'] && $oc2['bridge'] == $on) { |
|
2102 |
$isbridged = true; |
|
2103 |
break; |
|
2100 |
if (is_array($config['bridges']['bridged'])) { |
|
2101 |
foreach ($config['bridges']['bridged'] as $oc2) { |
|
2102 |
if (stristr($oc2['members'], $on)) { |
|
2103 |
$isbridged = true; |
|
2104 |
break; |
|
2105 |
} |
|
2104 | 2106 |
} |
2105 | 2107 |
} |
2106 |
if ($oc['ip'] && !($isbridged) && !isset($config['bridge']['filteringbridge']) && isset($oc['spoofcheck']))
|
|
2107 |
$ipfrules .= filter_rules_spoofcheck_generate($on, $oc['if'], $oc['sa'], $oc['sn'], $log);
|
|
2108 |
if ($oc['ip'] && !($isbridged) && isset($oc['spoofcheck'])) |
|
2109 |
$ipfrules .= filter_rules_spoofcheck_generate($on, $oc['if'], $oc['sa'], $oc['sn'], $log); |
|
2108 | 2110 |
|
2109 | 2111 |
|
2110 | 2112 |
/* block private networks ? */ |
Also available in: Unified diff
Bring the bridge checks up to date with the bridge changes.