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
By default, Cloudflare Gateway policies apply at all times when turned on. With timed DNS policies, you can control when DNS policies are active. You can configure a policy to be active during specific time periods or set the policy to expire after a certain duration.
11
11
12
-
There are two types of timed DNS policies:
12
+
There are two timed DNS policy options:
13
13
14
-
-[Scheduled policies](#scheduled-policies): The policy is active during a recurring weekly schedule (for example, weekdays from 9 AM to 5 PM).
15
-
-[Duration policies](#duration-policies): The policy is active for a specific amount of time after being turned on (for example, 30 minutes).
14
+
-[Policy duration](#policy-duration): The policy is active for a specific amount of time after being turned on (for example, 30 minutes).
15
+
-[Policy schedule](#policy-schedule): The policy is active during a recurring weekly schedule (for example, weekdays from 9 AM to 5 PM).
16
16
17
-
## Scheduled policies
17
+
## Policy duration
18
+
19
+
You can use a time-based policy duration to set a specific time frame for the policy to turn on or configure an exact time for the policy to turn off.
20
+
21
+
To set a duration for a DNS policy:
22
+
23
+
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Gateway** > **Firewall policies** > **DNS**.
24
+
2. Create a new DNS policy or choose an existing policy and select **Edit**.
25
+
3. In **Apply durations and schedules**, turn on **Policy duration**.
26
+
4. In **Input method**, choose the type of duration:
27
+
- Choose _Duration_ and enter a specific amount of time until the policy turns off.
28
+
- Choose _Exact end date_ and enter a specific date and time in your account's time zone for the policy to turn off.
29
+
5. Select **Save policy**.
30
+
31
+
When a policy turns off, it will remain off until you turn it back on.
32
+
33
+
Policies with a set duration will retain their duration when turned off or on. For example, you can create a policy at 12:00 PM and set it to turn off after six hours. If you turn the policy off at 3:00 PM and turn it back on 4:00 PM, the policy will still turn off at 6:00 PM, six hours after the original time.
34
+
35
+
### Reset a policy's duration
36
+
37
+
When a policy's time duration expires, you can turn the policy back on for the duration you originally configured. To reset a policy's duration, select the policy and choose **Reset policy duration**.
38
+
39
+
For policies with an exact end time, you can change the time before the policy turns off. Once the policy reaches its exact end time, you will need to edit the policy and set a new end time. To set a new exact end time:
40
+
41
+
1. Select the policy.
42
+
2. Choose **Edit**.
43
+
3. Turn on **Set a policy duration**.
44
+
4. In **Input method**, choose _Exact end date_. In **Date and time**, enter a new date and time for the policy to turn off.
45
+
5. Select **Save policy**.
46
+
47
+
## Policy schedule
18
48
19
49
You can use Gateway to create a new DNS policy with a schedule or add a schedule to an existing policy.
20
50
@@ -23,9 +53,9 @@ You can use Gateway to create a new DNS policy with a schedule or add a schedule
23
53
24
54
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Gateway** > **Firewall policies** > **DNS**.
25
55
2. Create a new DNS policy or choose an existing policy and select **Edit**.
26
-
3. In **Time-based settings**, turn on **Policy schedule**.
27
-
4.Choose a preset schedule or choose _Custom_to define a custom schedule. You can choose up to three non-overlapping time ranges of 15 minute intervals.
28
-
5.(Optional) Choose **Use user's timezone** to apply the policy based on the local time of the user making the DNS query, or choose **Enforce a specific timezone** to apply the policy based on the timezone you select, regardless of the user's location.
56
+
3. In **Apply durations and schedules**, turn on **Policy schedule**.
57
+
4.(Optional) In **Time Zone**, choose a time zone to apply the policy based on the time zone you select, regardless of the user's location. By default, Gateway will use the end user's time zone to apply the policy based on the local time of the user making the DNS query.
58
+
5.In **Schedule template**, choose a preset schedule, or choose _Custom schedule_ to define a custom schedule. You can choose up to three non-overlapping time ranges of 15 minute intervals.
29
59
6. Select **Save policy**.
30
60
31
61
</TabItem>
@@ -106,31 +136,3 @@ The following command creates a DNS policy to block `clockin.com` only on weeken
106
136
:::note
107
137
Gateway will not change the policy's `enabled` status when inside or outside of the time period specified. When enabled, Gateway activates or deactivates the policy according to its schedule. When disabled, the policy is always deactivated.
108
138
:::
109
-
110
-
## Duration policies
111
-
112
-
You can use a time-based policy duration to set a specific time frame for the policy to turn on or configure an exact time for the policy to turn off.
113
-
114
-
To set a duration for a DNS policy:
115
-
116
-
1. In [Zero Trust](https://one.dash.cloudflare.com), go to **Gateway** > **Firewall policies** > **DNS**.
117
-
2. Create a new DNS policy or choose an existing policy and select **Edit**.
118
-
3. In **Time-based settings**, turn on **Policy duration**.
119
-
4. In **Input method**, choose _Duration_ and enter a specific amount of time until the policy turns off or choose _Exact end date_ and enter a specific date and time in your account's time zone for the policy to turn off.
120
-
5. Select **Save policy**.
121
-
122
-
When a policy turns off, it will remain off until you turn it back on.
123
-
124
-
Policies with a set duration will retain their duration when turned off or on. For example, you can create a policy at 12:00 PM and set it to turn off after six hours. If you turn the policy off at 3:00 PM and turn it back on 4:00 PM, the policy will still turn off at 6:00 PM, six hours after the original time.
125
-
126
-
### Reset a policy's duration
127
-
128
-
When a policy's time duration expires, you can turn the policy back on for the duration you originally configured. To reset a policy's duration, select the policy and choose **Reset policy duration**.
129
-
130
-
For policies with an exact end time, you can change the time before the policy turns off. Once the policy reaches its exact end time, you will need to edit the policy and set a new end time. To set a new exact end time:
131
-
132
-
1. Select the policy.
133
-
2. Choose **Edit**.
134
-
3. Turn on **Set a policy duration**.
135
-
4. In **Input method**, choose _Exact end date_. In **Date and time**, enter a new date and time for the policy to turn off.
0 commit comments