News for hackers. Stuff that matters.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by profmonocle on Saturday September 07, 2024 @03:13AM (#41472104)
> As much hassle as things like DoH can be for securing and enforcing policy on a network, it’s about time it became ubiquitous enough that governments can’t leverage DNS for their own purposes anymore.

A caveat of encrypted DNS is that it has to be bootstrapped via traditional, unencrypted DNS or via a well-known set of IPs. Currently, most clients using DoH/DoT use one of a small handful of providers. Cloudflare, Google, Quad9, etc. A motivated government could block those endpoints pretty easily.

Of course, a client using encrypted DNS could just refuse to work when encryption is blocked, rather than falling back to traditional DNS. But that could mean the client is unusable in the country implementing the block.

This sort of reminds me of when Kazakhstan announced they were going to MITM all TLS sessions within the country, and all citizens would need to manually install a root cert. Google, Apple, and Mozilla chose to completely block their root cert, so it would be unusable even if users chose to go along with it. https://en.wikipedia.org/wiki/Kazakhstan_man-in-the-middle_a... Seems like the browser devs won that political standoff, but would they fight the same battle if DoH/DoT was blocked?

Re:Malaysia started mandating ISPs to redirect DNS queries t... by klingoff on Saturday September 07, 2024 @04:50AM (#41472533)
If we make sure clients support proxies what are they going to do about all the proxies that may allow the DoH server list and may be the only way to do something else?
Re:Malaysia started mandating ISPs to redirect DNS queries t... by zarzavat on Saturday September 07, 2024 @05:38AM (#41472778)
This is the way. Few governments have the resources to play cat and mouse with OS or browser devs. Just look at the fuss over manifest v3, it shouldn’t be a big deal - just fork chromium and patch manifest v2 back in again - but it is because there’s no “just patching” chromium, it’s like a train.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by moi2388 on Saturday September 07, 2024 @06:39AM (#41473035)
I still don’t see the issue with v3. I hear a lot of complaints, but you can pretty much offer all the same functionality in v3 as in v2
Re:Malaysia started mandating ISPs to redirect DNS queries t... by Timshel on Saturday September 07, 2024 @06:54AM (#41473110)
Re:Malaysia started mandating ISPs to redirect DNS queries t... by moi2388 on Saturday September 07, 2024 @07:58AM (#41473387)
Uhm, yes. You can still apply rules with regard to all requests and then dynamically adept them.

You just can’t do it before the request hits the browser, so you can’t pretend to be a vpn inside the browser.

Blocking or redirecting all requests, based on dynamic values, adapting all headers through webrequest and not showing any ads and removing them from the page is still possible with service workers and content scripts.

The only issue is with regards to “static” rules and modifying them before they hit the browser. After that you can still do everything you could before. The only issue is bandwidth, but this should always have been an app to intercept all network requests instead of something inside the browser (like a vpn adblocker)

Re:Malaysia started mandating ISPs to redirect DNS queries t... by zarzavat on Saturday September 07, 2024 @08:41AM (#41473610)
If you use a VPN^ to block ads then the VPN needs to be able to see inside your TLS session. Moreover, you still need an adblocker inside the browser process to do DOM manipulation, etc. For example, the element picker.

It’s technically possible to bifurcate an adblocker like that but it’s an ugly setup and you would only do it if a gun was held to your head by an ad monopoly.

That said, it may be a good idea in the current situation.

^ This is really stretching the meaning of ‘VPN’!

Re:Malaysia started mandating ISPs to redirect DNS queries t... by moi2388 on Saturday September 07, 2024 @08:58AM (#41473689)
But you can totally still block ads based on element picker and do DOM manipulation. That’s not an issue.

The only two things you cannot do is declare them as static rules (well you can but not unlimited), and look and modify every header before it hits the browser.

And yes, you could have an app with a browser extension like Adblock already did for years without issues.

You could also have only a browser extension and have all the user functionality you have now, the only difference being it just slightly slower, and you still having the network load the ads (but not the page you’re on).

A bit annoying? Sure. But it’s hardly the severe problem it’s being made out to be.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by Sophira on Saturday September 07, 2024 @10:45PM (#41477847)
> The only issue is bandwidth

It's not just bandwidth, though. It's also about not allowing ad companies to collect data about you such as which sites you view.

Not showing ads is important, but it's only half the battle.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by moi2388 on Sunday September 08, 2024 @01:51AM (#41478445)
Which you can also still do, with around 30k static and 5k dynamic rules with regex possibilities.

Which is a lot.

And even if you somehow hit this number, afterwards you can still intercept every request before the user sees it to modify headers or remove ad content.

Is it annoying? Sure. But again, you can technically still do everything you could before.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by em-bee on Saturday September 07, 2024 @08:55AM (#41473674)
A caveat of encrypted DNS is that it has to be bootstrapped via traditional, unencrypted DNS or via a well-known set of IPs. Currently, most clients using DoH/DoT use one of a small handful of providers. Cloudflare, Google, Quad9, etc. A motivated government could block those endpoints pretty easily.

not if DNS is hosted on the same servers as eg google search itself. then they would have to block google search in order to block DNS.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by brookst on Saturday September 07, 2024 @10:46AM (#41474206)
…or use higher-level packet analysis to filter DoH.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by ronsor on Saturday September 07, 2024 @11:38AM (#41474501)
That kind of DPI is computationally expensive to the point China doesn't even do it much.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by myrandomcomment on Saturday September 07, 2024 @02:32PM (#41475530)
OMG, they very much do. It is not on 100% of the traffic but at any given time a more then smaller % is subject to DPI.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by inkyoto on Saturday September 07, 2024 @09:00PM (#41477464)
Not anymore and mainland Chinese manufacturers sell them on in large numbers to autocratic governments.

Such devices have a pretty simple architecture: the highly performant data plane where DPI is implemented in the hardware (using either ASIC's or FPGA's – don't have enough information), and the control plane. The control plane comes with a SDK of sorts that DPI appliance users can use to tailor the appliance to their environment and that is used to «refine» the data plane behaviour, i.e. sending down / updating DPI pattern matching / processing rules.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by zamadatix on Saturday September 07, 2024 @02:59PM (#41475690)
With HTTP/3 there isn't much higher level packet analysis to do between anything useful in the headers being encrypted and the session being reused. All you see is there is a 443 UDP session to a Google server and encrypted packets keep getting sent back and forth... which looks exactly like any other HTTP/3 session to a Google server.

I think the weak points are wholly untechnical e.g. Google would often give in to protect the $$$ they make in a region.

Re:Malaysia started mandating ISPs to redirect DNS queries t... by toast0 on Saturday September 07, 2024 @03:10PM (#41475758)
Packet size (i forget if http/3 does padding) and packet rates are still available, dns looks a lot different than most http content.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by zarzavat on Sunday September 08, 2024 @01:12AM (#41478332)
In terms of packet size, DNS (DoH) doesn’t really look any different to an XHR request.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by toast0 on Sunday September 08, 2024 @02:09AM (#41478518)
Request maybe, DoH responses are probably way shorter than anything else though.
Re:Malaysia started mandating ISPs to redirect DNS queries t... by BlueTemplar on Saturday September 07, 2024 @04:43PM (#41476356)
Then they will block Google Search and blame it on Google ?
Re:Malaysia started mandating ISPs to redirect DNS queries t... by Sophira on Saturday September 07, 2024 @10:54PM (#41477881)
> A caveat of encrypted DNS is that it has to be bootstrapped via traditional, unencrypted DNS or via a well-known set of IPs.

Unencrypted DNS also has to be bootstrapped by a well-known set of IPs. None of the current DNS propagation system would work if it wasn't for the hardcoded IPs for the root DNS servers at *.root-servers.net.

And, of course, end-user devices still need an IP to query for DNS, it's just that it's almost always supplied automatically via DHCP or similar.