You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/mnm/rules/dynamic-threshold.mdx
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,9 @@
2
2
{}
3
3
---
4
4
5
-
A dynamic threshold rule (beta) will analyze a network's traffic patterns over time and automatically adjust the rule's DDoS (Distributed Denial of Service) threshold, in terms of bits or packets, based on traffic history. The total traffic across all IP prefixes and IP addresses in the rule is compared to the current value of the dynamic threshold. If the total traffic exceeds the dynamic threshold, Network Flow (formerly Magic Network Monitoring) sends an alert.
5
+
A dynamic threshold rule (beta) monitors your network traffic patterns and automatically adjusts the Distributed Denial of Service (DDoS) threshold based on traffic history. Network Flow (formerly Magic Network Monitoring) compares total traffic across all IP prefixes and addresses in the rule against the dynamic threshold, measured in bits or packets per second. If traffic exceeds the threshold, Network Flow sends an alert.
6
6
7
-
Dynamic thresholds are calculated using a statistical measure called [Z-score](https://en.wikipedia.org/wiki/Standard_score) (also referred to as standard score). Review [How the dynamic rule threshold is calculated](#how-the-dynamic-rule-threshold-is-calculated) to learn more.
8
-
9
-
Customers who send NetFlow and/or sFlow data to Cloudflare can configure dynamic threshold rules.
10
-
11
-
A dynamic threshold rule can only be configured through [Cloudflare's Network Flow Rules API](/api/resources/magic_network_monitoring/subresources/rules/). Customers are unable to configure dynamic threshold rules in the Cloudflare dashboard.
7
+
To use dynamic threshold rules, you must send NetFlow or sFlow data to Cloudflare. You can only configure dynamic threshold rules through the [Network Flow Rules API](/api/resources/magic_network_monitoring/subresources/rules/) — they are not available in the dashboard.
12
8
13
9
## Rule configuration fields
14
10
@@ -17,17 +13,17 @@ A dynamic threshold rule can only be configured through [Cloudflare's Network Fl
17
13
|**Rule name**| Must be unique and cannot contain spaces. Supports characters `A-Z`, `a-z`, `0-9`, underscore (`_`), dash (`-`), period (`.`), and tilde (`~`). Maximum of 256 characters. |
18
14
|**Rule type**| zscore |
19
15
|**Target**| Can be defined in either bits per second or packets per second. |
20
-
|**Sensitivity**|Z-Score sensitivity has three values: low, medium, and high. |
16
+
|**Sensitivity**|Controls how easily traffic anomalies trigger alerts. Available values: low, medium, and high. Higher sensitivity triggers alerts on smaller deviations from normal traffic. |
21
17
|**Auto-advertisement**| If you are a [Magic Transit On Demand](/magic-transit/on-demand) customer, you can enable this feature to automatically enable Magic Transit if the rule's dynamic threshold is triggered. Network Flow supports Magic Transit's supernet capability. To learn more refer to [Auto-Advertisement section](/network-flow/rules/#rule-auto-advertisement). |
22
-
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a CIDR (Classless Inter-Domain Routing) range such as `160.168.0.1/24`. The maximum is 5,000 unique CIDR entries. To learn more and review an example, refer to the [Rule IP prefixes](/network-flow/rules/#rule-ip-prefixes) section. |
18
+
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a CIDR range such as `160.168.0.1/24`. The maximum is 5,000 unique CIDR entries. To learn more and review an example, refer to the [Rule IP prefixes](/network-flow/rules/#rule-ip-prefixes) section. |
23
19
24
20
## API documentation
25
21
26
22
To review an example API configuration call using CURL and the expected output for a successful response, go to the [Rules](/api/resources/magic_network_monitoring/subresources/rules/) section in the Network Flow API documentation.
27
23
28
24
## How the dynamic rule threshold is calculated
29
25
30
-
Dynamic thresholds for this rule type use a statistical measure called Z-Score. The dynamic threshold for this rule will automatically adjust based on your traffic history as this rule uses statistical analysis to detect traffic anomalies. Z-Score compares short-term traffic patterns (five-minute time window) against long-term baselines (four-hour time window).
26
+
Z-score compares short-term traffic patterns (five-minute window) against long-term baselines (four-hour window) to detect anomalies. The threshold adjusts automatically as your traffic history grows.
31
27
32
28
Z-Score is calculated by using the following formula:
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/mnm/rules/rule-notifications.mdx
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,9 @@
4
4
5
5
import { Render, DashButton } from"~/components"
6
6
7
-
After configuring one or multiple rule types in Network Flow (formerly Magic Network Monitoring), you can also choose to receive notifications via email, webhook, or PagerDuty when a rule is triggered.
7
+
Network Flow (formerly Magic Network Monitoring)can notify you by email, webhook, or PagerDuty when a rule is triggered. When a rule detects a traffic anomaly, notifications alert your team so you can respond — or, if you use Magic Transit with auto-advertisement, Cloudflare can begin mitigating the attack automatically.
8
8
9
-
You can configure multiple rule types and alerts together to create layers of DDoS protection based on your network environment and your security needs.
10
-
11
-
You can read [Cloudflare's Notifications documentation](/notifications/) for more information on our notification platform including:
9
+
For more information on the notification platform, refer to [Notifications documentation](/notifications/). You can also:
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/mnm/rules/s-flow-ddos-attack.mdx
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,13 @@
2
2
{}
3
3
---
4
4
5
-
Network Flow (formerly Magic Network Monitoring) customers that send sFlow data to Cloudflare can receive alerts when a specific type of distributed denial-of-service (DDoS) attack is detected within their network traffic. Network Flow uses the same DDoS attack detection rules that protect Cloudflare's global network to generate these alerts.
5
+
An sFlow DDoS attack rule (beta) alerts you when a DDoS attack is detected in your network traffic. Network Flow (formerly Magic Network Monitoring) uses the same DDoS detection rules that protect Cloudflare's global network to identify these attacks.
6
6
7
-
Only customers that send sFlow data to Cloudflare can configure a sFlow DDoS attack rule.
8
-
9
-
You can only configure an sFlow DDoS attack rule via Cloudflare's API. The Cloudflare dashboard does not currently support configuring sFlow DDoS attack rules.
7
+
To use sFlow DDoS attack rules, you must send sFlow data to Cloudflare. You can only configure these rules through the [Network Flow Rules API](/api/resources/magic_network_monitoring/subresources/rules/) — they are not available in the dashboard.
10
8
11
9
## Send sFlow data from your network to Cloudflare
12
10
13
-
You can export sFlow data of your network traffic to Cloudflare via Network Flow. There are [specific brands and models](/network-flow/routers/supported-routers/)of routers that are capable of generating sFlow data. Make sure to check the router specifications to ensure that it is able to export sFlow data. To configure sFlow exports to Network Flow, refer to [Configure sFlow](/network-flow/routers/sflow-config/).
11
+
To send sFlow data to Cloudflare, your router must support sFlow exports. Refer to [Supported routers](/network-flow/routers/supported-routers/) to verify compatibility, and [Configure sFlow](/network-flow/routers/sflow-config/) for setup instructions.
14
12
15
13
## Rule configuration fields
16
14
@@ -20,7 +18,7 @@ You can export sFlow data of your network traffic to Cloudflare via Network Flow
20
18
|**Rule type**| advanced_ddos |
21
19
|**Prefix Match**| The field `prefix_match` determines how IP matches are handled. <br/><br/>**Subnet** (recommended): Automatically advertise if the attacked IPs are within a subnet of a public IP prefix that can be advertised by Magic Transit.<br/><br/>**Exact**: Automatically advertise if the attacked IPs are an exact match with a public IP prefix that can be advertised by Magic Transit.<br/><br/>**Supernet**: Automatically advertise if the attacked IPs are a supernet of a public IP prefix that can be advertised by Magic Transit. |
22
20
|**Auto-advertisement**| If you are a [Magic Transit On Demand](/magic-transit/on-demand) customer, you can enable this feature to automatically enable Magic Transit if the rule's dynamic threshold is triggered. To learn more, refer to [Auto-advertisement](/network-flow/rules/#rule-auto-advertisement). |
23
-
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a Classless Inter-Domain Routing (CIDR) range such as `160.168.0.1/24`. The maximum is 5,000 unique CIDR entries. To learn more and see an example, refer to [Rule IP prefixes](/network-flow/rules/#rule-ip-prefixes). |
21
+
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a CIDR range such as `160.168.0.1/24`. The maximum is 5,000 unique CIDR entries. To learn more and see an example, refer to [Rule IP prefixes](/network-flow/rules/#rule-ip-prefixes). |
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/mnm/rules/static-threshold.mdx
+11-13Lines changed: 11 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@
4
4
5
5
import { DashButton } from"~/components";
6
6
7
-
A static threshold rule allows you to define a constant numeric threshold, in terms of bits or packets, for DDoS traffic monitoring. The total traffic across all IP prefixes and IP addresses in the rule is compared to the static rule threshold. If the total traffic exceeds the static rule threshold for the duration of the rule, then an alert is sent.
7
+
A static threshold rule monitors your network traffic against a fixed threshold you define, measured in bits or packets per second. Network Flow (formerly Magic Network Monitoring) compares total traffic across all IP prefixes and addresses in the rule against this threshold. If traffic exceeds the threshold for the configured duration, Network Flow sends an alert.
8
8
9
-
If you send NetFlow and/or sFlow data to Cloudflare, you can configure static threshold rules.
9
+
To use static threshold rules, you must send NetFlow or sFlow data to Cloudflare.
10
10
11
11
## Rule configuration fields
12
12
@@ -18,33 +18,31 @@ If you send NetFlow and/or sFlow data to Cloudflare, you can configure static th
18
18
|**Rule threshold**| The number of bits per second or packets per second for the rule alert. When this value is exceeded for the rule duration, an alert notification is sent. Minimum of `1` and no maximum. |
19
19
|**Rule duration**| The amount of time in minutes the rule threshold must exceed to send an alert notification. Choose from the following values: `1`, `5`, `10`, `15`, `20`, `30`, `45`, or `60` minutes. |
20
20
|**Auto-advertisement**| If you are a Magic Transit On Demand customer, you can enable this feature to automatically enable Magic Transit if the rule alert is triggered. Network Flow (formerly Magic Network Monitoring) supports Magic Transit's supernet capability. To learn more refer to [Auto-Advertisement section](#rule-auto-advertisement). |
21
-
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a CIDR (Classless Inter-Domain Routing) range such as `160.168.0.1/24`. Max is 5,000 unique CIDR entries. To learn more, refer to [Rule IP prefixes](#rule-ip-prefixes). |
21
+
|**Rule IP prefix**| The IP prefix associated with the rule for monitoring traffic volume. Must be a CIDR range such as `160.168.0.1/24`. Max is 5,000 unique CIDR entries. To learn more, refer to [Rule IP prefixes](#rule-ip-prefixes). |
22
22
23
23
## API documentation
24
24
25
25
To review an example static threshold rule, go to the [Rules](/api/resources/magic_network_monitoring/subresources/rules/) section in the Network Flow API documentation.
26
26
27
27
## Recommended rule configuration
28
28
29
-
You can create Network Flow rules to monitor the traffic volume of your network for a set of IP prefixes and/or IP addresses. The traffic volume threshold for these rules is also set by you. If the traffic volume threshold is crossed, Network Flow will send an alert via email, webhook, or PagerDuty.
30
-
31
-
Follow the guidelines in [Rule IP prefixes](#rule-ip-prefixes), [Rule threshold](#rule-threshold), and [Rule duration](#rule-duration) to create appropriate Network Flow rules and set accurate rule thresholds.
29
+
Follow the guidelines in [Rule IP prefixes](#rule-ip-prefixes), [Rule threshold](#rule-threshold), and [Rule duration](#rule-duration) to create appropriate Network Flow rules and set accurate thresholds.
32
30
33
31
### Rule IP prefixes
34
32
35
-
Cloudflare recommends that you start by creating one Network Flow rule for each public `/24` IP prefix within your network. It is helpful to include the range of the `/24`IP prefix to make it easier to find and filter for the rule in Network Flow analytics.
33
+
Cloudflare recommends starting with one Network Flow rule for each public `/24` IP prefix in your network. Including the range of the `/24` prefix in the rule name makes it easier to find and filter in Network Flow analytics.
36
34
37
-
As you become more familiar with the traffic patterns across each IP prefix, we encourage you to create more complex rules with IP prefixes that are smaller or larger than a `/24`prefix depending on your needs. You can also combine and monitor multiple IP prefixes within the same rule.
35
+
As you become more familiar with traffic patterns across each prefix, create more specific rules with IP prefixes smaller or larger than `/24` depending on your needs. You can also combine multiple IP prefixes in a single rule.
38
36
39
37
### Rule threshold
40
38
41
39
Follow the steps in [Initial rule configuration](#initial-rule-configuration) and [Setting the appropriate threshold](#setting-the-appropriate-threshold) to configure appropriate rule thresholds.
42
40
43
41
#### Initial rule configuration
44
42
45
-
When you initially configure Network Flow, you may not know the typical traffic volume patterns across each of your IP prefixes. Cloudflare recommends that you set a high rule threshold of either 10 Gbps (gigabits per second) or 10 Mpps (million packets per second) that is unlikely to be crossed during initial configuration.
43
+
When you first configure Network Flow, you may not know the typical traffic patterns for each IP prefix. Set an initial threshold high enough that it is unlikely to trigger during setup — Cloudflare recommends 10 Gbps or 10 Mpps.
46
44
47
-
This will allow you to collect initial information about the typical traffic volume for a Network Flow rule without receiving any alerts. After configuring your initial rules, you should begin monitoring for alerts and reviewing network traffic in Network Flow Analytics. Over time, each rule's threshold should be updated based on historical traffic data.
45
+
This lets you collect baseline traffic data without receiving alerts. After configuring your initial rules, monitor for alerts and review traffic in Network Flow Analytics. Over time, update each rule's threshold based on historical traffic data.
48
46
49
47
| Threshold type | Recommended rule threshold to collect initial data |
50
48
| :---- | :---- |
@@ -70,16 +68,16 @@ To find the maximum non-attack traffic for a one minute time interval over the p
70
68
| :---- | :---- | :---- |
71
69
|_Monitoring Rule_|_equals_|`<RULE_NAME>`|
72
70
73
-
Once the rule filter is selected in Network Flow Analytics, you can check the historical traffic volume data for the rule over the selected time period. We recommend that you check your historical traffic volume data in increments of seven days since that is the largest window that shows onehour time intervals. You can select a custom seven-day time range in Network Flow Analytics by going to the top right corner of Network Flow analytics, opening the time window drop-down menu, and selecting**Custom range**.
71
+
Once the rule filter is selected in Network Flow Analytics, you can check the historical traffic volume data for the rule over the selected time period. Cloudflare recommends reviewing historical data in seven-day increments, since that is the largest window that shows one-hour time intervals. To select a custom seven-day range, go to the top right corner of Network Flow analytics, open the time window drop-down menu, and select**Custom range**.
74
72
75
73
You should review the selected seven-day time range and identify the largest traffic volume peak. Then, click and drag on the largest traffic peak to view the traffic volume data for a smaller time window. Continue until you are viewing the traffic volume data in one-minute intervals.
76
74
77
75
Record the largest traffic volume peak for the rule in a spreadsheet, then repeat this process across 14-30 days of data. The rule threshold should be updated to be two times the largest traffic spike for a one minute time interval across 14-30 days of data. You should go through this process to set the threshold for each Network Flow rule.
78
76
79
77
### Rule duration
80
78
81
-
Your IP prefixes may experience inconsistent spikes in traffic volume across oneminute time intervals. We recommend that you set a rule duration of at least two minutes to reduce false positive alerts on short-term non-malicious traffic spikes. A rule duration of two minutes means that the traffic volume must be above the rule threshold for two minutes before an alert is fired.
79
+
Your IP prefixes may experience inconsistent spikes across one-minute intervals. Set a rule duration of at least two minutes to reduce false positive alerts from short-term non-malicious traffic spikes. A two-minute duration means traffic must stay above the threshold for two minutes before an alert fires.
82
80
83
81
### Adjusting rules over time
84
82
85
-
After you update your first set of rule thresholds based on historical traffic data, it will be important to monitor for Network Flow alerts to check if the rule thresholds are appropriate. You are encouraged to adjust the rule thresholds and the duration over time to find the ideal alert sensitivity level for your specific network environment.
83
+
After updating your first set of thresholds based on historical data, monitor for Network Flow alerts to verify the thresholds are appropriate. Adjust thresholds and duration over time to find the right alert sensitivity for your network environment.
Copy file name to clipboardExpand all lines: src/content/partials/networking-services/mnm/tutorials/ddos-testing-guide.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
{}
3
3
---
4
4
5
-
To test Cloudflare's Network Flow (formerly Magic Network Monitoring) in a repeatable manner, devise a simulated DDoS attack. At a high level, you need to:
5
+
To test Network Flow (formerly Magic Network Monitoring) in a repeatable manner, simulate a DDoS attack. At a high level, you need to:
6
6
7
7
1. Select and install a trusted, open source DDoS simulation tool.
8
8
2. Conduct a small DDoS test attack in a safe test environment.
@@ -14,7 +14,7 @@ You need to contact Cloudflare to obtain permission before conducting a DDoS tes
14
14
- Your property is hosted in Cloudflare.
15
15
- Internet traffic goes through Cloudflare before reaching your property.
16
16
17
-
Enterprise customers with Network Flow enabled must contact their Cloudflare Account Manager before starting DDoS testing, even if the property is not hosted in Cloudflare.
17
+
If you are an Enterprise customer with Network Flow enabled, contact your Cloudflare Account Manager before starting DDoS testing, even if the property is not hosted in Cloudflare.
18
18
19
19
Refer to [Simulating test DDoS attacks](/ddos-protection/reference/simulate-ddos-attack/) for more information.
0 commit comments