Pular para o conteúdo principal

DNS Over HTTPS (DoH): Implicações para a Filtragem de WiFi Público

Este guia de referência técnica explica como o DNS over HTTPS (DoH) ignora a filtragem de conteúdo tradicional na porta 53 em redes WiFi públicas. Ele fornece estratégias de mitigação acionáveis e neutras em relação a fornecedores para arquitetos de rede e gerentes de TI recuperarem visibilidade, imporem conformidade e protegerem o acesso de convidados em ambientes corporativos.

📖 6 min de leitura📝 1,392 palavras🔧 2 exemplos práticos3 questões práticas📚 8 definições principais

Ouça este guia

Ver transcrição do podcast
Welcome to the Purple Technical Briefing. I'm your host for today's session, and we're going to spend the next ten minutes on a topic that's quietly undermining content filtering policies across thousands of public WiFi deployments right now — DNS over HTTPS, or DoH. If you're running guest WiFi at a hotel, a retail estate, a stadium, or a public sector facility, and you haven't specifically addressed DoH in your network architecture, there's a reasonable chance your filtering policy has a significant gap in it. Let's work through exactly what that gap is, why it matters, and what you can do about it. Section one — context and the problem statement. Let's start with a quick recap of how traditional DNS filtering works, because understanding the bypass mechanism requires understanding what's being bypassed. When a guest device connects to your WiFi and tries to visit a website, the first thing it does is send a DNS query — essentially asking what's the IP address for this domain? That query travels over UDP or TCP on port 53. Your network infrastructure intercepts that query, routes it to your chosen DNS resolver, and that resolver checks the domain against your filtering policy. If the domain is on a blocklist — malware, adult content, gambling, whatever your acceptable use policy specifies — the resolver refuses to return the IP address, and the connection never happens. This is the foundation of every DNS-based content filtering deployment. It's cost-effective, it doesn't impact throughput, and it's been the standard approach for venue operators for the better part of a decade. DNS over HTTPS breaks this model. Here's how. DoH wraps DNS queries inside standard HTTPS traffic on port 443. From your network's perspective, it looks identical to any other encrypted web traffic. There's no way to distinguish a DoH query from a user loading a webpage, streaming a video, or accessing a banking app. The query goes directly to an external DoH resolver — Google's 8.8.8.8, Cloudflare's 1.1.1.1, or any number of others — over an encrypted channel that your DNS filter cannot inspect. The result? Your carefully configured DNS filtering policy is completely bypassed. The device resolves the domain directly, without your resolver ever seeing the query. Now, this isn't a deliberate attack by your guests. In most cases, it's entirely passive. Firefox has had DoH enabled by default since 2020. Chrome auto-upgrades DNS queries to DoH if the configured resolver supports it. Android 9 and above supports Private DNS with DNS over TLS by default. iOS has supported DoH configuration profiles since iOS 14. These are mainstream consumer devices doing what their manufacturers intended. Your guests aren't trying to bypass your filtering. Their devices are just doing it automatically. Section two — the technical deep dive. Let's get into the mechanics. There are two primary DoH implementation patterns you'll encounter in the field. The first is application-level DoH, where the application — typically a browser — maintains its own DoH configuration independently of the operating system's DNS settings. Firefox is the canonical example. When Firefox is installed and DoH is enabled, it ignores the system DNS resolver entirely and sends all its DNS queries to its configured DoH provider, which defaults to Cloudflare. Your DHCP-assigned DNS server is irrelevant. Your port 53 interception rules are irrelevant. Firefox is having a completely separate DNS conversation over port 443 that you cannot see. The second pattern is OS-level DoH, where the operating system itself handles the upgrade. Chrome and Windows 10 and 11 take this approach. They check whether the system's configured DNS resolver — the one assigned by your DHCP server — has a corresponding DoH endpoint. If it does, they automatically upgrade to DoH. This is called opportunistic DoH. If you're assigning 8.8.8.8 as your guest DNS server, Chrome will automatically use Google's DoH endpoint. If you're assigning 1.1.1.1, it'll use Cloudflare's DoH endpoint. The distinction matters for your mitigation strategy, which we'll get to shortly. There's a third vector worth mentioning: DNS over TLS, or DoT. This operates on port 853 and encrypts DNS queries using TLS rather than wrapping them in HTTPS. It's easier to block than DoH because it uses a dedicated port, but it's increasingly common on Android devices with Private DNS enabled. Your mitigation strategy needs to address both. Now let's talk about why this is a compliance and operational risk, not just a technical curiosity. Under GDPR, if your acceptable use policy states that you filter certain categories of content, and your technical controls don't actually enforce that policy, you have a gap between your stated data protection and content governance commitments and your actual technical implementation. That's a defensibility problem if you ever face a regulatory inquiry or an incident. Under the UK's Online Safety Act, venue operators providing public internet access have obligations around protecting users — particularly minors — from harmful content. If DoH is silently bypassing your content filtering, you may not be meeting those obligations. For venues that fall under PCI DSS scope — particularly those where payment card data flows over networks adjacent to guest WiFi — PCI DSS version 4.0 requires that you monitor and control DNS traffic as part of your network security controls. Unmonitored DoH traffic is a gap in that control framework. And from a pure security standpoint, DoH has been actively exploited by malware. Threat actors have used DoH as a command-and-control channel because it blends into normal HTTPS traffic. The GodLua backdoor used DoH for command-and-control communications. PsiXBot malware used Google's DoH service. If your security monitoring relies on DNS visibility to detect malicious activity, DoH blind spots are a real threat. Section three — implementation recommendations. Right, let's get practical. There are three primary mitigation strategies, and in most venue deployments, you'll want to implement all three in combination. Strategy one: block known DoH resolver endpoints at the firewall. This is your first line of defence and the most immediately deployable option. Maintain a blocklist of known DoH resolver IP addresses and domains — Google, Cloudflare, Quad9, NextDNS, AdGuard, and others — and deny outbound HTTPS traffic to those endpoints from your guest VLAN. The IETF and various security vendors publish and maintain these lists. The curl project on GitHub maintains a comprehensive list of known DoH resolvers that's a good starting point. This approach handles the majority of DoH traffic because, as research from Carnegie Mellon's Software Engineering Institute has shown, most DoH traffic goes to a small number of well-known resolvers. Users who know enough about DNS to configure a custom DoH resolver are a very small minority. The limitation of this approach is that it's a blocklist, and blocklists require maintenance. New DoH resolvers appear regularly. But combined with the other strategies, it provides solid coverage. Strategy two: TLS inspection on your next-generation firewall. Next-generation firewalls from vendors including Palo Alto Networks, Fortinet, Check Point, and Cisco Firepower support TLS inspection — also called SSL inspection or deep packet inspection. When enabled, the firewall acts as a man-in-the-middle for HTTPS traffic, decrypting it, inspecting the payload, and re-encrypting it before forwarding. This allows the firewall to identify DoH traffic even when it's going to an unknown resolver. Palo Alto's App-ID can identify DoH traffic specifically and apply policy to it. Fortinet's FortiGate has similar capability. The key configuration step is to ensure your guest VLAN traffic is routed through the inspection policy. The operational consideration here is certificate trust. For TLS inspection to work on guest devices, those devices need to trust your inspection certificate. On managed corporate devices, this is straightforward — you push the certificate via MDM. On unmanaged guest devices, it's more complex. The practical approach for guest WiFi is to use the captive portal acceptance flow to inform users that traffic may be inspected for content filtering purposes, and to rely on the combination of DoH resolver blocking and DNS interception as your primary controls, with TLS inspection as a secondary layer for higher-risk environments. Strategy three: force DNS interception and redirect. Configure your firewall or wireless controller to intercept all outbound DNS traffic on UDP and TCP port 53 and redirect it to your compliant DNS resolver. This doesn't stop DoH, but it ensures that any DNS traffic that does fall back to port 53 — because DoH failed or wasn't available — is captured and filtered. Combine this with blocking port 853 outbound from the guest VLAN to prevent DNS over TLS from bypassing your controls. For managed endpoints — corporate devices, staff devices — you have an additional option: Group Policy or MDM configuration to disable DoH at the browser and OS level. In Firefox, the network.trr.mode preference set to 5 disables DoH entirely. In Chrome, the disable-features equals DnsOverHttps flag achieves the same. Windows 10 and 11 have Group Policy settings to control DoH behaviour. This is the most reliable control for managed devices, but it's not applicable to unmanaged guest devices. Section four — implementation pitfalls. A few things that commonly go wrong in the field. The most frequent failure mode is incomplete port 53 interception. Teams configure their DNS filtering service correctly but forget to add the firewall rule that redirects all outbound port 53 traffic. Devices with hardcoded DNS settings — 8.8.8.8, 1.1.1.1 — bypass the filter entirely. Always verify this rule is in place and test it by configuring a test device with a hardcoded DNS server and confirming that filtered domains are still blocked. The second common failure is not accounting for IPv6. DNS queries over IPv6 are increasingly common, and many firewall rules are written for IPv4 only. Ensure your port 53 interception and DoH resolver blocklists cover both IPv4 and IPv6 addresses. Third: stale DoH resolver blocklists. If you're maintaining a static blocklist of DoH resolver IPs, it will become outdated. Automate the update process or use a DNS filtering service that maintains this list for you. Cloudflare Gateway, Cisco Umbrella, and similar enterprise DNS services include DoH bypass detection as a managed capability. Fourth: over-reliance on a single mitigation layer. DoH mitigation is a defence-in-depth problem. No single control is sufficient. Blocking known resolvers handles most cases. TLS inspection handles edge cases. DNS interception provides a safety net. Layer all three. Section five — rapid-fire questions. Does DoH mitigation break legitimate privacy tools? Potentially, yes. If a user is running a legitimate privacy-focused browser configuration, your DoH blocking will force them to use your DNS resolver. Your acceptable use policy should make clear that the venue's DNS resolver is used for content filtering purposes. This is standard practice and legally defensible. Can DoH be used to exfiltrate data from my network? Yes, and this is a real threat vector. DNS tunnelling over DoH has been demonstrated in the wild. Your next-generation firewall's DoH detection capability should include anomaly detection for unusually high query volumes or query patterns consistent with tunnelling. What about mobile apps that use DoH? This is the hardest case. Mobile apps that implement their own DoH stack — rather than using the OS DNS settings — are difficult to control without TLS inspection. Your best mitigation is the combination of known resolver blocking and TLS inspection. Is WPA3 relevant here? WPA3 improves over-the-air encryption and provides forward secrecy, which is excellent for guest privacy. But WPA3 doesn't address DoH — that's a layer 7 application protocol issue, not a layer 2 wireless security issue. They're complementary controls addressing different threat vectors. Section six — ROI and business impact. Let me close with the business case for addressing this properly. The cost of not addressing DoH is asymmetric. A single incident — a guest accessing illegal content on your network, a malware callback going undetected because your DNS monitoring had a blind spot, a regulatory inquiry about your content filtering compliance — can cost significantly more than the investment in proper mitigation. For a hotel group operating across 20 properties, deploying DoH mitigation typically involves a one-time configuration effort of two to four hours per property for the firewall rules and DNS interception configuration, plus an ongoing operational overhead of maintaining resolver blocklists — which is largely automated if you're using a managed DNS filtering service. The total investment is modest relative to the risk reduction. For retail chains operating under PCI DSS, the compliance benefit is directly quantifiable. Demonstrating that your network security controls include DoH mitigation reduces the risk of a PCI DSS audit finding and the associated remediation costs. For public sector venues and those operating under the Online Safety Act, documented DoH mitigation is part of your evidence base that you've taken reasonable technical steps to enforce your content filtering policy. The bottom line: DoH is not a future problem. It's a present one. Firefox, Chrome, Android, and iOS are all shipping DoH-capable configurations to your guests' devices right now. If you haven't audited your DNS filtering architecture for DoH bypass vectors in the last 12 months, that audit should be on your near-term roadmap. To summarise the key takeaways from today's briefing. One: DoH encrypts DNS queries inside HTTPS on port 443, making them invisible to traditional port 53 DNS filtering. This is happening by default on mainstream browsers and operating systems. Two: The three-layer mitigation strategy — block known DoH resolver IPs, implement TLS inspection on your next-generation firewall, and enforce port 53 interception — provides defence-in-depth coverage for both managed and unmanaged guest devices. Three: This is a compliance issue, not just a technical one. GDPR, the Online Safety Act, and PCI DSS all have implications for venues where DoH is silently bypassing content filtering policies. Four: The most common implementation failure is incomplete port 53 interception. Test it. Verify it. Don't assume it's working. Five: Managed DNS filtering services — Cloudflare Gateway, Cisco Umbrella, and similar — increasingly include DoH bypass detection as a managed capability, which reduces the operational overhead of maintaining static blocklists. That's a wrap for today's Purple Technical Briefing. If you're looking to audit your current DNS filtering architecture or implement DoH mitigation across your venue estate, the Purple platform provides the network intelligence and guest WiFi management layer to support that deployment. Thanks for listening, and we'll see you in the next session.

header_image.png

Resumo Executivo

Por quase uma década, a filtragem de DNS tradicional na porta 53 serviu como o principal mecanismo para impor políticas de conteúdo e mitigar ameaças de malware em redes WiFi públicas. No entanto, a adoção generalizada do DNS over HTTPS (DoH) por navegadores e sistemas operacionais populares interrompe fundamentalmente esse modelo. Ao encapsular consultas DNS dentro do tráfego HTTPS padrão na porta 443, o DoH torna essas consultas invisíveis às técnicas tradicionais de interceptação de rede.

Para gerentes de TI corporativos e arquitetos de rede que operam WiFi para convidados em Hospitality , Retail , estádios e locais do setor público, isso representa uma lacuna significativa de conformidade e segurança. Quando os dispositivos dos convidados ignoram silenciosamente os resolvedores de DNS designados do local, as políticas de uso aceitável cuidadosamente construídas falham, expondo a rede ao tráfego de malware de comando e controle (C2) e conteúdo inadequado. Este guia detalha a mecânica do vetor de bypass do DoH e fornece uma arquitetura em camadas, de defesa em profundidade, para recuperar a visibilidade da rede, garantir a conformidade regulatória e manter uma segurança robusta do Guest WiFi .

Análise Técnica Detalhada: O Mecanismo de Bypass do DoH

Para entender o vetor de ameaça do DoH, é preciso primeiro examinar a arquitetura básica da filtragem de DNS tradicional. Historicamente, quando um dispositivo de convidado se conectava a uma rede pública e solicitava um domínio, a consulta era transmitida em texto simples sobre UDP ou TCP na porta 53. Os administradores de rede podiam facilmente interceptar esse tráfego no firewall ou controlador sem fio, redirecionando-o para um resolvedor de DNS compatível que verificava o domínio solicitado em relação a feeds de inteligência de ameaças e políticas de categorização de conteúdo.

O DNS over HTTPS contorna todo esse plano de controle. Por design, o DoH criptografa a consulta DNS e a transmite para um resolvedor externo (como 1.1.1.1 da Cloudflare ou 8.8.8.8 do Google) usando criptografia TLS padrão na porta 443. Da perspectiva da infraestrutura de rede do local, uma consulta DoH é indistinguível de um usuário navegando em um site seguro ou transmitindo um vídeo.

Padrões de Implementação: DoH em Nível de Aplicativo vs. Nível de OS

O desafio para os administradores de rede é agravado pela forma como o DoH é implementado em diferentes plataformas. Existem dois padrões de implantação principais:

  1. DoH em Nível de Aplicativo: Neste modelo, o aplicativo mantém sua própria configuração de DoH independentemente do sistema operacional host. O Mozilla Firefox é o exemplo canônico; quando o DoH está ativado, o Firefox ignora os servidores DNS atribuídos via DHCP e roteia todas as consultas para seu provedor de DoH preferencial. As regras de interceptação da porta 53 do local são totalmente ignoradas.
  2. DoH em Nível de OS (Oportunista): Sistemas operacionais modernos, incluindo Windows 11 e Android, empregam DoH oportunista. O OS verifica se o resolvedor de DNS atribuído via DHCP tem um endpoint DoH conhecido. Se uma correspondência for encontrada, o OS atualiza automaticamente a conexão para DoH. Embora isso preserve a escolha do resolvedor pelo administrador, ainda desloca o tráfego para a porta 443, o que pode ignorar ferramentas de monitoramento legadas que esperam tráfego na porta 53.

Além disso, os administradores devem considerar o DNS over TLS (DoT), que opera na porta 853. Embora o DoT seja mais fácil de bloquear devido à sua porta dedicada, ele é o padrão padrão para o recurso "Private DNS" do Android e representa um risco de bypass idêntico se a porta 853 for deixada aberta na VLAN de convidados.

doh_vs_traditional_dns_comparison.png

Guia de Implementação: Uma Arquitetura de Defesa em Profundidade

Recuperar o controle sobre a resolução de DNS requer uma estratégia de mitigação multicamadas. Confiar em um único ponto de controle é insuficiente contra protocolos modernos e criptografados. Os arquitetos de rede devem implementar a seguinte arquitetura para proteger o acesso de convidados e garantir a conformidade com estruturas como PCI DSS e GDPR.

Camada 1: Bloquear Endpoints de Resolvedores DoH Conhecidos

A mitigação mais imediata e eficaz é bloquear o tráfego HTTPS de saída para resolvedores DoH públicos conhecidos na borda da rede. Embora o tráfego DoH se misture com o HTTPS padrão, os endereços IP de destino e domínios dos principais provedores de DoH são bem documentados.

Ao configurar o Next-Generation Firewall (NGFW) para descartar conexões para esses endpoints específicos (por exemplo, dns.google, cloudflare-dns.com), os administradores forçam a falha da resolução DoH do dispositivo cliente. Na maioria das implementações, quando o DoH falha, o cliente retornará graciosamente ao DNS tradicional e não criptografado na porta 53, que pode então ser interceptado e filtrado.

Nota de Implementação: Esta abordagem requer a manutenção de uma lista de bloqueio atualizada. Os fornecedores de firewall corporativos geralmente fornecem feeds de ameaças dinâmicos que atualizam automaticamente os endpoints DoH conhecidos, reduzindo significativamente a sobrecarga operacional.

Camada 2: Impor Interceptação e Redirecionamento da Porta 53

O bloqueio do DoH só é eficaz se o tráfego de fallback for gerenciado corretamente. A rede deve ser configurada para interceptar todo o tráfego UDP e TCP de saída na porta 53 originado da VLAN de convidados. Este tráfego deve ser redirecionado à força (via regras de NAT/redirecionamento de porta) para o resolvedor de DNS aprovado e compatível do local.

Esta etapa é crítica porque muitos dispositivos ou aplicativos maliciosos codificam servidores DNS públicos (por exemplo, 8.8.8.8) em sua pilha de rede, ignorando as configurações fornecidas pelo DHCP. Sem a interceptação forçada, esses dispositivos ignorarão com sucesso as políticas de filtragem do local, mesmo que o DoH seja bloqueado.

Camada 3: Bloquear a Porta 853 (DNS over TLS)

Para abordar o vetor de bypass do DoT, os administradores devem bloquear explicitamente o tráfego de saída na porta TCP 853 da rede de convidados. Semelhante à mitigação do DoH, o bloqueioking DoT força dispositivos Android e outros clientes compatíveis com DoT a retornar ao DNS padrão da porta 53.

doh_mitigation_architecture.png

Melhores Práticas e Considerações de Conformidade

A implementação da mitigação de DoH não é meramente um exercício técnico; é um requisito fundamental para manter a conformidade regulatória e aplicar políticas de uso aceitável.

  • Documentação de Políticas: Garanta que os termos e condições do captive portal do local declarem explicitamente que a filtragem de DNS está em vigor para fins de segurança e conformidade. Isso oferece defesa legal sob o GDPR e a Lei de Segurança Online do Reino Unido ao bloquear protocolos DNS criptografados.
  • Segmentação de Rede: O Guest WiFi deve ser estritamente isolado das redes corporativas e de pagamento usando VLANs e regras de firewall. Este é um requisito central do PCI DSS v4.0, que também exige monitoramento robusto do tráfego de rede — monitoramento que é impossível se o DoH for permitido para contornar os controles de segurança.
  • Monitoramento Contínuo: Utilize os recursos de relatórios do seu serviço de filtragem de DNS empresarial para monitorar volumes de consulta e identificar padrões anômalos. Uma queda repentina no tráfego da porta 53 de uma sub-rede específica geralmente indica que um novo resolvedor DoH, não bloqueado, está sendo utilizado por dispositivos clientes.
  • Integração com Análise: Ao implementar acesso seguro para convidados, considere como o fluxo de autenticação se integra com objetivos de negócios mais amplos. A utilização de um wi fi assistant para autenticação segura baseada em perfil garante que os usuários se conectem com segurança, ao mesmo tempo em que permite que o local utilize WiFi Analytics para entender o fluxo de pessoas e os tempos de permanência, de forma semelhante a como o Offline Maps Mode aprimora a experiência do visitante.

Solução de Problemas e Mitigação de Riscos

Ao implantar a mitigação de DoH, as equipes de rede frequentemente encontram modos de falha específicos. Antecipar esses problemas reduz o tempo de inatividade e o atrito com os convidados.

Regras de Interceptação Incompletas

A falha de implantação mais comum é a interceptação incompleta da porta 53. Os administradores podem configurar o servidor DHCP para distribuir os IPs de DNS corretos, mas falham em implementar as regras NAT do firewall necessárias para capturar solicitações de DNS codificadas. Mitigação: Sempre teste a implantação configurando um dispositivo cliente com um servidor DNS estático e externo (por exemplo, 9.9.9.9) e verificando se as solicitações ainda são roteadas com sucesso para o serviço de filtragem do local.

Falhas no IPv6

À medida que as redes fazem a transição para configurações dual-stack, as regras de firewall são frequentemente escritas exclusivamente para IPv4. Se as listas de bloqueio de DoH e as regras de interceptação da porta 53 não cobrirem o IPv6, os dispositivos modernos contornarão perfeitamente os controles de IPv4 usando sua pilha IPv6. Mitigação: Garanta que todas as listas de bloqueio de DoH, regras de redirecionamento da porta 53 e regras de descarte da porta 853 sejam aplicadas simetricamente em ambas as tabelas de roteamento IPv4 e IPv6.

Quebra de Aplicativos

O bloqueio agressivo de DoH pode ocasionalmente quebrar aplicativos móveis específicos que dependem exclusivamente de sua própria implementação de DoH e se recusam a retornar ao DNS padrão. Mitigação: Mantenha um processo de exceção documentado. Se um aplicativo crítico para os negócios falhar, utilize a inspeção TLS (se disponível no NGFW) para permitir seletivamente o tráfego DoH para o resolvedor desse aplicativo específico, em vez de abrir o DoH globalmente.

ROI e Impacto nos Negócios

O caso de negócios para uma mitigação robusta de DoH está enraizado na prevenção de riscos e na garantia de conformidade. Um único incidente — como um convidado acessando conteúdo ilegal resultando em uma investigação regulatória, ou um dispositivo IoT comprometido estabelecendo uma conexão C2 via DoH — pode incorrer em custos que excedem em muito o tempo de engenharia necessário para implementar os controles adequados.

Para uma empresa que opera em vários locais, a padronização da arquitetura de mitigação de DoH garante a aplicação consistente de políticas. Essa padronização reduz a carga operacional sobre o service desk de TI, pois os avisos de abuso dos ISPs caem para zero e o desempenho da rede é preservado pelo bloqueio de conteúdo inadequado de alta largura de banda. Em última análise, a segurança da camada DNS garante que o investimento do local em Guest WiFi permaneça um ativo seguro e em conformidade, em vez de um passivo.

Definições principais

DNS over HTTPS (DoH)

A protocol for performing remote Domain Name System (DNS) resolution via the HTTPS protocol, encrypting the data between the DoH client and the DoH-based DNS resolver.

When IT teams deploy content filtering, DoH acts as a bypass mechanism, hiding DNS queries within standard encrypted web traffic.

DNS over TLS (DoT)

A security protocol for encrypting and wrapping DNS queries and answers via the Transport Layer Security (TLS) protocol, operating on a dedicated port (853).

Often enabled by default on modern Android devices (Private DNS), DoT must be blocked at the firewall to ensure queries fall back to the venue's filtered DNS.

Opportunistic DoH

A behavior where an operating system or browser automatically upgrades standard DNS queries to DoH if it detects that the configured DNS resolver supports the encrypted protocol.

This feature, common in Windows 11 and Chrome, means that even if a venue assigns a standard DNS IP, the traffic may still shift to encrypted port 443, bypassing legacy monitoring.

Port 53 Interception

A network firewall configuration that captures all outbound traffic on UDP/TCP port 53 and forcibly redirects it to a designated DNS resolver, regardless of the destination IP requested by the client.

Essential for capturing DNS queries from devices with hardcoded DNS settings or those that have fallen back from a failed DoH connection.

Next-Generation Firewall (NGFW)

A network security device that provides capabilities beyond a traditional, stateful firewall, including deep packet inspection, application awareness, and TLS/SSL decryption.

NGFWs are critical for DoH mitigation as they can identify and block DoH traffic based on application signatures rather than just IP addresses.

Fallback Behavior

The programmed response of a client device when its preferred encrypted DNS protocol (DoH or DoT) fails to connect, typically resulting in the device reverting to standard, unencrypted DNS.

Network architects rely on this behavior; by intentionally breaking DoH/DoT connections, they force the device to use the interceptable port 53.

Command-and-Control (C2)

The infrastructure used by attackers to communicate with compromised devices (malware/botnets) within a target network.

Modern malware increasingly uses DoH to hide C2 communications from enterprise network monitors, making DoH mitigation a critical security requirement.

Captive Portal

A web page that the user of a public-access network is obliged to view and interact with before access is granted.

The captive portal is the legally appropriate location to inform users that their DNS traffic is being filtered and that encrypted DNS protocols are blocked.

Exemplos práticos

A 400-room hotel recently deployed a cloud-based DNS filtering service to comply with brand standards regarding family-friendly content. However, the IT manager notices that a significant portion of guest traffic is still reaching adult content sites, and the DNS filtering dashboard shows lower-than-expected query volumes. How should the network architect remediate this bypass?

  1. Audit Firewall Rules: The architect must first verify that outbound TCP/UDP port 53 is being intercepted and NAT-redirected to the cloud DNS service.
  2. Block DoH Resolvers: Implement an NGFW blocklist to drop outbound HTTPS (port 443) traffic destined for known DoH providers (e.g., Cloudflare, Google, Quad9).
  3. Block DoT: Add a firewall rule to drop all outbound TCP port 853 traffic to prevent Android Private DNS bypass.
  4. Verify IPv6: Ensure all the above rules are applied to both IPv4 and IPv6 traffic.
Comentário do examinador: This scenario highlights the classic symptom of DoH/DoT bypass: low query volumes on the approved resolver combined with policy failures. The solution correctly identifies that simply providing a DNS server via DHCP is insufficient; network-level enforcement is required to handle hardcoded DNS and encrypted protocols.

A retail chain with 150 locations needs to implement DNS filtering to block malware and phishing on their guest WiFi. They use basic branch firewalls without advanced TLS inspection capabilities. How can they effectively mitigate DoH without upgrading their hardware?

Without TLS inspection, the chain must rely on robust routing and blocklists.

  1. Deploy a dynamic DoH IP/Domain blocklist on the branch firewalls, configured to update automatically via an external threat feed.
  2. Implement strict port 53 NAT redirection to the enterprise DNS filter.
  3. Block port 853 entirely.
  4. Update the captive portal Terms of Service to explicitly state that encrypted DNS protocols are blocked to enforce network security policies.
Comentário do examinador: This demonstrates a pragmatic approach for environments with hardware constraints. While TLS inspection offers granular control, a well-maintained blocklist combined with forced port 53 redirection provides a highly effective defence-in-depth strategy that scales well across multiple branch locations.

Questões práticas

Q1. A stadium network engineer configures the DHCP server to provide the IP address of their secure, filtered DNS service to all guest devices. However, testing reveals that devices with manually configured DNS settings (e.g., 8.8.8.8) are successfully bypassing the filter. What is the most appropriate architectural fix?

Dica: Consider the difference between suggesting a route and enforcing a route at the network edge.

Ver resposta modelo

The engineer must implement a NAT port forwarding rule on the stadium's firewall. This rule should intercept all outbound UDP and TCP traffic on port 53 originating from the guest VLAN and forcibly translate the destination IP to the secure DNS service's IP address. This ensures that regardless of the client's local configuration, the traffic is routed through the filtering policy.

Q2. Following the implementation of a strict DoH blocklist, the IT helpdesk at a conference centre receives reports that a specific, bespoke event management app is failing to load for attendees. Packet capture shows the app is attempting to use its own hardcoded DoH resolver, which is being blocked, and the app refuses to fall back to standard DNS. How should this be resolved?

Dica: Balance security policy with business continuity. Can the firewall distinguish between general DoH traffic and traffic to a specific, approved endpoint?

Ver resposta modelo

The administrator should create an exception in the NGFW policy. Rather than disabling the DoH blocklist globally, they should identify the specific IP address or domain of the DoH resolver used by the event management app and whitelist it. If the firewall supports application-layer (Layer 7) inspection, a more robust solution is to create a policy that permits DoH traffic only if the destination matches the approved application's infrastructure, ensuring general DoH bypass attempts remain blocked.

Q3. A public sector organisation is auditing its guest WiFi compliance. They have successfully blocked port 853 (DoT) and implemented port 53 interception. However, they lack the budget for an NGFW with advanced TLS inspection or dynamic DoH blocklists. What is the most effective remaining strategy to mitigate DoH?

Dica: If dynamic lists aren't available, how can you address the vast majority of opportunistic DoH traffic?

Ver resposta modelo

The organisation should implement a static blocklist on their existing firewall, targeting the IP addresses and domains of the most common public DoH providers (e.g., Cloudflare, Google, Quad9). While this requires manual maintenance and won't catch obscure DoH resolvers, research shows that the vast majority of DoH traffic defaults to a handful of major providers. This provides a highly effective '80/20' solution within their budget constraints.