Skip to content

Commit

Permalink
Work around the NPt rule loading issue to load the rules as they were…
Browse files Browse the repository at this point in the history
… on previous versions. Fixes #6985
  • Loading branch information
jim-p committed Dec 6, 2016
1 parent 3dd6ce6 commit 9c8ce38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/inc/filter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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";

}
}
Expand Down

0 comments on commit 9c8ce38

Please sign in to comment.