Work around the NPt rule loading issue to load the rules as they were on previous versions. Fixes #6985

This commit is contained in:
jim-p 2016-12-06 10:59:51 -05:00
parent 3dd6ce64c1
commit 9c8ce38b01

View File

@ -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";
}
}