What is a private network?

A private network carries traffic between your own systems without exposing it to the internet. It can be physical, logical or a secure overlay running over public links.

What makes a network private?

That outsiders cannot reach it or read its traffic. In an office, that comes from physical separation and private address ranges behind a router. In a data centre, it can come from a dedicated switch port or VLAN carrying only your servers' traffic. Across the internet, it comes from encryption: an overlay network whose packets are sealed between your machines, so the public path cannot see inside. All three give services a place to talk that is not the open internet.

Which address ranges are reserved for private use?

For IPv4, 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, defined in RFC 1918; 100.64.0.0/10 is reserved for carrier-grade address translation and sometimes used by overlay tools. For IPv6, the unique local range fd00::/8 serves the same purpose. These addresses are never routed on the public internet, so they can be reused freely inside every private network. Pick a less common block, such as 10.73.0.0/16, to avoid clashing with office or home networks when people connect over VPN.

What is a VLAN?

A virtual LAN: a tag on Ethernet frames that lets one physical switch carry several separate networks. Ports or frames tagged with VLAN 120 only see other members of VLAN 120. Providers use VLANs to offer private networks between a customer's servers in the same facility or across their backbone. That product is not part of our catalogue: each of our servers has its public port only, so the private network is built as an encrypted overlay instead, which also works between different data centres.

How do I link servers privately without a private network product?

With WireGuard. It is built into the Linux kernel, has a small, well-audited code base, adds about 60 bytes of overhead per packet and runs at multiple gigabits on modern processors. Each server gets a private address on a wg interface and a list of peers; services then listen on that address only. A three-node mesh needs one configuration file per server:

# /etc/wireguard/wg-mesh.conf on node a (10.73.0.1)
[Interface]
Address = 10.73.0.1/24
ListenPort = 51902
PrivateKey = (contents of /etc/wireguard/a.key)
[Peer]   # node b in another city
PublicKey = (b public key)
Endpoint = 198.51.100.71:51902
AllowedIPs = 10.73.0.2/32
[Peer]   # node c
PublicKey = (c public key)
Endpoint = 203.0.113.94:51902
AllowedIPs = 10.73.0.3/32
PersistentKeepalive = 25

Bring it up with systemctl enable --now wg-quick@wg-mesh and allow UDP 51902 only from the peers in the host firewall. For larger fleets, tools such as Headscale or Netmaker generate and distribute these configurations.

Is an encrypted overlay as good as a physical private network?

For security it is often better, since every packet is authenticated and encrypted even if someone could tap the path. For performance, it adds a little CPU work and travels over the public internet, so latency between two of our data centres depends on distance as usual. Within one city the overhead is barely measurable. Traffic over the overlay uses the public port, which is unmetered in Europe and Canada, so replication and backups between servers there cost nothing extra.

What should run over the private network?

Anything that should never face the internet: database connections and replication, cache and queue traffic, cluster heartbeats, backup transfers, monitoring and administrative SSH. Bind those services to the overlay address or loopback, and keep only the intended public services, usually ports 80 and 443, on the public address. Our Localhost article covers binding services safely, and Network security the wider design.

How is a private network different from a VPN?

The terms overlap. A VPN is a technology for building a private network over a shared one; WireGuard, IPsec and OpenVPN are all VPN protocols. "VPN" is also used for consumer services that route a user's browsing through another location, which is a different use of the same tools. For servers, a site-to-site or mesh VPN is the practical way to build the private network between machines. Our How VPNs work article explains the protocols and Company VPN gateways covers running a VPN server.

What does it cost?

Nothing beyond the servers themselves. WireGuard is free and included with every distribution we install, and the CPU it uses is a small fraction of any machine in the catalogue. Even a compact ESSENTIAL-1 encrypts several gigabits per second, more than its 1 Gbps port can carry.

Related pages

How VPNs work

What a virtual private network does, the protocols in use today, remote access against site-to-site designs, split tunnelling and hosting your own gateway.

Read more

Network security

Layered network security for servers on the public internet: edge filtering, host firewalls, encrypted links, segmentation without a private network and watching traffic.

Read more

Company VPN gateways

Small, efficient machines for WireGuard and IPsec gateways that connect staff, offices and servers privately.

Read more

Localhost

The loopback name and addresses that point a machine at itself: how 127.0.0.1 and ::1 work, why services bind there, and common pitfalls on servers.

Read more

Questions and answers

Do you offer a private network between servers?

We do not offer one as a product. Connect your servers with WireGuard over their public ports, which encrypts the traffic and works between data centres.

Which IP ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for IPv4, and the unique local range fd00::/8 for IPv6.

Does WireGuard slow down traffic between servers?

Only slightly. It adds a small header and some CPU work; modern processors encrypt several gigabits per second, more than the port speed of most servers.

Does traffic over WireGuard count against bandwidth?

It uses the public port. In Europe and Canada ports are unmetered; in Singapore, Sydney and Mumbai it counts toward the monthly allowance.

What should run over a private network?

Database, cache and replication traffic, backups, monitoring and administrative access. Only intended public services should listen on the public address.