ECH bypasses the web filter in flow mode
The web filter blocks the category, and the site still opens in Chrome. On a FortiGate 7.4 with the policy in flow mode, the cause is usually ECH.
The ticket comes in like this: a site in a blocked category opens in Chrome. The web filter profile is right, the policy is right, and other sites in the same category are blocked. The problem is not the category. It is what the FortiGate can see of the connection.
1. The symptom
In the FortiGate logs, the site name does not appear. What appears is cloudflare-ech.com, with action allow, and sessions to Cloudflare IPs with no destination name. The bytes received show that the page loaded.
2. What ECH is
Encrypted Client Hello encrypts the site name at the start of the TLS connection. What stays in the clear is a generic provider name: for Cloudflare, cloudflare-ech.com. Chrome uses ECH on its own, with no user configuration, whenever the site announces support in DNS.
Without the real name, a web filter with certificate inspection has nothing to classify. And the generic name does not belong to any blocked category.
3. Why flow mode does not hold
FortiOS controls ECH in proxy mode since 7.4.4. In flow mode, only from 7.6.3. On a FortiGate 7.4 with the policy in flow, the options encrypted-client-hello block and ech-outer-sni in the inspection profile do not change the result. We measured the site opening with both configured.
Blocking cloudflare-ech.com is no way out either. Chrome does not retry without ECH, and every legitimate site behind Cloudflare with ECH would start failing.
4. Proxy mode on the policy
The most direct fix on 7.4 is to switch the policy to proxy mode.
config firewall policy
edit <id>
set inspection-mode proxy
next
end
A policy in proxy mode requires antivirus and web filter profiles with feature-set proxy. If the current profiles serve other flow policies, clone them and change only the clone. Proxy mode also costs more CPU: measure before and after.
After the change, sessions with cloudflare-ech.com turn into block. To test, close Chrome completely. Connections already open with ECH can keep the old behavior until they close.
5. The other two ways out
The first is to upgrade to 7.6.3 or later, where flow mode controls ECH.
The second is the strip-ech option in the DNS filter, which removes the ECH announcement from the DNS response. It only works if the client's DNS goes through the FortiGate. Before relying on it, check which DNS the client actually uses.
Rule of thumb: on a FortiGate 7.4 in flow mode, "the site opened in Chrome" is probably ECH. Look for cloudflare-ech.com in the logs before touching the categories.
Want to know what your web filter lets through?
request a demo