Private mesh network vs traditional VPN: which one do you need?

A private mesh network connects every device to the others directly, encrypted with WireGuard, with no central gateway and no open ports. A traditional VPN concentrates all traffic on one server that decrypts, filters and forwards it. The mesh wins on latency and exposed surface; the classic VPN wins when what you want is a single controlled exit point.

The Architecture of Traditional VPNs

In a traditional VPN setup, a central server acts as the gateway. When a client device, such as a laptop or a phone, wants to communicate with another resource, it must first establish an encrypted tunnel to this central gateway. The gateway decrypts the traffic and forwards it to the destination. If two remote devices need to exchange data, the packets must travel from the first device to the central server, and then from the central server to the second device. This routing pattern, often referred to as hub-and-spoke, can introduce significant latency and creates a single point of failure at the central gateway, which must process all network traffic.

How a Private Mesh Network Works

A private mesh network, such as the one implemented by prialo, operates on a peer-to-peer basis. Instead of routing all data through a central hub, devices establish direct encrypted connections to one another. When you install the software on a Mac, a phone, or a Linux server, each device is assigned a unique IP address within the shared 100.64.x.x range. This range is part of the Shared Address Space defined in RFC 6598, which is specifically designated for carrier-grade NAT environments, ensuring that these private addresses do not conflict with standard local home or office network ranges.

The coordination of these connections is handled by a control plane, which helps nodes discover each other's public IP addresses and negotiate direct paths. Once the connection is established, the actual data plane traffic flows directly between the devices using the WireGuard protocol for encryption. This means that sensitive data never passes through an intermediary server, preserving privacy and maximising the throughput supported by the physical internet connections of the participating devices.

Key Differences in Traffic Routing and Security

The fundamental differences between these two architectures can be categorised across several areas, highlighting how direct routing alters security and performance:

Gateway VPN or WireGuard mesh network: comparison table

CriterionTraditional VPN with a gatewayWireGuard mesh network
Traffic pathAlways through the central server, even when both machines are in the same cityDirect between devices; a relay only when NAT prevents it
Open portsThe server exposes a public port; the clients, noneNone: every machine dials out to the control plane
Who decrypts the trafficThe gateway decrypts and forwards itOnly the destination device; the relay cannot read it
Single point of failureThe gateway: if it goes down, nobody reaches anythingThe control plane only coordinates and never sees the traffic
Best fitOne controlled exit point towards the Internet or an officeReaching your own machines wherever they are

Use cases: when a traditional VPN is enough and when you need a mesh

Practical Application on Linux Servers

For system administrators managing Linux servers alongside client devices, configuring a node on a mesh network involves running a background daemon that manages the virtual network interface. Once active, the interface automatically routes traffic destined for the 100.64.0.0/10 range through the encrypted mesh. For example, verifying the status of the local node and its active peer connections can be performed using standard command-line tools:

prialo status

This command displays the active peer connections, their assigned 100.64.x.x addresses, and the current cryptographic handshakes, ensuring that administrators can verify direct connectivity. By utilizing this mesh structure, teams can securely access remote administrative services like SSH or database ports without exposing those services to the public internet or configuring complex firewall rules.

Frequently asked questions

Does a private mesh network replace the company VPN?

A private mesh network replaces the company VPN when the goal is reaching specific machines: servers, internal dashboards, databases. It does not replace it when what you want is all Internet traffic leaving through one controlled point, because the mesh does not change your exit IP.

Why does a mesh network not need open ports?

A mesh network needs no open ports because every device opens the connection itself, towards the control plane and towards the other nodes, using STUN to discover its public address. Nobody waits for inbound connections; when NAT blocks the direct path, a relay forwards packets it cannot decrypt.

Does the mesh control plane see my traffic?

The mesh control plane does not see the traffic: it only coordinates who is who, hands out 100.64.x.x addresses and public keys, and records when each device connects. The content travels encrypted with WireGuard between the two endpoints, and if it passes through a relay, the relay forwards what it cannot read.

Would you rather run your own server? Guide to the self-hosted prialo package

← All news