~/t/g/cloudflare $

Cloudflare Access not asking for login? Check coverage

gist Check the protected hostname, policy rules and alternate routes, then verify access with signed-out, allowed and denied browser sessions.

contents
  1. Step 1: Separate the tunnel from the login gate
  2. Step 2: Check the protected hostname and paths
  3. Step 3: Read the policy as a permission rule
  4. Step 4: Look for rules that open access
  5. Step 5: Check routes around Access
  6. Step 6: Test signed-out, allowed and denied sessions
  7. Compare the access options
  8. Common questions

If your tunnel service opens without a login, check Cloudflare Access hostname coverage and policies. A tunnel alone does not require visitors to log in (Cloudflare’s setup documentation).

I reach my home services through Cloudflare Tunnel without opening ports.

Have the public hostname, permission to manage its Cloudflare settings, and two test identities ready: one that should be allowed and one that should be denied.

Step 1: Separate the tunnel from the login gate

For a public web application protected by Access, the request follows this order:

Browser request → Cloudflare Access policy → Tunnel to the application

Tunnel uses outbound connections from your server. It does not require an inbound firewall opening. A connected tunnel shows connectivity to Cloudflare; it does not prove that users need permission to reach the application. Cloudflare Tunnel overview

Diagram: Access checks a request before the tunnel forwards it to the application; a tunnel route alone adds no login gate.
Access sits in front of the tunnel. Take it away and the tunnel still forwards every request.

Step 2: Check the protected hostname and paths

In Zero Trust → Access controls → Applications, find the self-hosted application for your service.

Compare its hostname with the URL people actually use. An application covering app.example.com must match that hostname. If protection covers only a path, check which other paths remain reachable.

For a new service, create the Access application and policies before publishing the route. Configure the login method users will use. Self-hosted application setup

List any other hostname that reaches the same service. Review each one. Protecting one URL does not protect an alternate route automatically.

Step 3: Read the policy as a permission rule

Review the policy fields:

Application type: Self-hosted
Public hostname: app.example.com
Path: No path restriction
Policy action: Allow
Include selector: Emails ending in
Include value: @example.com

This policy allows users whose authenticated identity has an email address ending in @example.com. Use the specific group or identities your service needs. A domain rule permits everyone who can authenticate with a matching address. Cloudflare’s email-domain policy example

Read the rule types carefully:

  • Allow grants entry when the policy matches.
  • Include selects eligible users. Multiple Include rules use OR: matching one is enough.
  • Require adds conditions that must all match.
  • Exclude removes matching users from the policy.

Access denies requests by default when no permission policy matches. That default applies to a protected Access application, not every tunnel hostname. Access policy rules

Step 4: Look for rules that open access

Review every policy attached to the application.

Allow → Include → Everyone grants broad access. It does not limit entry to your chosen users. Common policy mistakes

Bypass skips Access security controls and request logging for matching traffic. If a webhook needs public access, scope its exception to the required endpoint. Keep any authentication required by the webhook itself. Bypass policy guidance

Check policy order too. Access evaluates Bypass and Service Auth policies before Block and Allow policies. A Block rule listed above a Bypass does not override that evaluation order. Policy-order FAQ

Cloudflare also offers Require Access protection, which blocks hostnames without a matching Access application. Before enabling it, review all public sites in the account and any hostname exemptions. Its scope reaches beyond a single home service. Require Access protection

Step 5: Check routes around Access

Review old port forwards, alternate public hostnames and other proxies that reach the application. Remove unintended public routes or protect them separately.

Cloudflare’s setup instructions require validation of the Access application token at the origin. Enable Protect with Access in the tunnel settings to have cloudflared validate it, or configure the application’s origin to validate tokens itself. Origin protection instructions

Validation in cloudflared covers requests passing through that connector. Keep direct origin access restricted as well.

Keep the application’s own account permissions. Access controls entry; the application still needs to decide what each user may do.

Step 6: Test signed-out, allowed and denied sessions

Use separate browser profiles or fresh sessions. An existing Access login can hide a missing login prompt.

Check Expected result What to review if it fails
Signed out Access asks for authentication or blocks the request before protected application content appears. Hostname and path coverage, broad permissions and Bypass rules.
Allowed identity Authentication succeeds and the intended application loads. Login method, policy conditions, token validation and routing.
Denied identity Access denies entry even when identity-provider sign-in succeeds. Other permission policies and rules that allow too many users.

Access can show a Forbidden page when it already knows the request cannot satisfy a policy. A login screen is not the only valid signed-out result. Access response FAQ

Repeat the checks for important paths and alternate hostnames. Record the URL, session type and result. Recheck after changing policies or publishing another route.

Compare the access options

Option Where it controls access Useful when Tradeoff
Cloudflare Access Before a protected request reaches the application You want a shared login gate for browser services Review hostname coverage, policies and client compatibility.
Application authentication Inside the application You need native accounts and permissions Public requests still reach the application’s login surface.
Authentik or Authelia Through an authentication service and reverse proxy You want to host the login service yourself Maintain the service and its proxy integration.
VPN-only access At the private network connection Only enrolled devices need the service Clients need VPN support, and public routes must remain closed.

Authentik supports forward authentication with an existing reverse proxy. Authelia also integrates with reverse proxies to control access. Authentik documentation, Authelia overview

A VPN such as WireGuard authenticates configured peers and carries network traffic. Keep application permissions in place too. WireGuard overview

Common questions

Does Cloudflare Tunnel require users to log in?

No. A published tunnel route alone adds no user login requirement. Configure a matching Access application and policies to restrict entry. Cloudflare’s setup documentation

Why can I open my service without a login prompt?

Your browser may already have a valid Access session. Try a fresh browser profile. Then check hostname and path coverage, Include Everyone rules, Bypass policies and alternate routes.

Do I need a Block Everyone policy?

Usually no. Access denies entry by default within a protected application. Define who may enter, then check for policies that grant broader access. Access policy documentation

Does successful sign-in mean a user is allowed?

No. Sign-in identifies the user. The policy decides whether that identity meets the conditions for entry. Test an identity that can sign in successfully but should be denied.

Should I use Bypass when a native app cannot log in?

Bypass removes Access protection for matching requests. Check the client’s authentication support first, or use private access. Read Cloudflare Access and native apps for that decision.

Related: Cloudflare guides.

../cloudflare/ every Cloudflare guide