Decision guideDNS filtering limits
VPNs and DNS filtering: what a tunnel does to your policy
You will be able to decide, network by network, whether DNS-layer VPN blocking is enough or whether you also need firewall protocol rules or device control. You will see where a resolver can stop a VPN, where it cannot, and how to keep corporate tunnels working for business guests while meeting a safeguarding duty.
Watch the explainer
Use DNS-layer VPN blocking when the network serves unmanaged devices and you need content filtering. Use firewall rules for IKEv2 (RFC 7296) and OpenVPN as well when you carry a duty of care. A full-tunnel VPN carries DNS inside encrypted traffic. Any resolver-based filter, Purple Shield included, sees only the tunnel, never the queries inside it.
What is the rule of thumb for VPNs and DNS filtering?
Start with placement. Protective DNS acts at one point: the moment a device asks a resolver to turn a name into an address. On your network, DHCP (the service that hands out network settings) gives each device a resolver, and Shield answers. If a name is malicious or outside your content policy, Shield returns a block instead of an address.
A VPN client moves that point. A full-tunnel VPN wraps every packet, DNS included, in encryption and sends it to the provider's server. Queries then resolve at the provider's resolver, beyond your network. Your firewall sees one encrypted flow to one IP address. A split-tunnel VPN sends only some traffic through the tunnel, so some queries may still reach you.
That leaves a resolver one moment of control: before the tunnel forms. Most VPN apps look up a server name or an API address at launch. Block that lookup and the tunnel never starts.
The rule of thumb follows from placement:
- Unmanaged devices, no duty of care: filter at DNS and block the VPN and proxy category where your content policy calls for it. Leave corporate tunnels alone.
- Unmanaged devices, duty of care: block at DNS and add firewall rules for common VPN protocols, with an allow-list for legitimate gateways.
- Managed devices: control the device as well, because its settings travel with it.
This is a limit of where the filter sits, not of one product. Cisco Umbrella and Cloudflare Gateway resolvers face the same limit: a query inside someone else's tunnel never reaches them. For the wider set of gaps, see our guide to DNS filtering limits.
Which VPN control fits your network?
Two questions decide most cases. Do you manage the devices on the network? Do you carry a duty to restrict what people reach? A third question protects your guests: do business visitors rely on corporate VPNs here?
Answer per network, not per site. One hotel can run three SSIDs (network names) with three different answers. Each SSID usually maps to a VLAN, a virtual LAN that keeps its traffic and policy separate.
Which VPN control fits this network?
See every path as a list
- Yes: Must policy follow the device off site?
- Yes: Control the device, filter the network Use MDM to pin DNS and block unapproved VPN apps. Keep Shield on every network. Mobile data and WiFi filtering
- No: Block at DNS and at the firewall Block the VPN and proxy category in Shield, block common VPN ports and allow-list sanctioned gateways. QUIC and DNS filtering
- No: Do you carry a safeguarding or content duty?
- Yes: Do business visitors need corporate VPNs here?
- Yes: Split the network by VLAN Safeguarded VLAN: VPN category block plus firewall rules. Business VLAN: threat policy, tunnels allowed. Forcing DNS through your filter
- No: Block at DNS and at the firewall Block the VPN and proxy category in Shield, block common VPN ports and allow-list sanctioned gateways. QUIC and DNS filtering
- No: Do guests rely on corporate VPNs?
- Yes: Filter at DNS and let tunnels pass Run Shield threat and content policy. Inside a corporate tunnel, the employer's policy applies. How Shield works
- No: Block VPN discovery at DNS Block the VPN and proxy category in Shield so most consumer VPN apps cannot find a server. How Shield works
- Yes: Do business visitors need corporate VPNs here?
If one SSID lands on two outcomes, split it. Shield applies a policy per network and VLAN, so a split costs you a VLAN, not a second filter.
Which scenario is your network in?
The table maps common venue networks to a recommendation. Each row names the condition the recommendation depends on.
| Scenario | Recommendation | Why |
|---|---|---|
| Hotel Guest WiFi with business travelers | Shield threat and content policy; tunnels allowed | Guests' employers own the tunnel; blocking it creates front-desk complaints |
| Bar, pub or family venue | Shield with the VPN and proxy category blocked | Unmanaged phones, a content promise and no firewall team |
| Retail shopper WiFi | Shield with the VPN and proxy category blocked | Short dwell time and unmanaged phones; DNS controls need no hardware |
| Stadium or event fan WiFi | Shield threat policy; no protocol blocks | High density; press and exhibitors run their own tunnels |
| School or college student network | Shield category block plus firewall protocol rules | K-12 and higher education safety criteria name VPNs as circumvention to manage |
| Student Housing | Shield threat policy; tunnels allowed | Adult residents treat the network as home broadband |
| Hospital patient and visitor WiFi | Shield content policy with VPN category blocked; staff on a separate VLAN | Patient networks need content controls; staff tunnels stay on their own VLAN |
| Airport passenger or coworking member WiFi | Shield threat policy per VLAN; tunnels allowed | Passengers and members rely on corporate VPNs |
| Staff WiFi with managed laptops | Shield plus firewall allow-list and MDM | You own the device, so policy can follow it |
The two worked examples below are illustrative designs built from common venue patterns. They are not named customer cases.
Worked example: a 200-room hotel with a conference wing
Situation. A previous contractor blocked UDP ports 500 and 4500 on the single guest network to stop VPN use in the bar. Business guests' corporate VPNs then failed, and the front desk logged the complaints. The hotel also promises a family-friendly network in its public areas.
What to do. Split Guest WiFi into a public-area VLAN and a rooms-and-conference VLAN. Remove the firewall rule. In Shield, block the VPN and proxy category on the public-area VLAN only. Run threat protection on both.
Measurable outcome. Sign off on two tests and one number. First, the corporate VPN clients used by your top 10 corporate accounts connect on the rooms VLAN. Second, the consumer VPN apps you test fail to reach their servers in the bar. Then watch VPN complaints at the front desk, with a target of zero in month one.
Worked example: a community college
Situation. A college runs around 1,500 student devices on bring-your-own-device (BYOD) WiFi and staff on managed laptops. CIPA compliance requires appropriate filtering and monitoring for students under 18. The appropriate filtering criteria list circumvention, including VPNs, proxies and DNS over HTTPS, as something filtering should address.
What to do. On the student VLAN, block the VPN and proxy category in Shield. At the firewall, block IKEv2, OpenVPN and DNS over TLS ports on that VLAN only. On the staff VLAN, run threat policy, allow-list the college's own VPN gateway and use MDM to pin DNS on laptops.
Measurable outcome. The safety lead gets a weekly count of blocked circumvention attempts on the student VLAN. The staff VPN connects from every staff network. Both are evidence an auditor can read.
The same pattern runs at scale across hospitality and travel networks.
How far does DNS-layer VPN blocking reach?
DNS-layer blocking works because most consumer VPN apps need DNS before they can tunnel. At launch, an app resolves its provider's server names, login API or configuration endpoint. When Shield refuses those names, the app cannot find a server. The tunnel never forms.
The same category block catches more than apps. Browser proxy extensions, web-based proxy sites and anonymizer services all depend on names your resolver sees. Public DNS over HTTPS (DoH) resolvers are names too, so you can block the well-known ones. DoH is defined in RFC 8484.
A guest device's VPN app looks up its server through Shield and is blocked, unless it skips the lookup and tunnels straight to the provider's resolver.
Connections
- Guest device to VPN app launches
- VPN app launches to Shield resolver (DNS lookup)
- Shield resolver to Tunnel never forms (Blocked)
- VPN app launches to Hardcoded IP or obfuscation (Lookup skipped)
- Hardcoded IP or obfuscation to Provider's resolver (Encrypted tunnel)
What a DNS-layer block stops
- Consumer VPN apps that look up their servers at launch
- Proxy sites and browser proxy extensions
- Known public DoH endpoints, when your policy blocks them
What it cannot stop
- Apps that connect to hardcoded IP addresses and skip DNS
- Obfuscated services that disguise a tunnel as ordinary HTTPS on port 443
- A tunnel that is already running and reconnects by address
- Devices that switch to cellular data, which your network never sees (cellular data and WiFi filtering)
There is a second dependency: queries must reach Shield at all. A device with a hardcoded resolver such as 8.8.8.8 sends DNS elsewhere before any VPN appears. Close that path with a port 53 redirect, covered in forcing DNS through your filter. Check IPv6 too, because a device can query an IPv6 resolver you never configured. Our guide to IPv6 and DNS filtering gaps covers the fix.
Why Shield fits this lane
The method is common to protective DNS services, Cisco Umbrella and Cloudflare Gateway included. What differs is threat-intelligence speed, how policy maps to your networks and what happens in an outage.
On each count, Shield gives you a specific answer:
- Speed. Shield updates threat intelligence continuously to block malicious domains.
- Policy mapping. You set a policy per network and VLAN, so the bar and the conference wing can differ. Shield runs standalone or on Purple Access.
- Outage behavior. Shield fails closed, so an outage never leaves a network unfiltered. A filter that fails open would hand every device an unfiltered path.
When do you need firewall and device controls?
Firewall protocol rules stop tunnels that never touch DNS. They match well-known VPN ports rather than names. The common targets are:
- IKEv2 and IPsec on UDP 500, with NAT traversal on UDP 4500 (RFC 7296, RFC 3948)
- OpenVPN on its IANA-registered port, UDP 1194
- DNS over TLS on TCP 853 (RFC 7858), which carries DNS past your resolver
Port rules have two limits. First, determined services move to TCP 443, where a tunnel looks like HTTPS. WireGuard runs on whatever UDP port its operator chooses. Separating those from web traffic needs deep packet inspection, which means an inline appliance.
Second, port rules cannot tell a consumer VPN from a corporate one. Block IKEv2 and you block the visiting sales director's laptop too.
Device control works only where you own the device. Mobile device management (MDM) can block unapproved VPN apps, push a managed VPN profile and pin DNS settings. Those settings travel with the laptop to a hotel or a home network.
For guest, shopper, fan or BYOD devices, MDM is not available to you. The network is your only lever, which is why DNS carries most of the load on public networks.
What does each option cost to run?
Cost here means effort, ownership and what breaks, not license fees. The table compares the four approaches venues use.
| Option | Setup effort | Ongoing effort | What it can break | New hardware |
|---|---|---|---|---|
| DNS-layer VPN category block (Shield) | One policy change per network or VLAN | Low: categories are maintained in the cloud service | A sanctioned service miscategorized; allow-list it | None |
| Firewall protocol rules | Rules per VLAN plus a gateway allow-list | Medium: the allow-list changes as partners change VPNs | Corporate IKEv2 or OpenVPN not on the allow-list | None on an existing firewall |
| Device control (MDM) | Profiles per device platform | Medium: enrollment for every joiner, removal for every leaver | Personal apps on work devices | None, managed devices only |
| Deep packet inspection | Appliance sizing, placement and certificates | High: signatures, capacity and TLS exceptions | Throughput and privacy expectations | Yes, an inline appliance |
Shield is quoted to your estate, standalone or on Purple Access, with a 30-day free trial. There is no appliance to buy, because Shield is a DNS change on the network you already run. Filtering unwanted domains also gives bandwidth back by reducing unwanted network traffic and unnecessary DNS queries.
The effort curve climbs steeply beyond DNS. Firewall rules add an allow-list someone must own. MDM adds lifecycle work for every device. Deep packet inspection adds hardware, capacity planning and TLS exceptions. Spend that effort only where a duty demands it.
What changes the answer for your network?
Who owns the device
Ownership is the biggest switch. If you own the device, control it at the endpoint and filter the network. If you do not, the network is all you have, so filter at DNS.
Whether you carry a duty
A school, a children's venue or a family-friendly promise moves you from "filter at DNS" to "filter at DNS and the firewall". Without a duty, protocol blocks cost more goodwill than they save.
Who else shares the network
Business travelers, delegates, press and contractors bring corporate VPNs. If they share a network with a safeguarded group, split the VLAN rather than weaken either policy.
What the platform lets networks opt out of
Some tunnels respect a network signal. Apple's guidance for iCloud Private Relay tells operators they can block it by making its DNS names fail to resolve. The device then tells the person that this network blocks Private Relay. A DNS policy handles that cleanly.
Protocol shifts
HTTP/3 runs over QUIC on UDP 443, which changes how some traffic looks to a firewall. It does not move DNS by itself. Our guide to QUIC and DNS filtering explains what to check.
Cellular data
On any public network, a visitor can switch to cellular data and leave your policy entirely. No WiFi control closes that gap, so set expectations in your acceptable use policy.
What should your default VPN and DNS filtering policy be?
Default to Shield on every network. Block the VPN and proxy category where your content policy requires it. Let corporate tunnels pass where business visitors connect. Add firewall rules only on networks with a safeguarding duty, and device control only where you own the device.
Which VPN control should be your default?
Purple Shield DNS-layer policy
Fits when
- Devices are unmanaged, such as guest, shopper or fan cell phones
- You need threat protection and content filtering with no new hardware
- Different networks or VLANs need different policies
- Business visitors must keep their corporate VPNs
Not when
- Traffic is already inside a tunnel that skipped DNS
- Devices leave your network for mobile data
Firewall protocol rules
Fits when
- You carry a safeguarding duty, such as a school or children's venue
- You can maintain an allow-list of legitimate VPN gateways
Not when
- Business guests share the network and use corporate VPNs
- No one owns firewall changes week to week
Device control (MDM)
Fits when
- You manage the device
- Policy must follow the device off site
Not when
- Devices are personally owned, such as guest or BYOD cell phones
Our recommendation: Default to Purple Shield on every network, with the VPN and proxy category blocked where your content policy requires it. Add firewall rules only where a safeguarding duty applies, and MDM only where you own the device.
See how Shield works for the setup steps. For the wider security picture, read our enterprise WiFi security guide.
Key terms
- Full-tunnel VPN
- A VPN configuration that routes every packet, DNS included, through an encrypted tunnel to the provider's server, commonly built on IKEv2/IPsec (RFC 7296) or OpenVPN. Name resolution happens at the provider's resolver, not the local network's. This is the core limit of DNS filtering: your firewall sees one encrypted flow to one IP address, so Shield can only act before the tunnel forms.
- Split-tunnel VPN
- A VPN configuration that sends only selected traffic through the encrypted tunnel and lets the rest, potentially including some DNS queries, use the local network path. Some queries from a split-tunnel device may still reach your resolver, so DNS policy keeps partial reach over those devices.
- Protective DNS
- A recursive resolver service that checks each name lookup against threat and content categories and returns a block response instead of an address for disallowed names. It acts on standard DNS queries delivered via DHCP-assigned resolver settings. Shield, Cisco Umbrella and Cloudflare Gateway all work this way, so all three meet the same limit with traffic inside someone else's tunnel.
- IKEv2
- Internet Key Exchange Protocol version 2, specified in RFC 7296, which negotiates IPsec security associations over UDP 500. NAT traversal moves the encapsulated traffic to UDP 4500, specified in RFC 3948. Blocking UDP 500 and 4500 stops consumer and corporate IKEv2 VPNs alike, which is why protocol rules belong only on safeguarded VLANs with a gateway allow-list.
- OpenVPN
- An open-source TLS-based VPN protocol whose IANA-registered port is UDP 1194, though operators can run it on other ports including TCP 443. A common firewall target on student or children's networks, alongside IKEv2 and DNS over TLS ports.
- DNS over HTTPS (DoH)
- A protocol defined in RFC 8484 that carries DNS queries and responses inside HTTPS, so they travel encrypted to a chosen resolver rather than the network's assigned one. Public DoH resolvers are reached by name, so you can block the well-known endpoints at DNS. The UK Safer Internet Centre lists DoH as circumvention filtering should address.
- DNS over TLS (DoT)
- A protocol defined in RFC 7858 that carries DNS over a TLS connection on TCP port 853, bypassing the local resolver. Blocking TCP 853 at the firewall keeps DNS flowing to Shield on networks where a safeguarding duty applies.
- VLAN
- A virtual LAN, defined by IEEE 802.1Q tagging, that separates traffic and policy on shared physical infrastructure. Each SSID usually maps to its own VLAN. Splitting a VLAN lets a bar block VPNs while the conference wing allows corporate tunnels, at the cost of a VLAN rather than a second filter.
- Deep packet inspection (DPI)
- Inline traffic analysis that examines packet payloads and flow behavior, beyond ports and names, to classify applications such as tunnels disguised as HTTPS on TCP 443 or WireGuard on arbitrary UDP ports. DPI is the only way to catch obfuscated tunnels, but it needs an inline appliance, certificates, and capacity planning, so reserve it for a clear duty.
- Mobile device management (MDM)
- Endpoint management that pushes configuration profiles to managed devices, including pinned DNS settings, managed VPN profiles, and restrictions on unapproved VPN apps. MDM works only on devices you own, such as staff laptops, and its settings follow the device to a hotel or home network.
- Keeping Children Safe in Education (KCSIE)
- Statutory safeguarding guidance in England requiring schools and colleges to have appropriate filtering and monitoring for learners under 18, with the UK Safer Internet Centre's criteria defining what appropriate filtering covers, including circumvention. KCSIE moves a college from DNS filtering alone to DNS plus firewall protocol rules on the student VLAN, with reporting for the designated safeguarding lead.
- iCloud Private Relay
- An Apple service that relays Safari and DNS traffic through two separate relays. Apple's network guidance states operators can block it by making its DNS names fail to resolve, and the device then tells the person the network blocks it. A Shield DNS policy can apply this block cleanly on networks that need it and leave it in place on staff or resident networks.
Worked examples
A 200-room hotel with a conference wing had a contractor block UDP ports 500 and 4500 on its single guest network to stop VPN use in the bar. Business guests' corporate VPNs failed and front-desk complaints followed. The hotel also promises a family-friendly network in public areas.
Split Guest WiFi into a public-area VLAN and a rooms-and-conference VLAN, then remove the firewall rule. In Shield, block the VPN and proxy category on the public-area VLAN only, and run threat protection on both. Port blocks cannot tell a consumer VPN from a corporate one, while the DNS category block targets consumer VPN and anonymizer services. Sign off on two tests: the corporate VPN clients of your top 10 corporate accounts connect on the rooms VLAN, and the consumer VPN apps you test fail to reach their servers in the bar. Then track front-desk VPN complaints, targeting zero in month one.
A community college runs around 1,500 student devices on BYOD WiFi and staff on managed laptops. The ADA and Section 508 requires appropriate filtering and monitoring for learners under 18, and the UK Safer Internet Centre criteria name VPNs, proxies and DNS over HTTPS as circumvention to address.
On the student VLAN, block the VPN and proxy category in Shield, then block IKEv2, OpenVPN and DNS over TLS ports at the firewall on that VLAN only. Students' devices are unmanaged, so the network is the only lever, and the duty justifies protocol rules. On the staff VLAN, run threat policy, allow-list the college's own VPN gateway and use MDM to pin DNS on laptops, because the college owns those devices. The designated safety lead receives a weekly count of blocked circumvention attempts on the student VLAN, and the staff VPN connects from every staff network. Both give an inspector readable evidence.
Frequently asked questions
Can a DNS filter see traffic inside a VPN?
No. A full-tunnel VPN encrypts DNS along with everything else and resolves it at the provider's resolver. Shield, Cisco Umbrella, and Cloudflare Gateway all face this limit at the resolver. What a DNS filter can do is block the lookups a VPN app makes before the tunnel forms. Shield does this through its VPN and proxy category, which stops most consumer VPN apps from finding a server on your network.
Will blocking VPNs at DNS break my guests' corporate VPNs?
Usually not. A category block targets consumer VPN and anonymizer services, while most corporate gateways sit on the employer's own domain. Test before rollout: connect the VPN clients your largest corporate accounts use on the filtered VLAN. Port blocks are the bigger risk, because blocking UDP 500 and 4500 stops corporate IKEv2 VPNs too. Keep protocol rules off any VLAN business visitors use.
How is Shield priced?
Shield is priced by tailored quote, sized to your networks and venues. You can run it standalone or on Purple Access. Every deployment can start with a 30-day free trial, so you can test VPN category blocking and corporate VPN behavior on a live guest VLAN first. There is no appliance to buy, because Shield runs as a DNS change on the network you already operate.
Does Shield work with the access points and firewalls I already own?
Yes. Shield works at the DNS layer, so it does not depend on your WiFi vendor. It runs alongside Cisco Meraki, HPE Aruba, Ruckus, Juniper Mist, Ubiquiti UniFi, Cambium, Extreme, and Fortinet networks. You point each network or VLAN at Shield and set a policy for it. Firewall rules for VPN ports, where you need them, stay on the firewall you already run.
How does Shield compare with Cisco Umbrella and Cloudflare Gateway on VPN bypass?
All three meet the same limit, because none can read DNS inside someone else's tunnel. The useful comparison is elsewhere. Shield flags threats up to 10 days sooner, by Purple's own data. It applies a policy per network and VLAN, and it fails closed, so an outage never leaves a network unfiltered. Purple runs across 80,000+ venues in 90 countries.
Does blocking VPNs help with education compliance?
Yes, it supports it. CIPA requires appropriate filtering and monitoring for learners. standard safety criteria list circumvention, including VPNs, proxies, and DNS over HTTPS, as something filtering should address. Blocking the VPN and proxy category in Shield, plus firewall rules on the student VLAN, gives your safety officers evidence of managed circumvention. Keep staff on a separate VLAN with their own policy.
Can you block iCloud Private Relay on Guest WiFi?
Yes. Apple's network guidance says operators can block iCloud Private Relay by making its DNS names fail to resolve. The device then shows a message saying this network blocks Private Relay, so the visitor knows why. A Shield policy can apply that block on the networks that need it. You can leave it in place on others, such as staff or resident networks.
Sources
- RFC 7296: Internet Key Exchange Protocol version 2 (IKEv2)
- RFC 3948: UDP encapsulation of IPsec ESP packets
- RFC 7858: DNS over Transport Layer Security (TLS)
- RFC 8484: DNS queries over HTTPS (DoH)
- UK Safer Internet Centre: appropriate filtering and monitoring
- Apple: prepare your network for iCloud Private Relay
