Skip to content

Commit

Permalink
Add DNS policy partial
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvp committed Dec 11, 2024
1 parent 6502697 commit f1eeb6b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To filter DNS requests from an individual device such as a laptop or phone:

1. [Install the WARP client](/cloudflare-one/connections/connect-devices/warp/deployment/) on your device.
2. In the WARP client Settings, log in to your organization's <GlossaryTooltip term="team name">Zero Trust instance</GlossaryTooltip>.
3. (Optional) If you want to display a [custom block page](/cloudflare-one/policies/gateway/block-page/), [install the Cloudflare root certificate](/cloudflare-one/connections/connect-devices/user-side-certificates/) on your device.
3. (Optional) If you want to display a [custom block page](/cloudflare-one/policies/gateway/block-page/), [install a Cloudflare root certificate](/cloudflare-one/connections/connect-devices/user-side-certificates/) on your device.

### Connect DNS locations

Expand All @@ -44,20 +44,16 @@ Gateway identifies locations differently depending on the DNS query protocol:

## 2. Verify device connectivity

To verify your device is connected to Zero Trust:

<Render
file="gateway/verify-connectivity"
params={{ one: "DNS", two: "queries" }}
/>

## 3. Add recommended policies

To create a new DNS policy, go to **Gateway** > **Firewall policies** > **DNS** in Zero Trust. We recommend adding the following policy:

### Block all security categories

Block [known threats](/cloudflare-one/policies/gateway/domain-categories/#security-categories) such as Command & Control, Botnet and Malware based on Cloudflare's threat intelligence.
## 3. Create your first DNS policy

<Render file="gateway/policies/block-security-categories" />
<Render file="gateway/get-started/create-dns-policy" />

## 4. Add optional policies

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,4 @@ DNS policies determine how Gateway should handle a DNS request. When a user send

You can filter DNS traffic based on query or response parameters (such as domain, source IP, or geolocation). You can also filter by user identity if you connect your devices to Gateway with the [WARP client or Cloudflare One Agent](/learning-paths/secure-internet-traffic/connect-devices-networks/install-agent/).

To create a new DNS policy:

1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **Gateway** > **Firewall policies**.
2. In the **DNS** tab, select **Add a policy**.
3. Name the policy.
4. Under **Traffic**, build a logical expression that defines the traffic you want to allow or block.
5. Choose an **Action** to take when traffic matches the logical expression. For example, we recommend adding a policy to block all [security categories](/cloudflare-one/policies/gateway/domain-categories/#security-categories):
<Render
file="gateway/policies/block-security-categories"
product="cloudflare-one"
/>
6. Select **Create policy**.

For more information, refer to [DNS policies](/cloudflare-one/policies/gateway/dns-policies/).
<Render file="gateway/get-started/create-dns-policy" product="cloudflare-one" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
{}
---

import { Render } from "~/components";

To create a new DNS policy:

1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **Gateway** > **Firewall policies**.
2. In the **DNS** tab, select **Add a policy**.
3. Name the policy.
4. Under **Traffic**, build a logical expression that defines the traffic you want to allow or block.
5. Choose an **Action** to take when traffic matches the logical expression. For example, we recommend adding a policy to block all [security categories](/cloudflare-one/policies/gateway/domain-categories/#security-categories):
<Render
file="gateway/policies/block-security-categories"
product="cloudflare-one"
/>
6. Select **Create policy**.

For more information, refer to [DNS policies](/cloudflare-one/policies/gateway/dns-policies/).

0 comments on commit f1eeb6b

Please sign in to comment.