Private Connections to the Cloud
Compare internet VPNs, dedicated links and private endpoints, and learn when each is worth it.
Key takeaways
- A site-to-site VPN is quick to set up and encrypted, but its performance depends on the internet path.
- A dedicated link offers more predictable capacity and delay, with higher cost and longer lead times.
- Private does not automatically mean encrypted, so check whether you need to add encryption on a dedicated circuit.
- Private endpoints let workloads reach cloud services through private addresses inside your virtual network.
- Redundancy has to be designed in: one circuit or one tunnel is a single point of failure.
A private connection to the cloud links your office, data center or servers to a cloud provider without relying only on ordinary public internet access. There are two main kinds: an encrypted VPN tunnel that travels over the internet, and a dedicated circuit that bypasses it. A third idea, the private endpoint, keeps traffic to a cloud service on private addresses once you're inside.
The right choice depends on how much traffic you move, how steady it needs to be, what your compliance rules say and how much you're willing to manage. Many organizations need nothing beyond a well-configured VPN or plain HTTPS.
Why people want a private path
Traffic to a public cloud service is normally protected with TLS, so privacy from eavesdroppers is largely handled. The reasons for something more are usually practical.
You might want internal systems to have no public address at all. You might move large data sets every day and need consistent throughput. You might run an application whose database sits in your building while the web tier runs in the cloud, so delay and jitter, meaning variation in delay, matter a lot. Or a policy or contract might require that certain traffic stay off the public internet.
Name your actual reason first. It narrows the options quickly.
Site-to-site VPN over the internet
A site-to-site VPN connects a router or firewall at your location to a VPN gateway in your cloud virtual network. The two ends authenticate each other and encrypt everything between them, most commonly with IPsec. To your machines, the cloud network looks like another part of your internal network.
Setup is mostly configuration: matching encryption settings, exchanging keys or certificates, and defining which address ranges go through the tunnel. Providers usually offer two tunnel endpoints so one can fail or be maintained.
The limits come from the path. Your packets cross the same internet as everything else, so delay can vary, and each tunnel has a throughput ceiling set by the provider and your equipment. Encryption overhead also shrinks the usable packet size. If large transfers stall while small ones work, an MTU mismatch is a likely suspect; the MTU and payload planner helps with the arithmetic, and MTU, MSS and fragmentation explains why.
For the differences between protocols, see WireGuard, OpenVPN and IPsec.
Remote users are a different problem
A site-to-site VPN joins networks. It isn't how an individual employee on a hotel connection should reach your systems. For that you need a remote access VPN, which authenticates each person and device, or an identity-aware access proxy, which checks the user before allowing a connection to one specific application.
The access proxy approach gives people less than full network reach, which limits the damage if a laptop or password is stolen. A VPN is simpler for tools that expect to be on the same network. Many organizations run both for a while.
Whichever you choose, require multi-factor authentication and keep gateway software patched. Internet-facing VPN equipment is a frequent target, as this article on edge devices describes.
Connecting more than one cloud network
Companies often end up with several virtual networks: one per team, environment or region. Connecting each pair directly, called peering in cloud terms, works for a handful but grows quickly. Peering also commonly isn't transitive, meaning that if network A peers with B and B peers with C, A still can't reach C through B.
Providers offer a hub, often called a transit gateway or virtual WAN, that each network attaches to once. Your VPN or dedicated link lands on the hub and reaches everything that routing policy permits. The hub adds its own hourly and per-gigabyte charges.
Keep production and development separated by route tables and firewall rules even though they share a hub. Connectivity should be something you grant, and security groups and subnets remain your main controls close to each workload.
Dedicated circuits
A dedicated connection is a physical or provider-managed link into the cloud provider's network. Major clouds sell this under names such as AWS Direct Connect, Azure ExpressRoute and Google Cloud Interconnect.
You typically get there in one of two ways. Either your equipment sits in a colocation facility where the cloud provider has a presence, and a cable called a cross-connect joins the two. Or a network carrier or partner extends a circuit from your site to that meeting point and sells you a slice of its capacity. Colocation is often part of the picture.
Routing across the link usually uses BGP, the same protocol networks use to tell each other which addresses they can reach. You advertise your ranges, the cloud advertises its ranges, and routes update automatically if a path fails.
Private is not the same as encrypted
A dedicated circuit is separated from the public internet, but that doesn't mean its contents are scrambled. Carriers and facility staff operate the equipment along the way.
You have several options. Keep using TLS between applications, which protects data end to end regardless of the path. Run an IPsec tunnel on top of the dedicated link. Or use link-layer encryption such as MACsec, defined in IEEE 802.1AE, where the hardware and provider support it. Many security teams choose application-level TLS as a baseline and add more only where requirements call for it.
Private endpoints and service connections
Cloud storage, databases and many managed services are normally reached through public addresses. A private endpoint places an interface for that service inside your own virtual private cloud, with a private IP address.
That has two useful effects. Your servers can use the service without any route to the internet. And you can often write policy saying the service accepts requests only through that endpoint.
DNS is the part that trips people up. The service's normal host name needs to resolve to the private address from inside your network, and to the usual address elsewhere. That's split-horizon DNS. On-premises machines reaching the cloud over VPN or a dedicated link must use resolvers that return the private answer, or they'll quietly keep going the public way.
You can check which address a name returns with this command on Windows, macOS or Linux:
nslookup storage.example.com Comparing the options
Cost structures differ. A VPN gateway usually bills per hour and for data sent out. A dedicated link adds port charges, carrier fees and sometimes facility fees, though data leaving the cloud over it is often priced lower than over the internet. Whether that pays off depends on volume; cloud egress charges explains the logic. Check current price pages before modeling it.
Designing for failure
Circuits get cut, routers reboot and facilities lose power. A design with one link will eventually have an outage with one cause.
Common arrangements, from cheaper to sturdier:
- One dedicated link with a VPN as backup. Traffic fails over automatically if BGP is configured to prefer the circuit.
- Two dedicated links into the same facility on separate equipment.
- Two links through different facilities, carriers and physical routes.
Ask carriers about path diversity. Two circuits that share a duct under one street can both be severed by one excavator. Also test failover on purpose, during a planned window, because backup routes that never carry traffic often have stale firewall rules.
Planning the addresses and routes
Before connecting anything, check that your on-site and cloud address ranges don't overlap. If both use 10.0.0.0/16, routing can't tell them apart, and fixing it later means renumbering. Reserve distinct blocks for each site and cloud network; the CIDR set tool is handy for checking overlap.
Then decide what should travel over the private path. Advertising a default route from your office can send all cloud workloads' internet traffic through your building, which may be intended for inspection or may be an expensive accident. Write down the expected routes and compare them with what's actually learned.
Testing and monitoring the connection
Once the link is up, verify more than a successful ping. From a machine on your side, check that names resolve to private addresses, that the application's port is reachable, and that large transfers complete. On Windows PowerShell you can test a specific port like this, using an address from your own cloud network:
Test-NetConnection -ComputerName 10.20.1.15 -Port 5432 On macOS or Linux, nc -vz 10.20.1.15 5432 does a similar check where netcat is installed. If it fails, work outward in order: tunnel or circuit status, learned routes, cloud security rules, then the server's own firewall. Remember that return traffic needs a route too. A missing return route is a classic cause of connections that time out in only one direction.
Then set alerts on tunnel or BGP session state, utilization and packet loss. A redundant pair that has quietly lost one half still appears healthy to users, so alert on the loss of redundancy as well as on a full outage. Plan capacity upgrades early, since new circuits can take weeks or longer to deliver.
Questions to answer before ordering
- How much data moves in each direction on a busy day, and how fast is it growing?
- How sensitive is the application to delay and jitter?
- What outage can you tolerate, and what backup path covers it?
- Do rules require encryption, private addressing or a particular location?
- Who will manage routing, keys and monitoring?
If you're unsure, start with a VPN and measure. Real traffic figures make the case for or against a dedicated circuit far better than guesses, and the VPN can remain as your backup if you upgrade.