Main menu
Definition

Tunnel

A tunnel is a private network route for transferring encapsulated data packets across a network. Learn how tunneling works, the most common tunneling protocols, how tunnels relate to VPNs, and what they mean for security.

DTDevolutions Team·November 12, 2026·2 min read

What is a tunnel?

In networking, a tunnel is a way of carrying one network's traffic inside another network's packets. The original packets are wrapped, or encapsulated, in a new outer packet that can travel across the intermediate network, such as the internet. At the far end, the outer packet is removed and the original traffic continues as if the two endpoints were directly connected. Tunnels are often, but not always, encrypted.

How does a tunnel work?

  1. A tunnel endpoint receives a packet destined for the remote network.
  2. It encapsulates the packet inside another protocol's packet, adding a new header addressed to the other tunnel endpoint, and encrypts it if the tunnel is secure.
  3. The outer packet crosses the intermediate network like any other traffic.
  4. The receiving endpoint removes the outer layer, decrypts if needed, and forwards the original packet.

Common tunneling protocols include IPsec, GRE, L2TP, WireGuard, OpenVPN, and SSH tunnels (port forwarding). IPv6 traffic can also be tunneled over IPv4 networks.

Tunnel vs. VPN

A tunnel is the technique of encapsulating traffic. A VPN is a service or setup that uses one or more secure tunnels to give a user or site private access to a network. Every VPN uses tunneling, but not every tunnel is a VPN; GRE, for example, creates tunnels without encryption.

Why does a tunnel matter?

Tunnels connect sites, give remote users access, and carry traffic across networks that do not support it natively. They also cut through perimeter controls: a full-network tunnel can give a remote device broad access, and attackers use tunneling to hide traffic, for example inside DNS or HTTPS. Limit what each tunnel can reach, require strong authentication, and monitor tunnel endpoints.

Frequently asked questions

What is a tunnel?

A tunnel is a private network route for transferring encapsulated data packets across a network, such as the internet.

Is a tunnel always encrypted?

No. Some tunneling protocols, such as GRE, only encapsulate traffic. Encryption comes from protocols like IPsec, WireGuard, or TLS.

What is SSH tunneling?

SSH tunneling, or port forwarding, carries traffic for another application through an encrypted SSH connection.

Reach internal resources without a full network tunnel

Give users a secure entry point to segmented networks with just-in-time access.

Explore Devolutions Gateway

Related terms

Virtual Private Network (VPN)

A virtual private network (VPN) is an encrypted private connection on a public network.

Read now →

Point-to-Point Tunneling Protocol (PPTP)

Point-to-Point Tunneling Protocol (PPTP) is a protocol for establishing a virtual private network (VPN) as an extension of a network.

Read now →

Secure Shell (SSH)

Secure Shell (SSH) is a protocol employing cryptographic techniques to establish a secure connection between a client and a server.

Read now →