Back to Articles

Zero Trust Network Security

Contents

Introduction — The Port Scan That Found Nothing

In early 2024, a vulnerability researcher ran a routine internet-wide scan targeting a specific VPN appliance. Within hours, they had a list of 40,000 exposed devices. Within days, proof-of-concept exploit code was circulating. Within weeks, ransomware groups were using it to breach organizations that hadn't patched yet. (CVE-2024-0217, CVSS 9.8.)

This pattern repeats every few months. A critical vulnerability in a perimeter appliance — VPN, RDP gateway, Citrix ADC — is disclosed. Attackers scan for exposed instances. Organizations that can't patch within hours are breached. The root cause is not the vulnerability — it's the decision to put application access behind a network appliance with open inbound ports.

Zero Trust architecture eliminates this entire class of vulnerability by removing the inbound port. In a tunnel-based Zero Trust Network Access (ZTNA) model, there is nothing to scan. No VPN to exploit. No RDP gateway to brute-force. The application server initiates an outbound connection to a secure edge provider, and that provider decides who gets through based on identity, not network location.

This article examines the ZTNA landscape — vendors, architecture, configuration, real-world limitations — and helps you decide when and how to adopt it.

Industry Push for Zero Trust

  • U.S. Executive Order 14028 (May 2021): Mandated all federal agencies to develop Zero Trust architecture plans. The resulting CISA Zero Trust Maturity Model now drives procurement requirements for federal contractors.
  • Remote and hybrid work: Pre-2020, the corporate perimeter was the office. Now, employees access applications from home, coffee shops, and co-working spaces. The VPN concentration point — which was designed for occasional remote access — has become a permanent, high-value target.
  • Ransomware economics: Attackers have learned that perimeter appliances (VPNs, RDP, Citrix) are the most efficient entry points. A single zero-day in a widely-deployed VPN appliance can yield thousands of breaches. Eliminating inbound ports makes this attack model unprofitable.
  • Insurance and customer requirements: Applications may be expected to use MFA, controlled remote access, and documented segmentation. Confirm the exact controls with the insurer, customer, or assessor rather than assuming a product label satisfies them.

Vendor Comparison

The ZTNA market has matured rapidly. Here is how the major platforms compare:

VendorArchitectureCommercial ModelSelf-Hosted ComponentEvaluate For
Cloudflare Zero TrustCloud edge plus outbound connectorsUser and service tiers; verify current quoteConnectorApplication access and integration with Cloudflare's edge
ZscalerCloud-delivered proxy and access brokerSubscription and modules; verify current quoteConnectorLarge distributed estates needing inspection and policy integration
TailscaleWireGuard-based mesh with coordination serviceUser and feature tiers; verify current quoteOptional relay and subnet routersDevice and administrative access with direct peer paths where available
OpenZitiIdentity-aware overlay networkOpen-source software plus optional commercial servicesYesCustom and self-hosted overlay designs
TwingateCloud coordination plus outbound connectorsUser and feature tiers; verify current quoteConnectorApplication access with a managed control plane

The key architectural difference is tunnel vs. proxy. Cloudflare Tunnel and OpenZiti create persistent encrypted tunnels from your server to the edge. Zscaler acts as an inline proxy, inspecting traffic in real time. Tailscale creates a mesh network where every node connects directly to every other node (where possible) using WireGuard. Each model has trade-offs in latency, troubleshooting complexity, and inspection capability.

Tunnel-Based Architecture

In a tunnel-based ZTNA model, the flow is:

  1. A lightweight tunnel client (cloudflared, ziti-edge-tunnel) runs on each application server
  2. The client creates one or more outbound encrypted connections to the provider's edge network
  3. Users connect to the provider's edge (which terminates TLS at the edge)
  4. The edge forwards the request through the tunnel to the application server
  5. The application server sees the request as coming from localhost (or the tunnel's IP) — no inbound firewall rules are needed

This architecture has a critical security property: the application server is not reachable from the internet under any circumstances. Port scans, vulnerability scanners, and direct attacks are impossible because there are no open ports. The tunnel is initiated from inside the network — the firewall only needs to allow outbound HTTPS to the provider's IPs.

Example Configuration

Setting up Cloudflare Tunnel for an application on port 8443:

# Step 1: Install cloudflared
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared.deb

# Step 2: Authenticate and create a tunnel
cloudflared tunnel login          # Opens browser to authenticate
cloudflared tunnel create my-tunnel  # Creates tunnel credentials

# Step 3: Route your domain through the tunnel
cloudflared tunnel route dns my-tunnel app.example.com

# Step 4: Configure which local service receives traffic
# /etc/cloudflared/config.yml
tunnel: my-tunnel
credentials-file: /root/.cloudflared/my-tunnel.json

ingress:
  - hostname: app.example.com
    service: http://localhost:8443
  - service: http_status:404

# Step 5: Install as a system service
sudo cloudflared service install
sudo systemctl start cloudflared

After these steps, app.example.com is accessible over HTTPS with TLS termination, DDoS protection, and WAF rules provided by Cloudflare — and the application server has zero open inbound ports.

Limitations and Gotchas

Zero Trust tunnels are powerful, but they are not a silver bullet. Here are the real-world limitations to understand before deploying:

  • Latency overhead: Traffic no longer travels straight from the user to your server. It goes out to the provider's nearest edge location first, then back down the tunnel to the application — a detour known as hairpinning. A user in Sydney accessing an application in San Francisco may see 200-400ms additional latency compared to a direct connection. For latency-sensitive applications (real-time dashboards, VoIP), this matters.
  • Troubleshooting complexity: A server-side packet capture still shows whether the tunnel process reached the application, but the network peer may be the local connector or provider edge rather than the original client. Client identity and address may live in proxy headers, tunnel logs, or edge analytics instead. Troubleshooting therefore spans the server, the connector, and the provider dashboard rather than one packet capture.
  • Bandwidth limits on free tiers: Cloudflare's free tier for Zero Trust limits users and bandwidth. Heavy file transfers or streaming media through a free-tier tunnel will hit limitations. Bandwidth-heavy applications need a paid plan.
  • Provider dependency: If Cloudflare, Zscaler, or your chosen provider has an outage, your application becomes unreachable. Tunnel health is now a critical dependency that must be monitored independently.
  • Not a substitute for all firewall rules: Zero Trust tunnels protect application-layer traffic. They do not protect outbound-initiated connections, DNS traffic, or server-to-server communication that doesn't go through the tunnel. A defense-in-depth approach still requires host-level firewalls, network segmentation, and egress filtering.

Who Monitors the Tunnel?

This is one of the most commonly overlooked operational concerns with ZTNA: the tunnel itself must be monitored. If the cloudflared process crashes or the tunnel connection drops, the application becomes unreachable even though the server itself is healthy.

Best practices for tunnel monitoring include:

  • Process monitoring: Ensure the tunnel service is running (systemd, supervisor, or monitoring agent).
  • Endpoint health checks: Use an external monitoring service (Pingdom, Grafana, Uptime Robot) to periodically check your application's public URL. This catches both application failures and tunnel failures.
  • Tunnel metrics: Prometheus exporters are available for cloudflared that expose connection count, latency, and error rates for integration into your existing monitoring stack.
  • Redundant tunnels: For critical applications, deploy tunnel clients on multiple servers with load balancing at the edge. Cloudflare supports multiple tunnel connections for redundancy.

Failure Drills Before Broad Rollout

ZTNA puts identity, policy, connectors, and their control plane on the path to an application. Test each dependency as a failure domain before replacing the fallback path.

  • Stop one connector and then an entire connector site. Confirm existing and new sessions behave as designed and monitoring identifies the lost capacity.
  • Make identity or device-compliance evaluation unavailable. Verify whether access fails closed, uses a cached decision, or follows an emergency policy.
  • Revoke a user, disable a device, and remove an application entitlement. Measure how long an active session remains usable.
  • Exercise the break-glass path from a clean device and a documented location. Record who can invoke it, how it is time-limited, and which alert fires.

Expansion gate: migrate the next application group only when connector loss, identity failure, access revocation, and break-glass use have produced the expected result and an actionable alert.

The Bottom Line

Zero Trust tunnels represent a fundamental improvement over the VPN-centric perimeter model. They eliminate entire categories of vulnerability, reduce firewall complexity, and provide identity-aware access control at the edge. For any organization with public-facing applications, the case for ZTNA is compelling.

However, ZTNA is not a migration you do overnight. Start with one application — ideally a low-risk, non-latency-sensitive tool like a wiki or status dashboard. Deploy the tunnel, validate the access policies, train users on the new experience, and monitor the tunnel health. Once you've proven the model, expand to additional applications.

The organizations that will benefit most are those already struggling with VPN capacity, firewall rule sprawl, or frequent perimeter-appliance patching emergencies. For them, ZTNA is an operational relief.

ROI Analysis

Build the ZTNA case from the applications and users being migrated. Count current VPN licenses and appliances, inbound firewall changes, perimeter patch emergencies, support tickets, and the incident exposure of each published service. Compare those with connector redundancy, identity licensing, policy administration, logging, and user support. Credit the design only for attack paths it removes; compromised identities, vulnerable applications, and malicious insiders still require separate controls.

← Back to Articles ← Previous: Building High-Availability Infrastructure Next: Automating SSL Certificate Management →