Securing guest wireless networks·续
To get started, go to DNS Locations in the Zero Trust dashboard. For detailed, step-by-step instructions, refer to the DNS Locations guide. When using IPv4 or IPv6 endpoint filtering and location matching, you can define a network and subnet mask in CIDR notation to represent your location's source IP addresses. For example:
- If all your wireless networks share a public IP address within the same subnet, you can apply a policy to all locations at once using a single DNS location object.
- To assign unique policies to specific locations, use a host address ending in /32 to represent each location individually.
Creating DNS policies
To get started, go to firewall policies and select DNS in the Zero Trust dashboard. For detailed, step-by-step instructions, refer to the DNS Policies guide.
To keep your policies organized, we recommend using meaningful names that clearly indicate their purpose. For instance, a policy named Guest-Security-Block conveys:
- Guests: Who the policy applies to.
- Security: The type of content being evaluated.
- Block: The action being taken.
Cloudflare provides a range of managed categories which you can use to filter a wide range of different types of threats. For example, adding into the DNS policy the security category Malware will prevent a connected device from making a DNS request to any site that Cloudflare has tagged as being known as part of a malware campaign or might be hosting malware. As well as security categories, we also have content categories which identify sites such as Cryptocurrency, P2P sharing sites or adult themed sites. Cloudflare also manages a list of applications, so you can filter access to public cloud storage or file sharing sites.
Cloudflare also allows custom feeds where you can either subscribe to another vendor to provide a list of sites to filter, or you can use some of the built in government based threat feeds. This allows you to be very selective about what sites you wish to filter.
For devices making requests from known DNS locations, it's also possible to add these to the policy. So you can create different policies for different guest Wi-Fi locations. This can help with situations where local laws require you to prevent access to a specific type of Internet site.
Policies can be made up of multiple rules, so a single policy can prevent access to high risk websites as well as inappropriate content.
Recommended policies
Cloudflare has several additional recommended DNS policies that can be found in the Secure your Internet traffic implementation guide. These policies are designed to enhance your organization's overall security and should also be factored in when setting up policies for your internal production web traffic.
Visibility into Guest DNS Internet Activity
With DNS traffic now routed through Cloudflare and your wireless networks secured, you can gain detailed visibility into your guests' Internet activity using logs and advanced logging tools. Every DNS request is logged in Cloudflare and our dashboard provides a simple search interface. These logs help you understand how your policies are applied and detect trends or patterns in guest Internet usage, providing actionable insights to fine-tune your security configurations.
For advanced telemetry and seamless data management, consider enabling Logpush in your Cloudflare dashboard. Sending these logs to an external source, most commonly a SIEM platform, brings the following benefits:
- Centralized Analysis: Consolidate logs from multiple Cloudflare services with other organizational data in your SIEM for comprehensive visibility.
- Enhanced Threat Detection: Correlate DNS activity with other security events to detect patterns of malicious behavior more effectively.
- Compliance and Audit Readiness: Store DNS logs for long-term retention to meet regulatory compliance requirements or support incident audits.
- Real-Time Alerts: Leverage SIEM integration to trigger automated alerts and responses based on suspicious DNS activity.
- Operational Insights: Gain a deeper understanding of guest browsing behavior to identify performance bottlenecks or optimize content filtering policies.
By leveraging logs, Logpush, and SIEM integrations, you not only enhance visibility into guest Internet activity but also strengthen your organization's overall security posture.
Going beyond DNS filtering
Up to this point all methods mentioned have revolved around DNS, mainly due to the fact most traffic over guest Wi-Fi networks will utilize DNS and these configurations do not require any agents or certificates installed on devices, for this reason DNS centric protections are always the recommended starting point when it comes to securing guest Wi-Fi networks. Unfortunately there are ways to bypass DNS based security enforcement like:
- Changing your dns resolver manually
- Using IP address to reach sites (potentially saving IP to fully qualified domain name mappings via host file)
- Using non sanctioned VPN clients
For these reasons you should also consider applying security in layers and add network centric enforcement to complement the protections provided via DNS.

Figure 4: This diagram shows how to connect guest networks to Cloudflare and the high level traffic flow to reach Internet resources.
To provide network level filtering, Cloudflare must be in the traffic path for more than just the DNS request. This is achieved by routing Internet-bound traffic over an IPsec ↗︎ tunnel to Cloudflare. Cloudflare's Cloudflare WAN (formerly Magic WAN) service allows third-party devices to establish IPsec or GRE tunnels to the Cloudflare network. It is also possible to just deploy our Cloudflare One Appliance, a pre-configured lightweight network appliance that automatically creates the tunnel back to Cloudflare and can be managed remotely. Once traffic reaches Cloudflare multiple security controls can be overlaid such as:
- Cloud based network firewall (Cloudflare Network Firewall)
- Secure web gateway (Gateway)
Below is the high level traffic flow that correlates to the above diagram:
- Internet destined traffic will be routed to cloudflare from connected guest networks, this can be easily done with a policy based route. In most guest Wi-Fi setups devices will only be expected to generate internet bound traffic so in most cases a Policy based route referencing ANY as the destination will be sufficient. Ex Source 192.168.53.0/24 to Destination ANY next hop Cloudflare IPsec tunnel.
- Once traffic reaches the cloudflare edge it will first be inspected by Cloudflare Network Firewall. Cloudflare Network Firewall can be used to create network and transport layer blocks which would allow admins to restrict access to certain destination IP's or ports, a common policy could be blocking all DNS traffic not directed towards cloudflare DNS resolvers. Custom lists can be used to import existing lists customers may already have. IDS can be enabled to monitor if any guest users are attempting to launch known exploits from your Guest network. Managed threat lists allow you to use cloudflare's auto updated threat intel to block known threats like known malware repositories or botnets.
- Traffic is then forwarded to Cloudflare gateway. At gateway network based policies can be created using the same Content categories and Security risks mentioned earlier within DNS based policies, the benefit is when these filters are applied at the network level, even if a user bypasses DNS these policies can still be applied providing multi tiered enforcement. It would be recommended to mirror DNS based rules in accordance with your organization's acceptable use policy. Cloudflare Gateway also acts as a secure outbound proxy and as such can SNAT private address to Internet routable public addresses, by default rfc 1918 addresses will automatically be SNAT to Shared Cloudflare egress ip's. This removes the need for managing PAT directly from your edge device and also provides a layer of privacy as traffic will source from Cloudflare owned ip's when browsing Internet sites. Dedicated Egress ip's unique to your account can also be provided and egress ip selection controlled via policy.
- Traffic is now routed to the final Internet destination, return traffic will be routed back through Cloudflare edge and returned to the corresponding IPsec tunnel.
Summary
By following these strategies and leveraging Cloudflare Zero Trust, organizations can offer a secure, reliable, and policy-compliant wireless experience for their guests. These measures not only safeguard networks but also enhance visibility and enable proactive threat mitigation.
If you are interested in learning more about Gateway, or other aspects of the Cloudflare SASE platform, refer to our Reference Architecture library or our Developer docs to get started.
Related Resources
- Evolving to a SASE architecture with Cloudflare
- Cloudflare One Appliance deployment options · Cloudflare Reference Architecture docs
- DNS policies - Cloudflare Zero Trust
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/reference-architecture/design-guides/securing-guest-wireless-networks/#page","headline":"Securing guest wireless networks","description":"This guide is designed for IT or security professionals who are looking at Cloudflare to help secure their guest wireless networks.","url":"https://developers.cloudflare.com/reference-architecture/design-guides/securing-guest-wireless-networks/","inLanguage":"en","image":"https://developers.cloudflare.com/reference-architecture/design-guides/securing-guest-wireless-networks/og.png?v=92dfe60c47eeed3f","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["IPv6"]}
description: Learn how to streamline WAF deployment across different zones and applications. title: Streamlined WAF deployment across zones and applications image: https://developers.cloudflare.com/reference-architecture/design-guides/streamlined-waf-deployment-across-zones-and-applications/og.png?v=d800fa580d0c7e69
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/reference-architecture/llms.txt
Use this file to discover all available pages before exploring further.
