Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Gateway Test, Device Connectivity, Policy Validation and Logs

How to verify Cloudflare Gateway and Cloudflare One Client traffic, test DNS and firewall policies, and troubleshoot tunnels and private apps.

This page summarises Cloudflare Zero Trust documentation on testing Gateway: confirming that enrolled devices send DNS, HTTP, and network traffic through Gateway, validating policies before rollout, and checking tunnels, WAN egress, and private applications when something does not behave as expected.

You typically run checks after onboarding the Cloudflare One Client, creating DNS or HTTP policies, connecting Cloudflare WAN, or publishing private resources through Cloudflare Tunnel. The goal is the same in each case: prove traffic actually traverses Cloudflare, then prove policies and routes match what you configured in the dashboard.

Cloudflare One Client: verify device connectivity to Gateway

Section titled “Cloudflare One Client: verify device connectivity to Gateway”

Before you trust policies or logs, confirm the device is enrolled and its queries and connections reach Gateway.

To validate that Cloudflare is receiving traffic from a user device:

In the Cloudflare dashboard ↗︎, go to Zero Trust > Traffic policies > Traffic settings. Under Log traffic activity, enable activity logging for all DNS logs. On your device, open a browser and go to any website. In the Cloudflare dashboard ↗︎, go to Zero Trust > Insights > Logs > DNS. Make sure DNS queries from your device appear.

— Cloudflare, Verify device connectivity

The same flow appears in DNS filtering get started and Gateway verify local connectivity. Enable logging first; without it, a “failed” test may only mean logging was off.

For HTTP filtering, enable all HTTP logs under Traffic settings, browse any site, then check Zero Trust > Insights > Logs > HTTP for your device’s requests (HTTP filtering get started).

For network policies, enable all Network logs, generate traffic, then open Network logs. Note the Client Interface IP and Public IP in the Cloudflare One Client (Profile and Settings) — those addresses should appear as Source IP in network logs (Network filtering get started).

Quick client protection check (IP/CIDR routes)

Section titled “Quick client protection check (IP/CIDR routes)”

Users on split-tunnel or private-network setups can open https://help.teams.cloudflare.com/ and confirm the page shows that the network is fully protected, WARP and Gateway Proxy are enabled in HTTP filtering, and the Team name matches the Zero Trust organization (Connect an IP/CIDR).

Gateway DNS policy test: browser, dig, and cache

Section titled “Gateway DNS policy test: browser, dig, and cache”

Test with a security category block policy

Section titled “Test with a security category block policy”

Cloudflare recommends a simple policy before wide DNS filtering deployment:

To ensure a smooth deployment, we recommend testing a simple policy before deploying DNS filtering to your organization.

— Cloudflare, Create a test policy

  1. In Traffic policies > Firewall policies, create a policy that blocks Security Categories → All security risks → Block (see Test a policy).

  2. Ensure the browser is not using an alternate DNS resolver (for example Chrome Use secure DNS sending queries to 1.1.1.1 and bypassing Gateway).

  3. Visit malware.testcategory.com. With the Cloudflare One Client in Traffic and DNS mode you should see the Gateway block page; in DNS-only mode you may see a generic error (Test a policy).

  4. In Logs > Gateway > DNS, confirm the blocked domain appears (Create a test policy).

For a domain blocked by DNS policy, use dig (macOS/Linux) or nslookup (Windows). With the block page disabled, expect REFUSED in the header; with the block page enabled, expect NOERROR and answers 162.159.36.12 and 162.159.46.12 (Test DNS filtering).

Category blocks can use each category’s test domain in the browser or via dig (Test DNS filtering).

After the first HTTP policy exists, visit a URL the policy should block and confirm the request is denied (HTTP filtering get started). For application testing with Access or Gateway together, use a device with the Cloudflare One Client and try the internal or external target; if access fails, review client configuration first (Test your first application).

Cloudflare WAN: test Gateway egress with ifconfig.me

Section titled “Cloudflare WAN: test Gateway egress with ifconfig.me”

On hosts behind customer premise equipment, browse to https://ifconfig.me (and use policy-based routing if Cloudflare is not the default route). Confirm an entry in HTTP Gateway Activity Logs with destination IP matching ifconfig.me, source IP the host’s private WAN address, and outbound connection sourced from a Cloudflare WAN IP, not a public IP Cloudflare advertises on your behalf (Cloudflare Gateway).

Test both http://ifconfig.me and https://ifconfig.me. If HTTPS hangs but HTTP works, MSS clamping may be wrong — reduce MSS on the CPE for IKE/ESP overhead (Cloudflare Gateway). The same guidance applies with Magic Transit With Egress Option.

Cloudflare One Client on-ramp (WARP + WAN)

Section titled “Cloudflare One Client on-ramp (WARP + WAN)”

Configure domain fallback for WAN FQDNs (default Zero Trust exclusions skip many local TLDs). After enabling WARP integration within the last day, log off and on in the client. Run nslookup for a server behind Cloudflare WAN, then open a WAN-only page in a browser, including by IP (WARP test integration).

For setups such as UniFi, verify Connector health shows Up in Cloudflare and VPN Connected on the router (Ubiquiti).

Cloudflare Tunnel test: private routes, hostnames, and egress

Section titled “Cloudflare Tunnel test: private routes, hostnames, and egress”

From behind CPE, browse to an IP or hostname reachable via a private network route (for example 10.1.2.3). If the app loads, the tunnel is handling traffic as configured (Cloudflare Tunnel). For traceroute through GRE, IPsec, CNI, or WARP to targets behind a tunnel, adjust settings per Run traceroute (linked from that page).

End users reach apps at the private hostname (for example wiki.internal.local) (Connect a private hostname).

From a device, open a site such as app.bank.com and search Gateway DNS logs for public resolved IPs and initial resolved IP; check tunnel logs for routing to those IPs (Egress through Cloudflare Tunnel).

With the Cloudflare One Client connected, run the gRPC client; success plus tunnel logs showing requests to the server confirm the path (gRPC use case).

Device-to-network VPN replacement: verify private access

Section titled “Device-to-network VPN replacement: verify private access”

After connecting, reach a private resource (for example http://10.0.1.100 or ssh to 10.0.1.50) (Device to network). By default, enrolled devices may reach the full private network until you add Gateway and Access controls (Device to network).

Troubleshoot private networks: DNS, routing, policies

Section titled “Troubleshoot private networks: DNS, routing, policies”

Work through these when a private app does not load (Troubleshoot private networks, Connect a private hostname).

nslookup wiki.internal.local should resolve via WARP’s DNS proxy to a Gateway initial resolved IP (for example 172.64.128.48). Wrong or missing answers point to Local Domain Fallback or resolver policies (Connect a private hostname).

For custom resolver policies, search Gateway DNS logs for the hostname; for Local Domain Fallback, search Network logs for port 53 to your DNS server. No logs mean WARP did not forward the query (Troubleshoot private networks).

Traffic through the Cloudflare One Client interface

Section titled “Traffic through the Cloudflare One Client interface”

Network logs should show traffic to the application IP. If the client is connected but there are no logs, private IPs may not route via WARP — check the routing table and Split Tunnel (Troubleshoot private networks).

Filter Insights > Logs (DNS, Network, or HTTP) by user email, Event: Blocked, and time range. To see which policy applied, filter by destination IP or FQDN, note Policy Name, and compare order in Traffic policies > Firewall policies (Troubleshoot private networks).

For HTTPS private apps, Error 526 can mean Gateway could not validate the origin certificate; an HTTP Allow policy with untrusted certificate action Pass through may be required (Connect a private hostname).

Tunnel health and Access for infrastructure (SSH)

Section titled “Tunnel health and Access for infrastructure (SSH)”

In Networking > Routes (or Networks > Targets), open the tunnel from the route’s connector column. Status should be Healthy (four connections); Inactive, Down, or Degraded each have documented remediation (SSH with Access for Infrastructure).

For Access denials, review Insights > Logs > Access authentication logs, filter by application or Infrastructure app type, and check Decision. Adjust policies under Access controls > Applications (SSH with Access for Infrastructure).

Tunnel status Meaning (summary) First action
Healthy Active, four connections to Cloudflare None
Inactive Tunnel created but cloudflared never connected Install and run connector
Down Was connected; process stopped Restart cloudflared, check host/network
Degraded Running but some connections failed Review cloudflared logs and firewall

(Source: SSH with Access for Infrastructure)

Why a Gateway block policy still allows the domain

Section titled “Why a Gateway block policy still allows the domain”
Cause What to check
Policy still propagating Wait ~60 seconds after create or edit (Policies FAQ)
Alternate DNS resolver Remove non-Gateway resolvers; watch browser DoH endpoints (Policies FAQ)
DNS policy not on a DNS location Assign policy to the location sending queries (Policies FAQ)
Cached DNS answer Clear browser/OS DNS cache (Test DNS filtering)
Network policy vs open connection Close tabs or restart browser; policies apply on new connections (Policies FAQ)

After onboarding your devices and users, use these tools to confirm everything is set up correctly and to monitor your organization’s activity.

Start with Logs to validate initial configuration and confirm that authentication is successful. Use Analytics Overview to confirm expected patterns and policy activity.

— Cloudflare, Insights

If Gateway Overview analytics are empty: verify devices send DNS to Gateway and DNS location source IPv4 is correct, remove other resolvers on the device, and wait up to 5 minutes for processing (Gateway troubleshooting).

  1. In the Cloudflare dashboard, enable DNS, HTTP, or Network activity logging under Zero Trust > Traffic policies > Traffic settings, browse from an enrolled device, and confirm entries under Insights > Logs.

  2. Create a test DNS block for All security risks, visit malware.testcategory.com, and confirm the block page or dig result per Test DNS filtering.

  3. For WAN egress, follow the ifconfig.me checks and log fields in Cloudflare Gateway.

  4. For private apps, validate hostname resolution, tunnel Healthy status, and Gateway logs using Troubleshoot private networks.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.