Skip to content

[Unbound:Blocklists]: Add advanced policy option to ignore domain blocks from other matched policies #9890

@dstapa

Description

@dstapa

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

This is regarding the use case in the OP of this thread: https://forum.opnsense.org/index.php?topic=51137.0

The behavior of the code currently is to block the query when the domain exists in any policy for which the client IP is in the list of source networks. This includes the empty set (source_nets=[]) which is the default match for any source IP (including localhost).

Sometimes we might want to override this behavior on a per-policy basis so that the domain is resolved even if a broader matching policy would block it. The proposal is to add an advanced mode option to the policy settings to enable this.

Environment

OPNsense 26.1.2_5 (amd64).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions