{"id":904,"date":"2022-01-12T04:40:40","date_gmt":"2022-01-12T04:40:40","guid":{"rendered":"https:\/\/technobabble.us.to\/?p=904"},"modified":"2022-11-02T02:59:52","modified_gmt":"2022-11-02T02:59:52","slug":"dns-over-tls-over-vpn-and-back","status":"publish","type":"post","link":"https:\/\/technobabble.us.to\/?p=904","title":{"rendered":"DNS over TLS over VPN and back"},"content":{"rendered":"\n<p>DNS over TLS is a big step in fixing a badly designed protocol, at least in terms of privacy, but it still leaves you having to trust the endpoint with all of that data that you are trying to keep private. While Cloudflare claims not to log your info or sell your data, you can never know for sure what&#8217;s going on at the far end. <\/p>\n\n\n\n<p>To that point, I&#8217;ve decided to send all of my DNS traffic over my self managed VPN that terminates on a server I rent in a Canada. This is an extra step I take to break the direct connection from my home IP address. In fact there are ZERO DNS packets leaving my home network, port 53 or 853. <\/p>\n\n\n\n<p>I&#8217;m running a DNS-TLS resolver on my pfSense firewall and connecting to 1.1.1.1 on port 853. I&#8217;m also explicitly blocking Google DNS 8.8.8.8\/8.8.4.4 and QUIC protocol (UDP 443)<\/p>\n\n\n\n<p>While my DNS lookup times suffer greatly, the resolver caches entries so only the initial lookup is slow.  <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"634\" data-id=\"918\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM-1024x634.png\" alt=\"\" class=\"wp-image-918\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM-1024x634.png 1024w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM-300x186.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM-768x475.png 768w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.26.37-PM.png 1063w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>DNS Lookup to digg.com took 721 msec!   (west coast to east coast and back) <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.41-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"344\" data-id=\"906\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.41-PM.png\" alt=\"\" class=\"wp-image-906\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.41-PM.png 622w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.41-PM-300x166.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>The following lookup took 3msec, much better! <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.52-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"368\" data-id=\"907\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.52-PM.png\" alt=\"\" class=\"wp-image-907\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.52-PM.png 649w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-09-at-11.47.52-PM-300x170.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Here are my pfSense settings where I&#8217;m sending the DNS over the VPN <\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" data-id=\"908\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM-1024x646.png\" alt=\"\" class=\"wp-image-908\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM-1024x646.png 1024w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM-300x189.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM-768x485.png 768w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.15.12-PM.png 1147w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>More DNS Resolver settings<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"658\" data-id=\"909\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM-1024x658.png\" alt=\"\" class=\"wp-image-909\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM-1024x658.png 1024w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM-300x193.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM-768x493.png 768w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.16.16-PM.png 1032w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>General DNS Settings:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"525\" data-id=\"910\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM-1024x525.png\" alt=\"\" class=\"wp-image-910\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM-1024x525.png 1024w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM-300x154.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM-768x394.png 768w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.17.44-PM.png 1032w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>DNS Traffic exiting my VPN Server in Canada<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.20.05-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"426\" data-id=\"913\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.20.05-PM.png\" alt=\"\" class=\"wp-image-913\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.20.05-PM.png 1020w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.20.05-PM-300x125.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.20.05-PM-768x321.png 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Blocking Google DNS and QUIC with pfSense<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"104\" data-id=\"915\" src=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM-1024x104.png\" alt=\"\" class=\"wp-image-915\" srcset=\"https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM-1024x104.png 1024w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM-300x31.png 300w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM-768x78.png 768w, https:\/\/technobabble.us.to\/wp-content\/uploads\/2022\/01\/Screen-Shot-2022-01-11-at-9.21.33-PM.png 1031w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Read more about DoT and DoH at Cloudflare:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.cloudflare.com\/learning\/dns\/dns-over-tls\/\">https:\/\/www.cloudflare.com\/learning\/dns\/dns-over-tls\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.cloudflare.com\/handshake-encryption-endgame-an-ech-update\/\">https:\/\/blog.cloudflare.com\/handshake-encryption-endgame-an-ech-update\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DNS over TLS is a big step in fixing a badly designed protocol, at least in terms of privacy, but it still leaves you having to trust the endpoint with all of that data that you are trying to keep &hellip; <a href=\"https:\/\/technobabble.us.to\/?p=904\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-904","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/posts\/904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=904"}],"version-history":[{"count":8,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/posts\/904\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=\/wp\/v2\/posts\/904\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/technobabble.us.to\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technobabble.us.to\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}