opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.25k stars 725 forks source link

Unable to resolve reference rule #7609

Closed melroy89 closed 2 months ago

melroy89 commented 2 months ago

Describe the bug

Firewall -> Diagnostics -> Sessions -> Look at the sessions has has a rule saying: "let out anything...".

Clicking on that link would open: <opnsense-IP>/firewall_rule_lookup.php?rid=fae559338f65e11c53669fc3642c93c2

This new page gives me an empty fully blank page?

To Reproduce

Steps to reproduce the behavior:

  1. Go to Firewall->Diagnostics -> Sessions
  2. Click on 'let out anythi...' rule text
  3. Blank page

Expected behavior

No white page :).

Screenshots

image

Relevant log files

Not that I can think of?

Environment

OPNsense 24.1.9_4 (amd64). Currently running in VM (Proxmox) for testing our firewall software

OPNsense-bot commented 2 months ago

Thank you for creating an issue. Since the ticket doesn't seem to be using one of our templates, we're marking this issue as low priority until further notice.

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

The easiest option to gain traction is to close this ticket and open a new one using one of our templates.

melroy89 commented 2 months ago

Thank you for creating an issue. Since the ticket doesn't seem to be using one of our templates, we're marking this issue as low priority until further notice.

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

The easiest option to gain traction is to close this ticket and open a new one using one of our templates.

Actually it's using the bug template. And removed one or 2 headings that weren't relevant. But OK.

AdSchellevis commented 2 months ago

when (internal) rules change after the state has been created, this happens. The machine just can't resolve the reference in its current set of rules. (easy to check by locating the same rule in the rules menu)

melroy89 commented 2 months ago

I just notice the same problem is present in States as well as Sessions.

when (internal) rules change after the state has been created, this happens.

But I still consider this a bug right? This is not expected behavior. I actually just installed OPNsense from scratch and this is what I get.

AdSchellevis commented 2 months ago

it's not a bug, at least not one solvable with the boundaries that exist (states may refer to rules that no longer exists, which is a fact of life, for good reasons by the way)