Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Tunnel And Proxy
Architecture & Implementation

Tunnel And Proxy

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Architecture & Implementation

Tunnel and proxy is a network access pattern that carries traffic through an intermediary service. A tunnel preserves the original protocol inside an encapsulated connection, while a proxy terminates one connection and opens another on the client’s behalf, changing how routing, filtering and inspection are applied.

What Tunnel And Proxy Means in Practice

A tunnel and a proxy are both intermediary patterns for moving traffic through a third party, but they change the network path in different ways. The key distinction is whether the original protocol is preserved end to end or terminated and re-established by the intermediary.

That distinction matters because it affects where inspection can happen, what metadata is exposed, how routing decisions are made, and which security controls can actually see the session. In practice, these patterns often sit between users, applications, and protected services, so they shape both access and visibility.

How Tunnels Work

A tunnel wraps one network flow inside another so the original protocol travels inside an encapsulated connection. This is common when traffic must cross an untrusted network, bypass an incompatible segment, or reach a destination through a controlled path while keeping the inner session semantics intact.

Because the outer connection carries the traffic, the tunnel can hide or preserve details of the inner protocol depending on how it is designed. That makes tunnels useful for confidentiality and reachability, but it also means security teams may lose direct inspection of the encapsulated traffic unless they terminate the tunnel at a controlled point.

Tunnels are often used in remote access, site-to-site connectivity, and secure transport arrangements where the goal is to move packets without changing the application protocol itself. Their value comes from transport continuity, not from reinterpreting the application conversation.

How Proxies Work

A proxy sits in the middle as the endpoint for one connection and the originator of a second connection. Unlike a tunnel, it does not simply carry the original protocol unchanged; it can inspect, filter, authenticate, log, transform, or block traffic before forwarding it onward.

This makes proxies especially useful when organisations want policy enforcement at the traffic boundary. Because the intermediary sees both sides of the exchange, it can enforce routing rules, content controls, domain restrictions, request validation, and monitoring that would be difficult to apply with a pure tunnel.

Proxies also change the trust model. The client is no longer speaking directly to the destination, so the proxy becomes a security and availability dependency. That creates a useful control point, but also a concentration point for failure, misconfiguration, or abuse.

Security Implications of Intermediary Network Paths

Tunnels and proxies can both reduce exposure when used deliberately, but they can also obscure where trust is being placed. A tunnel may protect traffic from passive observation while still allowing risky destinations or unmanaged access paths, and a proxy may enforce policy while also becoming a place where sensitive content, credentials, or headers are exposed to the intermediary.

For defenders, the main issue is that intermediary patterns change what can be seen, blocked, or attributed. If teams do not know whether a connection is tunneled or proxied, they may misunderstand which device is actually enforcing policy, which logs capture the session, and where compromise would leave the clearest trace.

Because these paths alter visibility and control boundaries, they are best understood as trust-shaping mechanisms rather than mere connectivity features. NIST SP 800-53 Rev 5 Security and Privacy Controls and NIST Cybersecurity Framework 2.0 both help frame the access, monitoring, and protective-control implications of those paths.

Choosing Between a Tunnel and a Proxy

The practical choice depends on what the organisation needs to control. Use a tunnel when the priority is transport continuity across an intermediate network, and use a proxy when the priority is inspection, policy enforcement, or protocol mediation at the boundary.

Architecturally, the question is not only how traffic moves, but where enforcement belongs. If inspection must happen before a destination is reached, a proxy is usually the more explicit control point. If the goal is to preserve the original flow while carrying it safely through another network, a tunnel is the closer fit.

In modern security designs, these patterns are often combined with segmentation and explicit trust enforcement. NIST SP 800-207 Zero Trust Architecture is a useful reference for thinking about how intermediary paths fit into verify-every-request and least-privilege design.

Risk and Threat Considerations

Intermediary traffic paths can create blind spots if teams assume every connection is equally observable. A tunnel can conceal malicious traffic inside an approved transport path, while a proxy can be abused as a trusted relay if authentication, allowlists, or inspection rules are too weak.

Failure mechanism: The control point is misplaced, misunderstood, or too permissive, so attackers or unauthorised users can blend into a legitimate intermediary path, bypass intended inspection, or exploit the proxy or tunnel endpoint as a trusted pivot.

Impact: Organisations may lose visibility into the real source and destination of traffic, allow data to traverse an unmonitored route, or expose downstream systems to hidden access, policy bypass, or lateral movement.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.CM-01 — Networks and Network Services are Monitored to Detect Potential Cybersecurity EventsTunnel and proxy paths affect what network activity can be monitored and attributed.
Recommendation — Monitor intermediary traffic paths to detect hidden or unexpected routing and forwarding behaviour.
NIST SP 800-53 Rev 5AC-4 — Information Flow EnforcementProxies and tunnels directly change where information-flow policy is enforced or bypassed.
IA-3 — Device Identification and AuthenticationIntermediary network paths often depend on authenticating endpoints or devices before access is granted.
AU-2 — Event LoggingProxy and tunnel decisions should be logged so the real control point can be audited.
Recommendation — Enforce information-flow rules at the intermediary that actually controls the traffic path. Authenticate devices and endpoints before allowing them onto tunneled or proxied paths. Log intermediary connection decisions, forwards, and blocks for later investigation.
NIST Zero Trust (SP 800-207)Zero Trust ArchitectureZero Trust explains how intermediary paths should still verify access rather than assume trust in the route.
Recommendation — Design tunnel and proxy use so every request is explicitly verified at the control point.

Practitioner Guidance

Why practitioners should care: The operational question is not whether traffic is “secure” in the abstract, but which layer is enforcing policy and which layer is merely carrying packets. A tunnel and a proxy can look similar from a routing perspective while producing very different inspection, logging, and trust outcomes.

What to watch for: Treat unexpected intermediary traffic, opaque egress paths, and undocumented forwarding services as design signals that the real control boundary may be elsewhere than the diagram suggests. That is often where visibility, attribution, and enforcement gaps emerge.

Practitioner takeaway: Name the intermediary, define its trust role, and verify that the control you expect to exist is the one actually making the decision.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org