mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
firewall: reduce impact of link-local inject to FilterRule on matching interface; closes #5907
Now we know why pf(4) does not want to fix this. ;)
This commit is contained in:
parent
ef0d238ba1
commit
2412d574f3
@ -255,7 +255,7 @@ abstract class Rule
|
||||
}
|
||||
} elseif (!empty($interfaces[$network_name]['if'])) {
|
||||
$rule[$target] = "({$interfaces[$network_name]['if']}:network)";
|
||||
if ($rule['ipprotocol'] == 'inet6') {
|
||||
if ($rule['ipprotocol'] == 'inet6' && $this instanceof FilterRule && $rule['interface'] == $network_name) {
|
||||
/* historically pf(4) excludes link-local on :network to avoid anti-spoof overlap */
|
||||
$rule[$target] .= ',fe80::/10';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user