Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Application-Aware Breakout Traffic, WAN Egress, and NetFlow

How WAN appliance breakout traffic bypasses cloud filtering, how to configure apps and WAN ports, and how NetFlow shows local egress.

This page summarizes Cloudflare documentation on application-aware policies for the Cloudflare One Appliance (formerly Magic WAN Connector): identifying traffic by application, sending selected traffic directly to the Internet (breakout traffic), pinning egress to a preferred WAN port, matching by source, and exporting NetFlow for breakout visibility in Network Flow (formerly Magic Network Monitoring).

Application-aware policies: traffic by app, not just IP and port

Section titled “Application-aware policies: traffic by app, not just IP and port”

Application-aware policies go beyond standard policies that match only network-layer attributes like IP addresses and port ranges.

Standard traffic policies match on network-layer attributes like IP addresses and port ranges. Application-aware policies go further — they identify traffic by the application generating it, so you can make routing and security decisions based on what the traffic is, not just where it is going.

— Cloudflare, Application-aware policies

The Appliance classifies traffic with the same application categories as Cloudflare’s Secure Web Gateway, so routing on the device and Gateway security policies share the same application definitions. For the catalog, see Applications and app types (linked from that page).

With application-aware policies you can:

  • Break out specific applications to the Internet from the Appliance, bypassing Cloudflare security filtering (Breakout traffic).
  • Prioritize specific applications so the Appliance processes them first when the network is congested (Prioritized traffic).

By default, Traffic steering uses IP, port, and similar network-layer characteristics; with the WAN Connector, you can also steer by well-known applications.

Breakout traffic: when apps skip cloud security filtering

Section titled “Breakout traffic: when apps skip cloud security filtering”

Breakout traffic lets you choose which applications bypass Cloudflare’s security filtering and reach the Internet directly from the site, instead of going through Cloudflare’s network path for filtered traffic.

Breakout traffic allows you to define which applications should bypass Cloudflare’s security filtering, and go directly to the Internet. It works via DNS requests inspection.

— Cloudflare, Breakout traffic

Typical flow: most traffic goes Appliance → Cloudflare → (filtered) → Internet; breakout apps go Appliance → Internet without that filtering step (as described in Breakout traffic).

DNS inspection, caching, and DNS-over-HTTPS limits

Section titled “DNS inspection, caching, and DNS-over-HTTPS limits”

Breakout depends on inspecting DNS requests. If the network caches DNS, breakout often applies only after cached entries expire and clients issue a new DNS request the Appliance can see—this can take several minutes.

Prioritized traffic uses the same DNS inspection model and the same DoH limitation (Prioritized traffic).

Security trade-off: default vs selective breakout

Section titled “Security trade-off: default vs selective breakout”

Cloudflare’s default recommendation is to send traffic through its network for filtering and access controls. Selective breakout is for cases where a subset should bypass filtering and use local Internet egress, scoped to specific applications in the dashboard (Breakout traffic).

Managed apps, custom applications, and per-site assignment

Section titled “Managed apps, custom applications, and per-site assignment”

Before assigning breakout (or priority) on an Appliance, you need applications at account level. Per Breakout traffic, the list includes:

Kind What it is How to manage
Cloudflare-managed applications Built-in catalog of recognized apps; already in the account Select when assigning traffic
Custom applications Match by hostname, IP subnet, and/or source subnet Dashboard on Traffic Steering, or API

Custom applications in the App Library identify internal or uncatalogued services and can be used in policies with the Application selector. For breakout steering from the Appliance UI, you can create custom apps under Traffic Steering → Breakout traffic → Assign application traffic → Add (changelog).

Custom application match fields (breakout / priority)

Section titled “Custom application match fields (breakout / priority)”

When creating a custom application on the Appliance (Breakout traffic):

  • Name — display name.
  • Category — optional label (e.g. Productivity).
  • At least one of Hostnames, IP subnets, or Source subnets.
  • Hostnames must be valid FQDNs (e.g. auth.example.com).
  • IP and source subnets must be valid IPv4 CIDRs (e.g. 10.0.0.0/24); a single address uses /32.
  • IPv6 is not yet supported for these custom apps on the Appliance.

Broader App Library limits (hostname counts, CIDR rules) are in Custom applications.

Breakout and prioritized application lists are per site—configure each Cloudflare One Appliance site separately (Breakout traffic).

For automation, Cloudflare documents:

  • POST https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps — create or register apps (custom example with hostnames, ip_subnets, source_subnets in Breakout traffic).
  • POST https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/app_configs with "breakout": true — enable breakout for a managed_app_id on a site (Breakout traffic).

Token permissions typically include Magic WAN Write and/or Magic Transit Write (and read permissions for listing). Edit traffic steering settings describes dashboard add/remove for Breakout and Prioritized traffic only.

Breakout by source: guest VLANs and subnets without naming every app

Section titled “Breakout by source: guest VLANs and subnets without naming every app”

In addition to destination application matching, breakout rules can match source—source LAN interface, source VLAN, or source IP/CIDR (Breakout traffic).

In addition to matching by destination application, you can define breakout rules that match by source — by source LAN interface, source VLAN, or source IP address / CIDR block. This is useful for breaking out an entire guest VLAN or a specific subnet to the local Internet without enumerating destination applications.

— Cloudflare, Breakout traffic

Criterion Behavior Configuration
Source LAN interface All traffic from that LAN is broken out; VLANs on that LAN included API and Terraform
Source IPv4 CIDR All traffic with source IP in the CIDR is broken out Dashboard (Source subnets on custom app), API, Terraform
Source IP address or range Matching source IP/range broken out API and Terraform

The same criteria can mark traffic prioritized instead of broken out (Prioritized traffic).

Source-based and destination-based rules can coexist and are evaluated independently; if a flow matches both breakout rules, the appliance breaks it out (Breakout traffic).

Breakout and traffic prioritization rules on the Cloudflare One Appliance can now match by source in addition to destination application.

— Cloudflare, Source-based breakout and prioritization

Section titled “Preferred breakout port: which WAN link carries breakout traffic”

When you have multiple WAN uplinks, you can pin breakout apps to a preferred WAN port for predictable egress—useful for latency-sensitive apps (Designate WAN link for breakout traffic).

You can pin applications to a specific WAN port in Cloudflare One Appliance when you need control over which WAN port your applications egress from the device. In case your preferred WAN port goes down, Cloudflare One Appliance automatically fails over to a standard configured WAN port priority.

— Cloudflare, Breakout traffic

Dashboard path: Traffic steering → Breakout Traffic → application menu → Edit application traffic → Preferred breakout port (Breakout traffic).

Prioritized traffic: processing order under congestion

Section titled “Prioritized traffic: processing order under congestion”

Prioritized traffic defines which applications the Appliance should process first; other applications queue behind them (Prioritized traffic).

Prioritized traffic allows you to define which applications Cloudflare One Appliance (formerly Magic WAN Connector) should process first. Applications not in the list will be queued behind prioritized traffic.

— Cloudflare, Prioritized traffic

Prioritization does not bypass Cloudflare filtering like breakout; it changes ordering under load. Configuration mirrors breakout: account-level apps, per-site assignment, dashboard or API (Prioritized traffic).

NetFlow for breakout traffic: visibility in Network Flow

Section titled “NetFlow for breakout traffic: visibility in Network Flow”

Traffic that bypasses Cloudflare’s network is invisible on the tunneled path unless you monitor local breakout separately. The Appliance can export NetFlow v9 for breakout traffic only to Network Flow (NetFlow statistics).

You can configure your Cloudflare One Appliance (formerly Magic WAN Connector) to export Netflow statistics for local breakout traffic to Network Flow (formerly Magic Network Monitoring). This provides insights into traffic that leaves your site directly, bypassing the Cloudflare network.

— Cloudflare, NetFlow statistics

Magic WAN Connector now exports NetFlow data for breakout traffic to Magic Network Monitoring (MNM), providing visibility into traffic that bypasses Cloudflare’s security filtering.

— Cloudflare, Breakout traffic visibility via NetFlow

Enable NetFlow export on the appliance site (API)

Section titled “Enable NetFlow export on the appliance site (API)”

Configure per site_id via PUT to the Netflow configuration endpoint. Minimum body: collector_ip set to 162.159.65.1 (Network Flow collector). Optional: collector_port (default 2055), sampling_rate, active_timeout, inactive_timeout (NetFlow statistics).

curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/netflow_config" \
--request PUT \
--json '{
"collector_ip": "162.159.65.1"
}'

Use GET on the same endpoint to read settings; DELETE to disable (NetFlow statistics).

Network Flow analyzes flow data from routers or the Appliance; the free tier is available on all Cloudflare accounts (Network Flow). General router export to the same collector IP/port is documented in Netflow/IPFIX configuration (162.159.65.1, UDP port 2055).

  • Expecting immediate breakout after a policy change while DNS is cached—wait for cache expiry and a fresh DNS query (Breakout traffic).
  • Adding breakout for apps that use DNS-over-HTTPS—breakout and prioritized app policies will not work for them (Breakout traffic).
  • Configuring only at account level and forgetting per-site app_configs or dashboard assignment per Appliance site (Breakout traffic).
  • Using IPv6 CIDRs on Appliance custom breakout apps when only IPv4 is supported (Breakout traffic).
  • Enabling breakout without NetFlow (or other monitoring) and losing visibility into direct Internet egress (NetFlow statistics).
  • Assuming prioritized traffic equals breakout—it changes queue order, not the security/filtering path (Prioritized traffic).
  1. In the Cloudflare One dashboard, open Networks → Connectors → Appliances → Profiles, edit the Appliance, and confirm the target apps appear under Traffic steering → Breakout traffic (or Prioritized traffic) per Edit traffic steering settings.

  2. From a client using the broken-out application, trigger a fresh DNS resolution (flush local DNS cache or wait for TTL expiry) so DNS inspection can apply (Breakout traffic).

  3. If you enabled netflow_config with collector_ip 162.159.65.1, wait a few minutes, then open Network Flow analytics and confirm breakout statistics appear as described in NetFlow statistics and Get started (router flow data often needs five to ten minutes).

  4. When using a preferred WAN port, verify egress on the intended uplink and confirm failover behavior if that link fails (Breakout traffic).

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.