Breakout traffic
Last updated Sep 2, 2026 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. This means that if your network is caching DNS requests, Breakout traffic will only take effect after you cache entries expire and your client issues a new DNS request that Cloudflare One Appliance (formerly Magic WAN Connector) can detect. This can take several minutes.
Caution
Breakout traffic will not work for applications that use DNS-over-HTTPS.
flowchart LR
accTitle: Breakout traffic flow
accDescr: Applications 1 and 2 are configured to bypass Cloudflare's security filtering, and go straight to the Internet.
a(Cloudflare One Appliance) --> b(Cloudflare) -->|Filtered traffic|c(Internet)
a-- Breakout traffic ---d(Application1) & e(Application2) --> c
classDef orange fill:#f48120,color: black
class a,b orange
In the graph above, Applications 1 and 2 are configured to bypass Cloudflare's security filtering, and go straight to the Internet.
A note on security
We recommend routing ↗︎ all traffic through our global network for comprehensive security filtering and access controls. However, there may be specific cases where you want a subset of traffic to bypass Cloudflare's security filtering and route it directly to the Internet. You can scope this breakout traffic to specific applications from the Cloudflare dashboard.
For details on how Cloudflare routes traffic, refer to Traffic steering.
Add an application to your account
Before you can add or remove Breakout traffic applications to your Cloudflare One Appliance, you need an account-level list with the applications that you want to configure. This list contains two kinds of applications:
- Cloudflare-managed applications — Cloudflare's built-in catalog of recognized applications. These already exist in your account and do not need to be created. Select them directly when assigning application traffic.
- Custom applications — applications you define by hostname, IP subnet, and/or source subnet. You can create, edit, and delete custom applications directly from the dashboard or through the Create an account app endpoint.
Create, edit, or delete a custom application
- Go to the Connectors page.
- Go to the Appliances tab > Profiles.
- Select the Cloudflare One Appliance you want to configure > Edit.
- Select Traffic Steering.
- In Breakout traffic, select Assign application traffic.
- In Custom applications, select Add to create a new custom application, and enter:
- Name — a display name for the application.
- Category — an optional group label, such as
ProductivityorVideo conferencing. - At least one of Hostnames, IP subnets, or Source subnets — the traffic that identifies this application. Hostnames must be valid FQDNs (for example
auth.example.com). IP subnets and source subnets must be valid IPv4 CIDRs (for example10.0.0.0/24). A single address needs a/32suffix. IPv6 is not yet supported. - Select Add application.
- To change or remove an existing custom application, select the three dots next to it in the Custom applications table, then Edit or Delete.
Send a POST request to create a custom application in your account. The following example uses all three optional match criteria:
<details>
<summary>
Required API token permissions
</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required:
- <code>Magic WAN Write</code>
- <code>Magic Transit Write</code>
</details>
Create a new Appbash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"name": "Example application",
"type": "Productivity",
"hostnames": [
"auth.example.com"
],
"ip_subnets": [
"192.0.2.0/24"
],
"source_subnets": [
"10.0.0.0/24"
]
}'
{
"result": {
"account_app_id": "eb09v665c0784618a3e4ba9809258fd4",
"name": "Example application",
"type": "Productivity",
"hostnames": ["auth.example.com"],
"ip_subnets": ["192.0.2.0/24"],
"source_subnets": ["10.0.0.0/24"]
},
"success": true,
"errors": [],
"messages": []
}
You can now add this new app to the Breakout traffic list in your Cloudflare One Appliance.
Add an application to Cloudflare One Appliance
You need to configure Breakout traffic applications for each of your existing sites, as this is a per-site configuration.
- Go to the Connectors page.
- Go to the Appliances tab > Profiles.
- Select the Cloudflare One Appliance you want to configure > Edit.
- Select Traffic Steering.
- In Breakout traffic, select Assign application traffic.
- Select one or more applications that should bypass Cloudflare filtering, from either Custom applications or Cloudflare-managed applications. You can also use the search box, or select Add to define a new custom application without leaving this panel — refer to Create, edit, or delete a custom application.
- (Optional) You can also pin an application to a WAN port. In Preferred breakout port, select the WAN you want to assign your applications to. Refer to Designate WAN ports for breakout apps for more information.
- Select Save.
The traffic for the application you chose will now go directly to the Internet and bypass Cloudflare's filtering.
Note
You will need your account ID and API token to use the API.
- Send a
GETrequest to list the applications associated with an account.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic WAN Write</code> - <code>Magic WAN Read</code> - <code>Magic Transit Read</code> - <code>Magic Transit Write</code></details>
List Appsbash
bash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps" \
--request GET \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
json
{
"result": [
{
"managed_app_id": "<APP_ID>",
"name": "<APP_NAME>",
"type": "File Sharing",
"hostnames": [
"<app_name.com>",
"<app-name.info>"
]
}
]
}
Take note of the "managed_app_id" value for any application you want to add.
2. Send a POST request to add new apps to the Breakout traffic policy.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic WAN Write</code> - <code>Magic Transit Write</code></details>
Create a new App Configbash
bash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/app_configs" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--json '{
"managed_app_id": "<MANAGED_APP_ID>",
"breakout": true
}'
json
{
"result": {
"account_app_id": "<APP_ID>",
"name": "<APP_NAME>",
"type": "<BREAKOUT_OR_PRIORITY>"
},
"success": true,
"errors": [],
"messages": []
}
Delete an application from Cloudflare One Appliance
- Go to the Connectors page.
- Go to the Appliances tab > Profiles.
- Select the Appliance you want to configure > Edit.
- Select Traffic Steering.
- In Breakout traffic, find the application you want to delete > select the three dots next to it > Remove application traffic.
- (Optional) If you have several pages of applications, you can use the search box to quickly find the application you are looking for.
Note
You will need your account ID and API token to use the API.
You need to delete Breakout traffic applications for each of your existing sites, as this is a per-site configuration.
- Send a
GETrequest to list the applications associated with a site.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic WAN Write</code> - <code>Magic WAN Read</code> - <code>Magic Transit Read</code> - <code>Magic Transit Write</code></details>
