Error loading rules: /tmp/rules.debug:85: syntax error

Started by hjint, June 03, 2021, 08:51:39 AM

Previous topic - Next topic
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

All number firewall alias is probably not good for pf.conf(5) syntax parsing. You added the alias "662256" recently?


Cheers,
Franco

Yes, I have changed some rules and added new rules.

How can I determine which rule is linked to alias "662256"?

# 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