Test your first application
You have now set up your Zero Trust organization, configured the Cloudflare One Client, installed it on devices, and created your Access and Gateway policies. The next step is to test those policies.
1. Manually test your policies
Test if the Access or Gateway policy that you configured is working by using a device with the Cloudflare One Client installed to reach an internal application or external website.
If you cannot reach an application protected by Access or an external application through Gateway as expected, Cloudflare recommends starting with reviewing your Cloudflare One Client configuration.
1.1. Troubleshoot the Cloudflare One Client
If your manual test fails, troubleshoot the Cloudflare One Client. Cloudflare recommends starting with reviewing your Cloudflare One Client configuration because misconfiguration is the most common cause of connectivity issues.
- WARP troubleshooting guide: Step-by-step instructions to debug Cloudflare One Client issues.
- Cloudflare One Client errors: If you are receiving an error, review the associated solutions.
- Cloudflare One Client connectivity status: Review the connectivity stage of the WARP daemon as it establishes a connection from the device to Cloudflare.
- WARP with Firewall: Ensure you have exempted the correct IP addresses and domains to allow the Cloudflare One Client to connect.
1.2. Review analytics
Analytics provide visualizations of log data. To review Access or Gateway analytics:
- In the Cloudflare dashboard, go to Zero Trust > Insights > Analytics > Dashboards.
- Select Access event analytics for a summary of login events or Application Access Report for a summary of overall Access Activity.
- Select the HTTP request analytics, DNS query analytics or Network session analytics depending on your Gateway investigation scope.
1.3. Review logs
Logs provide event-level (such as an authentication attempt or a DNS query) visibility into your Cloudflare One environment.
To review traffic activity for applications protected by Access:
- In the Cloudflare dashboard, go to Zero Trust > Insights > Logs.
- Select Access authentication logs.
- Review the per-request logs for your application.
To review traffic activity in the Gateway logs:
- In the Cloudflare dashboard, go to Zero Trust > Insights > Logs.
- Select HTTP request logs, Network logs, or DNS query logs depending on your investigation scope.
Refer to Troubleshoot Gateway to troubleshoot common issues with Gateway egress policies.
2. Monitor your policies and device connectivity
After you confirm your policies work by testing manually, use DEX to monitor connectivity and performance over time.
Refer to Digital Experience Monitoring (DEX) for more information.
Example use case
- Imagine that you have three devices, with the Cloudflare One Client installed, set up in your testing environment.
- You have set up a Cloudflare Tunnel and an Access policy for your internal wiki that is available at
wiki.acme.org. - You manually tested the three Cloudflare One Client devices, and you confirmed they can all reach
wiki.acme.org. - You want to set up automated connectivity and performance testing to
wiki.acme.orgfor each of these Cloudflare One Client devices so you can monitor them over time. - You set up a DEX test, and it sends an HTTP GET request to
wiki.acme.orgfrom all three devices on a five minute interval. - If device connectivity drops, or if there are performance problems, you can see the DEX test results to troubleshoot the problem.
2.1. Create a DEX test
Refer to DEX tests for more information.
HTTP test results
2.2. Set up notifications
Refer to DEX Notifications for more information on DEX-specific notifications.
Device anomaly notification setup
Customers who want to be notified when Cloudflare detects a spike or drop in the number of devices connected to the Cloudflare One Client can create a Device connectivity anomaly notification.
To create a device connectivity anomaly notification:
-
In the Cloudflare dashboard, go to the Notifications page.
-
Select Add.
-
Find Product DEX and Alert type Device connectivity anomaly, and choose Select.
-
Name the notification.
-
Enter an email address to receive the notifications or set up a webhook.
-
(Optional) Specify any additional options for the notification, if required. For example, some notifications require that you select one or more domains or services.
-
Select Create.
Refer to Notifications for more information on editing, testing, and disabling notifications.
Conclusion
Once your policies are live, you can use DEX tests and notifications to ensure your team has secure, reliable access to internal and external resources.
:::tip[How it all works together]
To learn how to use Logs, Analytics, and DEX together during real-world situations, like onboarding, daily monitoring, and troubleshooting, refer to Insights for more example use cases.
:::
谢谢你的反馈!