Documentation Schedule a pilot

Zero Trust Gateway (SWG)

Cloudflare Gateway is a secure web gateway that applies DNS, network and HTTP policies to traffic sent to Cloudflare from enrolled devices, locations and networks. This page documents the on-ramps, policy evaluation order, TLS inspection requirements, limits and plan availability.

Document control

Dana, technical writer at Integrity
Dana
Technical writer, Integrity Czech Republic s.r.o.

Document control. Vendor: Cloudflare, Inc. Document owner: Dana, technical writer, Integrity Czech Republic s.r.o. Last reviewed: 2026-08-31. Content snapshot of the referenced Cloudflare documentation: 2026-08-28. Figures in this document were verified against the sources listed under References on the dates shown there; Cloudflare changes limits and packaging without notice, so verify at the source before you design against a value.

Overview

A secure web gateway inspects traffic leaving an organisation's devices and networks and applies policy to it: resolving or refusing DNS queries, permitting or refusing connections, and inspecting HTTP requests and responses for content, file types and data patterns.

Cloudflare Gateway performs this function on traffic that reaches the Cloudflare network through one of its supported on-ramps. Policy is bound to the identity and device that sent the traffic rather than to the network the device is attached to, so the same policy set applies to a device in an office and to the same device on an external network, provided the on-ramp is active.

Cloudflare states that its network operates in 348 cities (https://www.cloudflare.com/network/, retrieved 2026-08-28). Whether routing through Cloudflare increases or decreases latency for a given user population depends on their location, the destination and the previous egress path. Measure it during staged validation rather than assuming a direction of change.

Gateway and Cloudflare Access are separate enforcement points in the same platform. Gateway applies policy to traffic leaving devices toward the internet and toward private networks. Access applies policy to requests arriving at published applications.

Architecture

Traffic reaches Gateway through one of several on-ramps. The on-ramp determines which policy types can be enforced and whether user identity is attached to the traffic:

Policies are evaluated by type, in this order for a given flow: DNS policies when the query is resolved, network policies when the connection is established, and HTTP policies when the request is proxied. A DNS block prevents the connection from being attempted at all, which is why DNS filtering is normally enabled first and is the cheapest layer to operate.

HTTP inspection requires TLS decryption. Cloudflare terminates the TLS session at the edge, applies HTTP policies, file type controls, antivirus scanning and Data Loss Prevention where licensed, then re-establishes the session to the destination. For this to work without certificate errors, the Cloudflare root certificate or a customer-supplied certificate must be installed in the certificate store used by each application on the device.

Threat and content categorisation is supplied and updated by Cloudflare. Cloudflare does not publish a guaranteed interval between the first observation of a domain and its categorisation.

Capabilities

CapabilityBehaviourPlan or tierSource
DNS policiesAllow, block or override resolution by security category, content category, domain, domain list or resolver criteria; returns a block page or a defined response.All Zero Trust tiers including the free tier.DNS policies
Network policiesLayer 4 rules on destination IP, port, protocol, SNI and application, evaluated before HTTP inspection.Requires WARP or a network on-ramp; available on paid tiers, with limits by tier.Network policies
HTTP policiesAllow, block, isolate, do not inspect and do not scan actions on URL, host, category, file type, MIME type, request method and identity.Paid tiers; requires TLS inspection for most conditions.HTTP policies
TLS inspectionDecrypts and re-encrypts HTTPS so that HTTP policies, antivirus scanning and DLP can evaluate content.Paid tiers; requires certificate distribution to devices.TLS decryption
Antivirus scanningInline scanning of file downloads and uploads that pass through HTTP inspection.Paid tiers.Antivirus scanning
Data Loss PreventionPredefined and custom detection profiles for payment card numbers, identifiers and organisation-defined patterns in inspected traffic.Separately licensed add-on or Enterprise bundle component.Data Loss Prevention
Shadow IT discovery and SaaS controlsReports applications in use and supports per-application policies, including tenant restriction for supported SaaS providers.Paid tiers.Shadow IT discovery
Remote Browser IsolationRenders a site in a remote browser and streams the result to the local browser, so page code does not execute on the device.Add-on or Enterprise bundle component.Remote Browser Isolation
Logging and exportDNS, network and HTTP decision logs with identity, exportable to external systems.Retention differs by tier; Logpush requires a paid tier.Zero Trust logs

Configuration model

Gateway policies are ordered lists, evaluated per policy type. Within a type, policies are evaluated in order and the first match determines the action, so the ordering of exception policies relative to enforcement policies is part of the configuration.

A policy consists of a selector, an operator, a value and an action. Selectors include destination attributes (domain, host, URL, category, IP, port, application, SNI, file type, MIME type), identity attributes (user email, identity provider group, service token) and device attributes (device posture, serial number, operating system). Lists are reusable objects referenced by policies, which is the supported way to manage large sets of domains, addresses or serial numbers.

HTTP policy actions include allow, block, isolate, do not inspect and do not scan. Do not inspect exempts traffic from TLS decryption entirely and is the action used for applications that pin certificates. Do not scan keeps inspection but skips content scanning.

TLS inspection is not effective until the inspection certificate is present in the certificate store each application uses. Browsers commonly use the operating system store, while runtimes such as Java, Node.js, Python and Git maintain their own. Distribute the certificate to every store in scope through device management, and record which applications required an additional step.

Block pages are configurable per policy and can display a reason and a support contact defined by the organisation. A block page is returned only where the protocol permits it; a blocked network-layer connection or a blocked non-HTTP protocol presents to the user as a connection failure.

Policies, lists, locations, DLP profiles and device settings are manageable through the dashboard, the API and the Terraform provider. Hold them in version control where policy count is non-trivial, because ordering changes are difficult to review after the fact.

Limits and constraints

Plan availability

TierIncluded
FreeDNS policies, WARP enrolment, basic logging and core Zero Trust functionality, within a capped seat count.
Paid per-user tiersNetwork and HTTP policies, TLS inspection, antivirus scanning, Shadow IT discovery, longer retention and log export, larger policy and list quotas.
Add-ons and Enterprise bundle componentsData Loss Prevention, Remote Browser Isolation, dedicated egress addresses and additional posture integrations.
EnterpriseContractual service terms, scale commitments and bundled Cloudflare One components.

Accurate as of 2026-08-31 against Cloudflare public documentation. Tier names, seat allowances and included features are commercial terms and change without notice. Confirm at https://www.cloudflare.com/plans/zero-trust-services/ and https://developers.cloudflare.com/cloudflare-one/ before sizing a deployment.

Deployment

Prerequisites.

Staged validation. Enrol a pilot group covering each operating system in the fleet. Enable DNS policies only, in a permissive configuration that blocks security categories and logs everything else. Run for a defined observation window and review the logs for legitimate destinations that would be blocked by the intended content policy. Do not enable TLS inspection in this phase.

Configuration.

  1. Distribute the inspection certificate through device management to the operating system store and to any application-specific stores identified during prerequisites. Verify installation before enabling inspection.
  2. Create the do not inspect policies for the exception list and order them before the inspection-dependent policies.
  3. Enable TLS inspection for the pilot group and re-run the application inventory, recording any additional failures and extending the exception list.
  4. Add network policies, including a policy blocking QUIC where full HTTP inspection is required, and a policy preventing browser DNS-over-HTTPS from bypassing DNS filtering.
  5. Add HTTP policies for categories, file types and identity-based differences between groups.
  6. Where licensed, configure DLP profiles in a logging configuration first, review matches for false positives, then move to blocking.
  7. Configure block pages with a reason and an internal support reference.
  8. Configure log export to the SIEM and confirm that DNS, network and HTTP decisions arrive with identity fields populated.

Cutover. Deploy the client to the fleet in waves grouped by user population, so each wave affects a bounded set of people and support load stays predictable. Connect office networks after the device fleet, so that a device is covered by a single on-ramp at a time. Keep the previous egress path available until each wave is verified.

Verification.

Rollback. Disable the affected policy, or set the client to a bypass configuration through device management, or revert the DNS location resolvers. Because certificate distribution is separate from policy, leaving the certificate installed while disabling inspection is a safe intermediate state and shortens the next attempt.

Operational considerations

Give the service desk a documented path for a blocked request: capture the block page reference or the timestamp and destination, locate the decision in the logs, identify the policy that matched, and decide between a scoped exception and a policy change. Without that path, users route around the control by disabling the client.

Maintain the inspection exception list as a living document with an owner. Applications add certificate pinning in ordinary releases, so an exception list that is accurate at cutover degrades over time.

Monitor enrolment coverage as a first-class metric. The proportion of managed devices with an active client determines the actual coverage of every policy, and it drifts as devices are rebuilt or replaced.

Review policy order after every change. A new allow policy placed above an enforcement policy silently disables it for the matched traffic, and this is not visible from the policy count.

Export logs and retain them under your own retention policy. Investigations frequently ask questions about a period longer than the dashboard retains.

Failure modes to plan for: a certificate that expires or is removed by a device management change, an operating system update that resets proxy or resolver settings, an application release that adds pinning, a DLP profile that matches an internal identifier format and blocks routine work, and a network on-ramp outage that removes filtering for a site.

Known caveats

Interoperability

Gateway and Access share the identity provider configuration, the WARP client and the device registry. A device enrolled for Gateway filtering can reach private applications through the same client, and device posture signals collected once are available to both policy engines.

Cloudflare Tunnel and WARP Connector provide routes to private networks, so a network policy can permit or refuse access to internal destinations as well as internet destinations.

Remote Browser Isolation is invoked by an HTTP policy action, so isolation is applied selectively by category, destination or identity rather than as a global mode.

Data Loss Prevention profiles are shared across Gateway and, where licensed, the CASB and Email Security components of Cloudflare One, so a pattern defined once can be applied at several enforcement points.

Logs from Gateway, Access and the device client export through Logpush to the same external destination, which allows a single correlation of inbound authorisation, outbound filtering and endpoint telemetry.

FAQ

What is required before HTTPS traffic can be inspected? The inspection certificate must be installed in every certificate store used by applications on the device, and applications that pin certificates must be exempted with a do not inspect policy.

Why does an application fail only after TLS inspection is enabled? The application validates the certificate chain independently of the operating system store, or it pins a specific certificate. Add it to the do not inspect list, or install the certificate into that application's own store where it supports one.

How is a blocked request diagnosed? Locate the decision in the DNS, network or HTTP logs by timestamp, identity and destination. The log entry names the policy that matched, which identifies whether the fix is an exception, a reordering or a policy change.

Can policies differ between user groups? Yes. Identity provider group membership is available as a policy selector for devices running the WARP client, so distinct policy sets can apply to different populations on the same network.

References

Content snapshot: 2026-08-28.

Changelog

DateChangeAuthor
2026-08-31Rewritten as a technical reference. Added limits and plan availability tables with sources.Integrity documentation team
2026-08-28Initial publication.Integrity documentation team

Request your free pilot

Schedule a pilot