Unbound 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.
#2 Updated by Jim Pingle 7 months 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.
#5 Updated by Viktor Gurov 3 months ago
Steve Beaver wrote:
Applied in changeset 7ec80e763f7e8357a4e5b0d2d57546cfd5d0f0f0.
Tested on 2.5.0.a.20191011.1853
# cat /var/unbound/access_lists.conf | grep 3[1-2] access-control: 127.0.0.1/32 allow_snoop access-control: 10.10.10.1/32 allow access-control: 10.1.1.1/32 allow access-control: 10.1.2.1/31 allow access-control: 192.168.5.5/32 allow