OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: hjint on June 03, 2021, 08:51:39 am

Title: Error loading rules: /tmp/rules.debug:85: syntax error
Post by: hjint on June 03, 2021, 08:51:39 am
Opnsense Version 21.1.6-amd64

On the 1st of June the following message started to appear in System: Log Files: General

"/usr/local/etc/rc.filter_configure: There were error(s) loading the rules: /tmp/rules.debug:85: syntax error - The line in question reads [85]: 662256 = "<662256>" and on the immediate line before this the following message is listed with the same process id
"/usr/local/etc/rc.filter_configure: ROUTING: keeping current default gateway '192.168.1.1'"

Does anybody have an idea what this error means and how to resolve this?

Thank you
Title: Re: Error loading rules: /tmp/rules.debug:85: syntax error
Post by: franco on June 03, 2021, 11:22:09 am
All number firewall alias is probably not good for pf.conf(5) syntax parsing. You added the alias "662256" recently?


Cheers,
Franco
Title: Re: Error loading rules: /tmp/rules.debug:85: syntax error
Post by: hjint on June 03, 2021, 12:34:50 pm
Yes, I have changed some rules and added new rules.

How can I determine which rule is linked to alias "662256"?
Title: Re: Error loading rules: /tmp/rules.debug:85: syntax error
Post by: franco on June 03, 2021, 01:29:40 pm
# grep "662256" /tmp/rules.debug

The rules have a label hash at the end and you can find them via the label description in the firewall rules listing (click to unhide the hash).


Cheers,
Franco
Title: [Resolved] Re: Error loading rules: /tmp/rules.debug:85: syntax error
Post by: hjint on June 03, 2021, 04:32:55 pm
Thanks, resolved