3 ms·
> killing DoH conclusively on your home network is more difficult than you've made it seem True. I had to install a system to MITM all my https traffic in ord
by JohnFen 4y ago
> killing DoH conclusively on your home network is more difficult than you've made it seem
True.
I had to install a system to MITM all my https traffic in order to block DoH requests.
- dngray 4y ago> killing DoH conclusively on your home network is more difficult than you've made it seem It's actually not too difficult if your users use Firefox. You can use enterprise policies https://support.mozilla.org/en-US/products/firefox-enterprise/policies-customization-enterprise/policies-overview-enterprise https://support.mozilla.org/en-US/products/firefox-enterpris... /* 0710: disable DNS-over-HTTPS (DoH) rollout [FF60+] * 0=off by default, 2=TRR (Trusted Recursive Resolver) first, 3=TRR only, 5=explicitly off * see "doh-rollout.home-region": USA 2019, Canada 2021, Russia/Ukraine 2022 [3] * [1] https://hacks.mozilla.org/2018/05/a-cartoon-intro-to-dns-over-https/ * [2] https://wiki.mozilla.org/Security/DOH-resolver-policy * [3] https://support.mozilla.org/en-US/kb/firefox-dns-over-https * [4] https://www.eff.org/deeplinks/2020/12/dns-doh-and-odoh-oh-my-year-review-2020 ***/ // user_pref("network.trr.mode", 5); It can be more of an issue if you have a lot of "smart" products or IoT products that essentially operate as black boxes on your network though. Would just recommend not doing that, if you have devices on your network that you don't control, someone else does.
- JohnFen 4y agoThat only affects things that use the browser's facilities to engage in DoH. A web page could decide not to do that, and manufacture their own lookups using JS, for instance.
- yubiox 4y agoCan you give any more detail on how you did this? Is squid the proxy? How does it know which traffic is doh? What do you do with those requests?
- JohnFen 4y agoYes, I've installed my own cert to negotiate HTTPS connections, then proxy through software to check the contents being sent. Basically the same process that some companies use for similar purposes.
- yubiox 4y agoThis response is just handwaving and avoids the question. Why even bother?
- JohnFen 4y agoOh? I thought I answered it. What are you really asking for here? A tutorial? If that's what you want, you need to give me time to put it together. I set this up a number of years ago and don't remember the details off the top of my head. here's what I do remember: I use a squid proxy and replace all of the HTTPS certs on my other machines with my own. When HTTPS is negotiated, it's with my proxy, not the end destination. Then the proxy does its proxy thing and sets up a normal HTTPS connection with the destination. In my proxy, I have a script that is looking for the HTTP lookup exchanges detailed in RFC8484 (https://www.rfc-editor.org/rfc/rfc8484 https://www.rfc-editor.org/rfc/rfc8484). When it finds them, it drops them on the floor. Everything else just gets passed through.