Breakout traffic·续

List App Configsbash

   curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/app_configs" \
    --request GET \
    --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
   ```

```json
    {
        "result": [
            {
                "id": "<APP_ID>",
                "site_id": "<SITE_ID>",
                "managed_app_id": "<APP_NAME>",
                "breakout": true
            }
        ]
    }
   ```

Take note of the `"id"` value for the application that you want to delete.
2. Send a `DELETE` request to delete an application from the Breakout traffic policy.

```bash
   curl "https://api.cloudflare.com/client/v4/accounts/%7Baccount_id%7D/magic/sites/%7Bsite_id%7D/app_configs/%7Bid%7D" \
    --request DELETE
   ```

```json
   {
        "result": {
                "id": "<APP_ID>",
                "site_id": "<SITE_ID>",
                "managed_app_id": "<APP_NAME>",
                "breakout": true
        },
        "success": true,
        "errors": [],
        "messages": []
   }
   ```

## Designate WAN ports for breakout apps

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.

With this preferred breakout port, customers have direct control over their local Internet breakout traffic. You can designate a specific WAN uplink as the primary path for your critical applications configured to bypass the Cloudflare network. This provides the predictability and control needed for performance-sensitive applications, ensuring your critical traffic always takes the path you choose.

To pin applications to a WAN port:

1. Go to the **Connectors** page.

[Go to **Connectors** ↗](https://dash.cloudflare.com/?to=/:account/magic-networks/connections)

2. Go to the **Appliances** tab > **Profiles**.
3. Select your Appliance > **Edit**.
4. In **Traffic steering** > **Breakout Traffic** find the application you want to pin to a WAN port.
5. Select the three dots next to it > **Edit application traffic**.
6. From the **Preferred breakout port** drop-down menu, select the WAN port you want to assign to the applications.
7. Select **Save**.

## NetFlow exports from Cloudflare One Appliance to Network Flow

You can configure your Cloudflare One Appliance (formerly Magic WAN Connector) to export Netflow statistics for local breakout traffic to [Network Flow](https://developers.cloudflare.com/network-flow) (formerly Magic Network Monitoring). This provides insights into traffic that leaves your site directly, bypassing the Cloudflare network.

The Cloudflare One Appliance uses NetFlow v9 to export flow data for breakout traffic only. You can enable and configure this export by setting the Netflow configuration for the associated site via the Cloudflare API.

### Enable NetFlow exports

Note

To export NetFlow statistics, you will need your [account ID](https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/) and [API token](https://developers.cloudflare.com/fundamentals/api/get-started/account-owned-tokens/), as well as the `site_id` associated with your Cloudflare One Appliance.

1. Send a `PUT` request to the Netflow configuration endpoint for your site.
2. In the JSON body request, you must include the `collector_ip` parameter. To export traffic statistics to Network Flow, use the IP address `162.159.65.1`. This is the only field required to enable the feature.

Minimal configuration example:

```bash
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"
    }'
  1. You can customize the configuration by adding optional fields to the JSON payload. These fields include:

  2. collector_port: The UDP port for the collector. The default is 2055.

  3. sampling_rate: The rate at which packets are sampled.
  4. active_timeout: The timeout for active flows in seconds.
  5. inactive_timeout: The timeout for inactive flows in seconds.

Full configuration example:

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",
        "collector_port": 2055,
        "sampling_rate": 100,
        "active_timeout": 60,
        "inactive_timeout": 30
    }'

Your Cloudflare One Appliance will now begin exporting Netflow data for its breakout traffic, which will be ingested and displayed within your Network Flow dashboard. You can retrieve the current settings by sending a GET request, or disable the export by sending a DELETE request to the same endpoint.

Cloudflare One Client traffic

If you have Cloudflare One Appliance (formerly Magic WAN Connector) and Cloudflare One Clients deployed in your premises, Cloudflare One Appliance automatically routes Cloudflare One Client traffic to the Internet rather than Cloudflare WAN IPsec tunnels. This prevents traffic from being encapsulated twice.

You may need to configure your firewall to allow this new traffic. Make sure to allow the following IPs and ports:

  • Destination IPs: 162.159.193.0/24, 162.159.197.0/24
  • Destination ports: 443, 500, 1701, 2408, 4443, 4500, 8095, 8443

Refer to Cloudflare One Client with firewall for more information on this topic.

Breakout by source

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.

Match criteria

Criterion Behavior Configuration
Source LAN interface All traffic originating on the selected LAN is broken out. Any VLAN attached to that LAN is included automatically. API and Terraform.
Source IPv4 CIDR All traffic with a source IP in the specified CIDR block is broken out. Dashboard (Source subnets field on a custom application), API, and Terraform.
Source IP address or range All traffic with a source IP matching the specified address or range is broken out. API and Terraform.

The same criteria can be used to mark traffic as prioritized instead of broken out. Refer to Prioritized traffic for details.

Source-based and destination-based (managed app or custom app) rules can co-exist on the same appliance and are evaluated independently. If a flow matches both a source-based breakout rule and a destination-based breakout rule, the appliance breaks it out.

Was this helpful?

YesNo

On this page

Breakout traffic·续 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-wan/configuration/appliance/network-options/application-based-policies/breakout-traffic/#page","headline":"Breakout traffic","description":"Breakout traffic allows you to define which applications should bypass Cloudflare's security filtering.","url":"https://developers.cloudflare.com/cloudflare-wan/configuration/appliance/network-options/application-based-policies/breakout-traffic/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-wan/configuration/appliance/network-options/application-based-policies/breakout-traffic/og.png?v=511854d956a2c8f7","dateModified":"2026-09-02","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Prioritized traffic allows you to define which applications are processed first by Cloudflare One Appliance. title: Prioritized traffic image: https://developers.cloudflare.com/cloudflare-wan/configuration/appliance/network-options/application-based-policies/prioritized-traffic/og.png?v=616f2bbd47bcb250


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-wan/llms.txt
Use this file to discover all available pages before exploring further.