-
Notifications
You must be signed in to change notification settings - Fork 10k
[MCONN] Export netflows #26339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[MCONN] Export netflows #26339
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5828d3a
netflow partial
marciocloudflare ed2f8f3
refined content
marciocloudflare cf0828c
refined title
marciocloudflare eeaa245
new page
marciocloudflare 1053c22
page order
marciocloudflare 898bdd7
added page
marciocloudflare 64660a4
page order
marciocloudflare e4b5512
refined text
marciocloudflare 6f31eed
refined text
marciocloudflare 0e2f589
added ternary
marciocloudflare f7deb61
markdown
marciocloudflare c4a3055
fixed ternary
marciocloudflare 1bc1260
removed spaces
marciocloudflare 6ae157f
comment
marciocloudflare aaf8a8e
refined text
marciocloudflare c240f53
Update src/content/partials/networking-services/mconn/network-options…
marciocloudflare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
.../cloudflare-one/networks/connectors/wan-tunnels/analytics/netflow-analytics.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| title: NetFlow statistics | ||
| pcx_content_type: how-to | ||
| sidebar: | ||
| order: 3 | ||
| head: | ||
| - tag: title | ||
| content: Magic WAN Connector NetFlow Analytics | ||
| --- | ||
|
|
||
| import { Render } from "~/components"; | ||
|
|
||
| <Render file="mconn/network-options/app-aware-policies/netflow" product="networking-services" /> |
2 changes: 1 addition & 1 deletion
2
.../cloudflare-one/networks/connectors/wan-tunnels/analytics/network-analytics.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| title: Network Analytics | ||
| title: Network analytics | ||
| pcx_content_type: how-to | ||
| sidebar: | ||
| order: 2 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/content/docs/magic-wan/analytics/netflow-analytics.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| title: NetFlow statistics | ||
| pcx_content_type: how-to | ||
| sidebar: | ||
| order: 3 | ||
| head: | ||
| - tag: title | ||
| content: Magic WAN Connector NetFlow Analytics | ||
| --- | ||
|
|
||
| import { Render } from "~/components"; | ||
|
|
||
| <Render file="mconn/network-options/app-aware-policies/netflow" product="networking-services" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| title: Network Analytics | ||
| title: Network analytics | ||
| pcx_content_type: how-to | ||
| sidebar: | ||
| order: 2 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...rtials/networking-services/mconn/network-options/app-aware-policies/netflow.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| {} | ||
| --- | ||
|
|
||
| import { CURL, Render } from "~/components"; | ||
|
|
||
| ## NetFlow exports from Magic WAN Connector to Magic Network Monitoring | ||
|
|
||
| You can configure your Magic WAN Connector to export Netflow statistics for local breakout traffic to [Magic Network Monitoring](/magic-network-monitoring). This provides visibility into traffic that leaves your site directly, bypassing the Cloudflare network. | ||
|
|
||
| The Magic WAN Connector 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 | ||
|
|
||
| <Render file="account-id-api-key" product="networking-services" params={{ showSiteId: true }} /> | ||
|
|
||
| 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 Magic Network Monitoring, use the IP address `162.159.65.1`. This is the only field required to enable the feature. | ||
|
|
||
| Minimal configuration example: | ||
|
|
||
| <CURL | ||
| url="https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/netflow_config" | ||
| method="PUT" | ||
| json={{ | ||
| "collector_ip": "162.159.65.1" | ||
| }} | ||
| /> | ||
|
|
||
| 3. You can customize the configuration by adding optional fields to the JSON payload. These fields include: | ||
| - `collector_port`: The UDP port for the collector. The default is `2055`. | ||
| - `sampling_rate`: The rate at which packets are sampled. | ||
| - `active_timeout`: The timeout for active flows in seconds. | ||
| - `inactive_timeout`: The timeout for inactive flows in seconds. | ||
|
|
||
| Full configuration example: | ||
|
|
||
| <CURL | ||
| url="https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/netflow_config" | ||
| method="PUT" | ||
| json={{ | ||
| "collector_ip": "162.159.65.1", | ||
| "collector_port": 2055, | ||
| "sampling_rate": 100, | ||
| "active_timeout": 60, | ||
| "inactive_timeout": 30 | ||
| }} | ||
| /> | ||
|
|
||
| Your Magic WAN Connector will now begin exporting Netflow data for its breakout traffic, which will be ingested and visualized within your Magic Network Monitoring 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. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.