A tunnel-based pattern keeps the service reachable through a controlled private path, while direct exposure publishes the service endpoint to anyone who can reach it. The tunnel approach reduces firewall changes, limits the visible attack surface, and makes access control easier to centralise. Direct exposure can be simpler at first, but it usually creates more ongoing security and maintenance work.
Why the access path changes the security model
A tunnel-based pattern changes where trust is placed. Instead of publishing the service endpoint to the whole internet, you expose a controlled path that can enforce policy, reduce unsolicited traffic, and keep the application out of broad addressable reach. That usually means fewer perimeter openings, fewer exposed ports, and less need to harden the service as if it were a public-facing asset.
Direct exposure is the opposite trade-off: the service becomes discoverable and reachable by any source allowed by network rules, so the team must secure the endpoint itself, not just the path into it. ZTNA Guide is useful here because it shows how per-application access can replace broad network reach with narrower, policy-driven access.
What changes operationally when services are not public
With tunnelling, the operational burden shifts from public perimeter management to controlled connectivity management. You still need strong authentication, policy enforcement, logging, and revocation, but you are no longer relying on the service being safely exposed to the open internet. This is often a better fit for internal apps, admin portals, and systems where the acceptable user population is known.
Direct exposure is simpler to publish but harder to keep small in practice. Every new listener, route, allowlist exception, certificate, or reverse-proxy rule becomes part of the service’s security posture. If the access model is not tightly governed, “temporary” exposure can become permanent, and the service’s public surface tends to grow over time.
The access-control question matters as much as the network question. Authorisation Models Guide is relevant because a tunnel only reduces exposure if the policy behind it is precise enough to decide who can reach which application and under what conditions.
How to think about risk, exposure, and architecture choice
The main security difference is blast radius. A tunnel reduces the number of parties that can even try to reach the service, which helps with exposure, scanning noise, brute-force attempts, and opportunistic abuse. Direct exposure can be perfectly valid for some services, but it raises the bar for hardening because the service itself becomes the front door.
For organisations already using identity-aware access, posture checks, or segmented remote access, tunnelling usually fits the same control pattern better than raw internet publishing. It also makes it easier to centralise access decisions and logging, which helps when you need to prove who had access, when, and through which policy path. Conditional Access Guide is a good companion reference for the policy side of that model.
When the service must be public, treat it as a design decision, not a convenience choice. You should then assume the endpoint will be scanned, probed, and automated against continuously, so the control set needs to include authentication, rate limiting, monitoring, and a clear patch and configuration discipline.
Risk and Threat Considerations
Directly exposing a service increases the chance that attackers can find and test it, especially when the service offers login, API, admin, or file-transfer functionality. A tunnel reduces that exposure by narrowing who can reach the service at all, but it does not remove the need to secure the application, credentials, or upstream authorization.
Failure mechanism: Public exposure turns the service into an internet-facing target, so weak authentication, misconfiguration, or an overlooked administrative endpoint can be attacked directly rather than through a mediated path.
Impact: The likely result is a larger attack surface, higher monitoring and maintenance load, and a greater chance that a single exposed service becomes an entry point for compromise or service abuse.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, NIST CSF 2.0, CIS Controls v8 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-4 — Information Flow Enforcement | Controls which traffic may reach a service through a tunnel or directly. |
| IA-2 — Identification and Authentication (Organizational Users) | Tunnel-based access still depends on strong user authentication before access is granted. | |
| Recommendation — Enforce explicit access paths and restrict service reachability to approved flows. Require strong authentication before allowing access through the tunnel. | ||
| NIST CSF 2.0 | PR.AA-05 — Identity Management, Authentication, and Access Control | The access pattern hinges on centralising and tightening access decisions for the service. |
| Recommendation — Centralise access control so only approved users can reach the service. | ||
| CIS Controls v8 | CIS-6 — Access Control Management | The comparison is fundamentally about reducing exposure and governing who can reach services. |
| Recommendation — Limit service reachability and remove unnecessary public access paths. | ||
| NIST Zero Trust (SP 800-207) | Zero Trust Architecture | Tunnel-based access is an architectural example of mediated, policy-based access instead of open reachability. |
| Recommendation — Apply per-request policy checks instead of trusting network location alone. | ||
Practitioner Guidance
What to verify: Confirm whether the service actually needs public reachability or whether application-level access through a tunnel satisfies the use case. If the answer is “only a known user base,” default to the narrower path and document the exception if you still publish it directly.
What good looks like: The service is reachable only through an access layer that enforces policy, logs activity, and can be revoked centrally. Public exposure should be the exception, with a defined owner, review cycle, and rollback plan.
Common mistake: Teams often treat tunnelling as “set and forget” infrastructure. The real control value comes from the policy, identity, and logging around it, not from the tunnel itself.
Practitioner takeaway: Prefer the access pattern that reduces reachable surface area while preserving the control you need, because the secure option is usually the one that makes exposure deliberate instead of accidental.
Related resources from NHI Mgmt Group
- Why do private data source integrations reduce risk compared with public exposure and tunnel-based access?
- What is the difference between exposing services directly to the internet and connecting them through private device-to-device access?
- How should security teams expose NAS storage to remote users without opening it directly to the public internet?
- How should security teams implement header-based authentication for internal tools without exposing the application directly to the public internet?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org