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/docs/magic-firewall/how-to/add-rules.mdx
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,21 @@ sidebar:
6
6
7
7
---
8
8
9
+
import { DashButton } from"~/components";
10
+
9
11
You can check for an existing root ruleset from the dashboard or via the [Account rulesets API](/api/resources/rulesets/methods/list/). If you are a new Magic Transit customer, you may not have a root ruleset created for your account. To view examples for root rulesets, review the [Magic Firewall Terraform documentation](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/magic_firewall_ruleset).
10
12
11
13
By default, you can create a maximum of 200 rules. We recommend you create lists of IP addresses to reference within rules to streamline rule management.
12
14
13
15
## Add a rule
14
16
15
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account.
16
-
2. Select **Magic Firewall**.
17
-
3. In the **Custom rules** tab, select **Add a Rule**.
18
-
4. Fill out the information for your new rule. All existing rules apply to IPv4. You can use a managed [IP list](https://www.cloudflare.com/en-gb/ips/) when populating the **Value**.
19
-
5. When you are done, select **Add new rule**.
17
+
1. In the Cloudflare dashboard, go to the **Magic Firewall** page.
2. In the **Custom rules** tab, select **Add a Rule**.
22
+
3. Fill out the information for your new rule. All existing rules apply to IPv4. You can use a managed [IP list](https://www.cloudflare.com/en-gb/ips/) when populating the **Value**.
23
+
4. When you are done, select **Add new rule**.
20
24
21
25
## Create a disabled rule
22
26
@@ -28,10 +32,12 @@ To disable an existing rule, from the **Magic Firewall Rules** page, set the **E
28
32
29
33
## Update a rule
30
34
31
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account.
32
-
2. Select **Magic Firewall** > **Custom rules**.
33
-
3. Locate the rule you want to edit, and select **Edit**.
34
-
4. Update the rule with your changes and select **Edit rule**.
35
+
1. In the Cloudflare dashboard, go to the **Magic Firewall** page.
Copy file name to clipboardExpand all lines: src/content/docs/magic-firewall/how-to/enable-managed-rulesets.mdx
+26-18Lines changed: 26 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ pcx_content_type: how-to
4
4
5
5
---
6
6
7
+
import { DashButton } from"~/components";
8
+
7
9
With [managed rulesets](/ruleset-engine/managed-rulesets/), you can quickly deploy rules maintained by Cloudflare, and you can use Magic Firewall to control which rules are enabled.
8
10
9
11
:::note[Note:]
@@ -138,13 +140,15 @@ To delete a ruleset, refer to [Delete a rule in a ruleset](/ruleset-engine/rules
138
140
139
141
You can also use the dashboard to enable managed rulesets.
140
142
141
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account.
142
-
2. Go to **Magic Firewall** > **Managed rules**.
143
-
3. Select **Deploy managed ruleset**.
144
-
4. The page will refresh and show you rulesets configured by Cloudflare that are available to your account. Choose the ruleset you want with **Select ruleset**. If you do not see the ruleset you want, contact your account manager to get a list of all Magic Firewall Managed rulesets.
145
-
5. Under **Ruleset configuration**, configure the **Ruleset action** from the drop-down menu. Cloudflare recommends you change this setting to **Log** to evaluate how the ruleset impacts your traffic before deciding on an action. For more information, refer to [Override a managed ruleset](/ruleset-engine/managed-rulesets/override-managed-ruleset/).
146
-
6. Still under **Ruleset configuration**, choose *Enabled* from the dropdown-menu for the **Ruleset status**. This will apply an override to the default status of all the rules in the ruleset.
147
-
7. Select **Deploy** to deploy the Magic Firewall Managed ruleset with no rule-level overrides.
143
+
1. In the Cloudflare dashboard, go to the **Magic Firewall** page.
2. In the **Managed rules** tab, select **Deploy managed ruleset**.
148
+
3. The page will refresh and show you rulesets configured by Cloudflare that are available to your account. Choose the ruleset you want with **Select ruleset**. If you do not see the ruleset you want, contact your account manager to get a list of all Magic Firewall Managed rulesets.
149
+
4. Under **Ruleset configuration**, configure the **Ruleset action** from the drop-down menu. Cloudflare recommends you change this setting to **Log** to evaluate how the ruleset impacts your traffic before deciding on an action. For more information, refer to [Override a managed ruleset](/ruleset-engine/managed-rulesets/override-managed-ruleset/).
150
+
5. Still under **Ruleset configuration**, choose *Enabled* from the dropdown-menu for the **Ruleset status**. This will apply an override to the default status of all the rules in the ruleset.
151
+
6. Select **Deploy** to deploy the Magic Firewall Managed ruleset with no rule-level overrides.
148
152
149
153
### Add rule-level overrides
150
154
@@ -154,21 +158,25 @@ On the other hand, if you did not apply Cloudflare’s recommendation in the pre
154
158
155
159
To add rule-level overrides in the dashboard:
156
160
157
-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login), and select your account.
158
-
2. Go to **Magic Firewall** > **Managed rules**.
159
-
3. In front of **Magic Firewall Managed ruleset**, select **Manage**.
160
-
4. Select **Browse rules**.
161
-
5. In the rule you need to change, select an **Action** from the drop-down to change its action, or use the toggle to disable or enable the rule.
162
-
6. Select **Next**.
163
-
7. Select **Save**.
161
+
1. In the Cloudflare dashboard, go to the **Magic Firewall** page.
Copy file name to clipboardExpand all lines: src/content/docs/magic-firewall/tutorials/graphql-analytics.mdx
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ reviewed: 2022-03-02
12
12
difficulty: Medium
13
13
---
14
14
15
+
import { DashButton } from"~/components";
16
+
15
17
Use the GraphQL Analytics API to review data for Magic Firewall network traffic related to rules matching your traffic. This contains both rules you configured in the Magic Firewall dashboard, and the rules managed by Cloudflare as a part of [Magic Firewall Managed rules](/magic-firewall/how-to/enable-managed-rulesets/) and [Magic Firewall IDS](/magic-firewall/about/ids/) features.
16
18
17
19
Before you begin, you must have an [API token](/analytics/graphql-api/getting-started/authentication/). For additional help getting started with GraphQL Analytics, refer to [GraphQL Analytics API](/analytics/graphql-api/).
@@ -29,11 +31,13 @@ To construct a Magic Firewall GraphQL query for an object, you will need a Cloud
29
31
30
32
To construct queries to gather analytics for a particular rule, you need the rule ID for each firewall rule.
31
33
32
-
1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/login), and select you account.
33
-
2. Select **Magic Firewall**.
34
-
3. Locate the rule you need the rule ID for from the list, and select **Edit**.
35
-
4. Locate the **Rule ID**, and select the copy button.
36
-
5. Select **Cancel** to return to the **Magic Firewall** page.
34
+
1. In the Cloudflare dashboard, go to the **Magic Firewall** page.
0 commit comments