INTEGRITY Cloudflare Docs

Secure WAN traffic

A key benefit of routing your network traffic through Cloudflare is that you can apply security policies without deploying additional hardware at each site. Once traffic reaches Cloudflare through WAN on-ramps (IPsec tunnels, GRE tunnels, CNI, or Appliance), multiple security services inspect it inline at the nearest Cloudflare data center. This page explains which services apply to WAN traffic, when to use each one, and how they work together.

Traffic types

Cloudflare WAN carries three types of traffic, and different security services apply to each:

Security services

Cloudflare Network Firewall

Cloudflare Network Firewall provides packet-level filtering at layers 3 and 4. You define allow or block rules based on IP addresses, ports, and protocols.

Use Network Firewall when you need to control traffic at the packet level — for example, blocking specific IP ranges, restricting traffic to certain ports, or filtering protocols between sites.

Gateway (Secure Web Gateway)

Cloudflare Gateway inspects traffic at layers 4 through 7 and supports three policy types:

HTTP inspection requires TLS decryption and a Cloudflare root certificate installed on client devices. You must also enable the Gateway proxy for your WAN traffic.

Gateway provides the deepest inspection for WAN traffic, covering DNS, network, and HTTP layers. For detailed setup instructions, refer to Connect to Cloudflare Gateway with Cloudflare WAN.

Browser Isolation

Browser Isolation runs web content in a remote browser on Cloudflare's network and streams a visual representation to the user's device. No web code executes locally.

Use Browser Isolation when users at branch offices need to access untrusted or uncategorized websites without exposing local devices to web-based threats.

Data Loss Prevention (DLP)

Data Loss Prevention (DLP) scans HTTP uploads and downloads for sensitive data patterns such as Social Security numbers, credit card numbers, and custom regular expressions.

You define DLP profiles with detection rules and reference those profiles in Gateway HTTP policies. When a policy matches, Gateway can block, log, or allow the transfer.

Cloud Access Security Broker (CASB)

CASB provides visibility and control over SaaS application usage through two modes:

AI visibility

The AI Security Report provides visibility into AI application usage across your organization. It shows which AI tools employees are using, how frequently, and what data is being shared.

AI visibility is not a separate inline security service. It is an analytics feature powered by Gateway — it requires Gateway to be inspecting outbound traffic from your sites.

Use-case mapping

Traffic scenario Recommended services
Block traffic between sites by IP, port, or protocol Network Firewall
Filter DNS queries from branch offices Gateway DNS policies
Block malware downloads from branch offices Gateway HTTP policies
Prevent sensitive data uploads to the Internet DLP (via Gateway HTTP policies)
Isolate risky web browsing from branch users Browser Isolation (via Gateway HTTP policies)
Detect and block unsanctioned SaaS applications CASB + Gateway HTTP policies
Monitor employee AI tool usage AI Security Report (via Gateway)
Protect against DDoS on customer-owned IPs Network Firewall (inbound) + Magic Transit

How services compose

Traffic on the Cloudflare network passes through a single-pass inspection pipeline. You do not need to backhaul traffic between services — all inspection happens at the nearest Cloudflare data center.

The evaluation order is:

  1. Network Firewall (L3/L4): Packet-level rules are evaluated first.
  2. Gateway (L4-L7 proxy): If traffic passes the Network Firewall, Gateway inspects it. Within Gateway, policies are evaluated in order: DNS → Network → HTTP.
  3. DLP, Browser Isolation, and CASB: These services are triggered through Gateway HTTP policies. A single HTTP policy can reference a DLP profile, apply an Isolate action, or block a CASB-flagged application.

This means you can layer multiple security services on the same traffic flow without adding network hops or latency.

Next steps