Project

General

Profile

Bug #9586

Unbound Access List /31 UI Issue

Added by matt s about 1 month ago. Updated 6 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
DNS Resolver
Target version:
Start date:
06/15/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

Forum Topic: https://forum.netgate.com/topic/144193/bug-dns-resolver-access-list-31-ui-issue\

Consider the below list of /32s whose queries are to be denied by the DNS Resolver as per the rule policy.

Once attempting to add an additional host to this list, like the below, all the /32s convert to /31s, and you will see the UI does not allow you to revert this back to /32s (happening on multiple browsers). As a result the rules are saved as /31 and 2 hosts are affected by this rule, not one (due to /31). This can be corrected if you re-edit the rule after saving, however to the untrained eye this will cause DNS issues to hosts.


I've noticed this recently as my vCenter Appliance (10.1.1.15) stopped resolving hostnames and lost connection to ESX hosts (via FQDN) once I added my 10.1.1.14 client to the deny ruleset. At some point once I made an edit on this page, the /32s converted to /31s, and the 10.1.1.14 rule also affected 10.1.1.15, my vCenter App.

Is this a known bug? It appears to be very consistent and have noticed it for some time.

Please could some others assist with checking this out on their setups to confirm?

As a feature request, I'd like to see aliases as usable in this menu, is that possible at all?
This will allow us to have more granularity around DNS access lists.

Associated revisions

Revision 7ec80e76 (diff)
Added by Steve Beaver 6 days ago

Fixed #9586 by detecting if option list includes /0 or not

History

#2 Updated by Jim Pingle 29 days ago

  • Status changed from New to Confirmed
  • Assignee set to Steve Beaver
  • Priority changed from High to Normal
  • Target version set to 2.5.0

I can confirm this, but it doesn't have an obvious cause. If I change line 241 to have a minimum of 1, then /32 stays OK, but an IPv6 /128 address is still cut down to /127

It doesn't seem to happen to NTP restrict lists which use the same mechanism, though.

#3 Updated by Steve Beaver 6 days ago

  • Status changed from Confirmed to Feedback

Fixed by detecting if option list includes /0 or not

#4 Updated by Steve Beaver 6 days ago

  • % Done changed from 0 to 100

Also available in: Atom PDF