Skip to content

Unbound: DNSBL: Anything is whitelisted if there is a Source Net(s) Entry in Config #9630

@docsteel

Description

@docsteel

Important notices

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

Describe the bug
Unbound DNSBL whitelists anything if there is a Entry under "Source Net(s)" in the Blacklist Config.

To Reproduce

Steps to reproduce the behavior:

  1. Install OPNsense 25.7.11
  2. Install Unbound Service
  3. Enable DNSBL Feature in Unbound
  4. Add Blocklists and maybe custom Black- or Whitelisted Custom Domains
  5. Add a Network Entry (e.g. 185.235.84.0/22) under "Source Net(s) in the DNSBL Config
  6. Click Apply and restart Service
  7. Check your DNS, anything that should be blacklisted are resolved correctly to IP Addresses

Expected behavior
Blacklisted Domains should be resolve to 0.0.0.0 if there is an Entry under "Source Net(s)" in the Config.

Describe alternatives you considered

Deleting Network Entry solved the Problem. Maybe a Regex Problem in unbound?

Screenshots
Failed DNSBL if there is a Source Net(s) entry:
Image

Check via DNS Resolver, DNSBL is whitelisting anything:
Image

Delete Source Net(s) Entry in DNSBL Config:

Image

Check via DNS Resolver, DNSBL is working:

Image

Relevant log files
See Screenshots

Additional context
Problem popped up with Version OPNsense 25.7.11. With OPNsense 25.7.10 or older anything was working.

Environment
OPNsense 25.7.11_2-amd64
FreeBSD 14.3-RELEASE-p7
OpenSSL 3.0.18
OPNsense Hardware Appliance DEC2750

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