OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 20.7 Production Series »
  • [RESOLVED]DNS over TLS doesn't work
« previous next »
  • Print
Pages: [1] 2

Author Topic: [RESOLVED]DNS over TLS doesn't work  (Read 1001 times)

Massimo1993

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
[RESOLVED]DNS over TLS doesn't work
« on: August 03, 2020, 01:19:17 pm »
I've tried the new DNS over TLS function present in Miscelaneous but with 1.1.1.1@853 and 1.0.0.1@853 it doesn't work, there is no request on the 853 port and everything in port 53 is clear.

Then i've tried to use this custom config that should work but still same thing, no DNS over TLS and nothing on 853
Code: [Select]
server:
  minimal-responses: yes
  qname-minimisation: yes
  rrset-roundrobin: yes
  use-caps-for-id: yes
  tls-cert-bundle: /etc/ssl/cert.pem

forward-zone:
  name: "."
  forward-addr: 1.1.1.1@853
  forward-addr: 1.0.0.1@853
  forward-ssl-upstream: yes

Here there are my settings https://postimg.cc/gallery/fM2mBRh i've also disabled the rewrite of DNS in general config.
« Last Edit: August 03, 2020, 02:55:01 pm by Massimo1993 »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: DNS over TLS doesn't work
« Reply #1 on: August 03, 2020, 01:23:11 pm »
can you disable custom settings, enable dot via view and post content of /var/unbound/unbound.conf
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

Massimo1993

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: DNS over TLS doesn't work
« Reply #2 on: August 03, 2020, 01:34:36 pm »
Quote from: mimugmail on August 03, 2020, 01:23:11 pm
can you disable custom settings, enable dot via view and post content of /var/unbound/unbound.conf
I've removed the custom settings, saved, added the 1.1.1.1@853 and 1.0.0.1@853 to the DNS over TLS form in miscellaneous, saved and restarted unbound

Here is the unbound.conf
https://pastebin.com/Gqt8vitF
Logged

Massimo1993

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: DNS over TLS doesn't work
« Reply #3 on: August 03, 2020, 02:34:50 pm »
Apparently https://cloudflare-dns.com/help/ isn't accurate. I've tried spoofing on port udp 53 and tcp 853 and indeed it works.
Strangely any online test like this or tenta tells me it isn't covered by TLS, can't understand why.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: DNS over TLS doesn't work
« Reply #4 on: August 03, 2020, 02:39:58 pm »
I thought you were not seeing packets on port 853 on WAN??
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

Massimo1993

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: DNS over TLS doesn't work
« Reply #5 on: August 03, 2020, 02:51:20 pm »
Quote from: mimugmail on August 03, 2020, 02:39:58 pm
I thought you were not seeing packets on port 853 on WAN??
Sorry i did check udp on 853 at first that's why i didn't see anything. Because the normal query where on udp on port 53
Logged

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #6 on: August 04, 2020, 07:23:53 pm »
Hi
I am also having issues getting this to work.
Commenting out all forwarders in the Custom options pane, and then putting an ip address as such
in the Dns over TLS field on the Miscellaneous page
9.9.9.9
or
9.9.9.9@853
and saving, make no change to /var/unbound/unbound.conf, and resolving does not work.
Q1 which is the correct format 9.9.9.9 or 9.9.9.9@853?
Q2 why no change to the /var/unbound/unbound.conf file, are the entries held elsewhere?
Q3 Am I doing something stupid?

Thanks
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #7 on: August 04, 2020, 08:17:07 pm »
9.9.9.9@853 is correct. The file is called dot.conf
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #8 on: August 04, 2020, 08:25:45 pm »
Hi
Thanks for that.
I have tried it earlier today, not working.
I did
enter ip address @853 on the miscellaneous page
Saved
Commented out all other server entries in the custom options
Saved
restarted unbound.
Does it need a reboot?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #9 on: August 04, 2020, 09:13:03 pm »
Can you do a packet capture in port 853 on WAN? As previously said the online check doesnt work
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #10 on: August 04, 2020, 11:05:22 pm »
Pre change (using servers in unbound.conf), traffic detected, sites resolved.
Post change, unbound.conf server's commented out.
A working dns added, checked in dot.conf.
server:
  tls-cert-bundle: /etc/ssl/cert.pem
forward-zone:
  name: "."
  forward-tls-upstream: yes
  forward-addr: 217.169.20.22@853
No traffic observed, no resolving.
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #11 on: August 05, 2020, 06:04:22 am »
And what was the content in unbound conf previously?
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #12 on: August 05, 2020, 08:23:34 am »
Contents on unbound.conf, this works


server:
tls-cert-bundle: /etc/ssl/cert.pem

forward-zone:
name: "."

forward-tls-upstream: yes

#AandA
forward-addr:217.169.20.22@853
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 5054
  • Karma: 347
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #13 on: August 05, 2020, 09:03:13 am »
Hm, I dont see any difference  :o Can you post the full content of unbound.conf when custom removed and restart couple of time the daemon?

Maybe one of the apply buttons need some more push.
Logged
IRC: mimugmail
Twitter: mimu_muc
WWW: www.routerperformance.net

aimdev

  • Newbie
  • *
  • Posts: 46
  • Karma: 2
    • View Profile
Re: [RESOLVED]DNS over TLS doesn't work
« Reply #14 on: August 05, 2020, 09:08:08 am »
OK, but it will be a few hours until I can get some downtime.
Can you confirm you want all of the custom entries removed, ie empty, and then add in the miscellaneous page the server ip@port.
Then do a few restarts of unbound and optionally a reboot, then post the complete unbound.conf.
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 20.7 Production Series »
  • [RESOLVED]DNS over TLS doesn't work
 

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