Project

General

Profile

Actions

Regression #14424

closed

filter.inc typo causing rule errors on upgrade.

Added by Mike Wright over 2 years ago. Updated over 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Rules / NAT
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
Affected Architecture:
1537

Description

Since upgrading to version 23.01 I've been plagued by a typo in /etc/inc/filter.inc that causes the following error each time I attempt to modify firewall rules/aliases.

Filter Reload

    There were error(s) loading the rules: /tmp/rules.debug:76: syntax error - The line in question reads [76]: rdr on $WAN proto ipv6 from any to any ->
    @ 2023-05-27 02:37:54

I initially thought it was a one-off, but after upgrading to 23.05, it reared its head again.

The issue lies in /etc/inc/filter.inc on line 2554

$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto ipv6 from any to any -> {$pv6nataddr}\n";

Changing {$pv6nataddr} to {$ipv6nataddr} corrects the issue.

$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto ipv6 from any to any -> {$ipv6nataddr}\n";

Actions

Also available in: Atom PDF