OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • 24.7.10 Unbound DNS: DNS over TLS NOK? -> OK with 24.7.10_1
« previous next »
  • Print
Pages: [1] 2

Author Topic: 24.7.10 Unbound DNS: DNS over TLS NOK? -> OK with 24.7.10_1  (Read 771 times)

longtom

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
24.7.10 Unbound DNS: DNS over TLS NOK? -> OK with 24.7.10_1
« on: Today at 02:32:42 pm »
My Unbound DNS over TLS is NOK with 24.7.10.
When i disable DNS over TLS it is OK again.

Edit: With todays version 24.7.10!
« Last Edit: Today at 04:11:53 pm by longtom »
Logged

branbon

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #1 on: Today at 03:06:48 pm »
Also seeing similar issue with DNS over TLS. I had no System DNS servers set & was relying on Unbound to handle the resolution. (Adding a System DNS server remedied the issue for me for now)

Sample Unbound log:

Code: [Select]
2024-12-03T08:51:22-05:00 Notice unbound [57387:1] notice: ssl handshake failed 1.1.1.1 port 853
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: ssl handshake cert error: unable to get local issuer certificate
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:0A000086:SSL routines::certificate verify failed
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:80000002:system library::No such file or directory
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:16000069:STORE routines::unregistered scheme
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:80000002:system library::No such file or directory
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:16000069:STORE routines::unregistered scheme
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: and additionally crypto error:80000002:system library::No such file or directory
2024-12-03T08:51:22-05:00 Error unbound [57387:1] error: ssl handshake failed crypto error:16000069:STORE routines::unregistered scheme

NTP was also unable to synchronize due to failed DNS lookups.
Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 350
  • Karma: 24
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #2 on: Today at 03:30:10 pm »
Yup, add me to the list as well.  Took me a bit to figure out why DNS was borked after the update.  Disabling DNS over TLS resolves it.
Logged

dsh1705

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #3 on: Today at 03:37:36 pm »
I am seeing the same behavior.
Logged

yuusou

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #4 on: Today at 03:38:02 pm »
Just posted on the other thread with the same issue.
Logged

KHE

  • Full Member
  • ***
  • Posts: 230
  • Karma: 19
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #5 on: Today at 03:38:13 pm »
From the release notes:
o system: remove the SSL bundles in default locations

Is this unbound still using these SSL bundles?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #6 on: Today at 03:41:20 pm »
Looks like an Unbound bug to me:

# opnsense-patch https://github.com/opnsense/core/commit/cdb8da72661

Patch, apply Unbound settings, test again. I can hotfix and see what fix upstream needs here.


Cheers,
Franco
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #7 on: Today at 03:47:04 pm »
Apparently it's a feature they coined to be for "Windows" and default to off?

tls-win-cert: yes

instead of tls-cert-bundle... can anyone confirm?


Thanks,
Franco

https://nlnetlabs.nl/documentation/unbound/unbound.conf/
Logged

jphylips

  • Newbie
  • *
  • Posts: 11
  • Karma: 4
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #8 on: Today at 03:50:45 pm »
Hi Franco,

The patch seems to work from my end.

Thanks a lot.
Logged

yuusou

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #9 on: Today at 03:52:00 pm »
How can I apply the patch and restart the service without overwriting the configuration? pluginctl overwrited dot.conf. *BSD is not my strong suit.

EDIT:
nevermind, realized opnsense uses template files after using my eyes and looking at the repo properly. All fixed now. Thank you!
« Last Edit: Today at 03:56:52 pm by yuusou »
Logged

gac

  • Newbie
  • *
  • Posts: 7
  • Karma: 1
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #10 on: Today at 03:53:58 pm »
Patch works for me.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #11 on: Today at 03:55:33 pm »
Quote from: yuusou on Today at 03:52:00 pm
How can I apply the patch and restart the service without overwriting the configuration? pluginctl overwrited dot.conf. *BSD is not my strong suit.

Just run the "opnsense-patch URL" command in the shell. It will do everything except hit apply for you.
Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 350
  • Karma: 24
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #12 on: Today at 03:57:47 pm »
Quote from: franco on Today at 03:47:04 pm
Apparently it's a feature they coined to be for "Windows" and default to off?

tls-win-cert: yes

instead of tls-cert-bundle... can anyone confirm?


Thanks,
Franco

https://nlnetlabs.nl/documentation/unbound/unbound.conf/

I don't see either of these entries in my unbound.conf file.  Should I check somewhere else? 
Logged

gac

  • Newbie
  • *
  • Posts: 7
  • Karma: 1
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #13 on: Today at 03:59:08 pm »
Quote from: FullyBorked on Today at 03:57:47 pm
Quote from: franco on Today at 03:47:04 pm
Apparently it's a feature they coined to be for "Windows" and default to off?

tls-win-cert: yes

instead of tls-cert-bundle... can anyone confirm?


Thanks,
Franco

https://nlnetlabs.nl/documentation/unbound/unbound.conf/

I don't see either of these entries in my unbound.conf file.  Should I check somewhere else?
They would be in /var/unbound/etc/dot.conf
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17709
  • Karma: 1618
    • View Profile
Re: 24.7.10 Unbound DNS: DNS over TLS NOK?
« Reply #14 on: Today at 04:00:52 pm »
No, /usr/local/opnsense/service/templates/OPNsense/Unbound/core/dot.conf otherwise it will be overwritten on apply.
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.7 Production Series »
  • 24.7.10 Unbound DNS: DNS over TLS NOK? -> OK with 24.7.10_1
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2