Cloudflare and Encrypted Client Hello (ECH)
Cloudflare and Encrypted Client Hello - Diagnostics and Workarounds
Overview: #
Encrypted Client Hello is a newer feature within Cloudflare and is rapidly becoming a new standard for security.
The basic concept is that the normal TLS Client Hello message towards the TLS Server is encrypted within an outer Client Hello message that references “cloudflare-ech.com”. The end result is that web filtering appliances see that URL in their logs based on the SNI of the outer Hello rather than the actual SNI they are navigating to.
This is great for end-user privacy, but less great for Enterprise network administrators who are trying to filter Internet traffic. The challenge is that while you can of course block “cloudflare-ech.com” you may inadvertently block legitimate sites that end users need to access.
ECH and DNS-over-HTTPS (DoH) are related but separate mechanisms. The use-application-dns.net canary is a Firefox mechanism for detecting networks where automatic DoH should not be enabled. It is not a universal ECH blocking control, and other browsers or explicitly configured encrypted DNS may behave differently. See Mozilla’s canary-domain documentation.
For managed endpoints, evaluate the browser’s documented enterprise policies and test the actual DNS and TLS behavior before applying changes across a network.
To check and see if a site is using ECH, Cloudflare has a built-in trace tool for all of their sites available at https://{{ domain }}/cdn-cgi/trace. My own site has ECH enabled and you can see the trace here: https://davissystem.net/cdn-cgi/trace - Specifically, the sni= section of the response is what you’re looking for.
Network-specific DNS policy #
The previous BIND example on this page combined a non-recursive listener with a response-policy zone. It has been withdrawn pending validation of the complete resolver configuration. A replacement needs to demonstrate the forwarding or recursion path, policy matching, and expected query responses; a standalone fragment is not enough.
Treat Firefox DoH policy, ECH behavior, and iCloud Private Relay policy as separate cases. Verify each against the relevant vendor documentation and the clients actually in use.