mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Work around the NPt rule loading issue to load the rules as they were on previous versions. Fixes #6985
This commit is contained in:
parent
3dd6ce64c1
commit
9c8ce38b01
@ -1927,8 +1927,8 @@ function filter_nat_rules_generate() {
|
||||
$natif = $FilterIflist[$natif]['descr'];
|
||||
|
||||
$natrules .= "binat on \${$natif} from {$srcaddr} to any -> {$dstaddr}\n";
|
||||
/* This second line breaks pf on pfSense 2.4/FreeBSD 11. See https://redmine.pfsense.org/issues/6985 */
|
||||
$natrules .= "# binat on \${$natif} from any to {$dstaddr} -> {$srcaddr}\n";
|
||||
/* pf won't accept 'any' here on pfSense 2.4/FreeBSD 11 but will happily take '::/0'. See https://redmine.pfsense.org/issues/6985 */
|
||||
$natrules .= "binat on \${$natif} from ::/0 to {$dstaddr} -> {$srcaddr}\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user