Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

What Is a Virtual Private Cloud (VPC)?

A VPC is your own private network inside a public cloud. Its building blocks (subnets, route tables, gateways, security groups), and VPC vs VPS.

4 min readBy Soumya

Reviewed by the AmazingRDP technical team

What a virtual private cloud is

One server, one address, no network to design: a Linux VPS. See Linux VPS from $6.99

A virtual private cloud, or VPC, is a private network that you define inside a public cloud provider's infrastructure. The hardware is shared with thousands of other customers, but your network is logically walled off: your servers have private addresses, you decide what may talk to what, and nothing reaches the internet, or is reached from it, unless you build the door. All the large cloud platforms have the concept, under the names VPC or virtual network.

An everyday picture

Think of an office building with many tenants. The building, lifts and power are shared. Your floor has its own locked doors, its own rooms, and a reception desk that decides who comes in. A VPC is your floor: shared building, private space, your rules.

The building blocks

PartWhat it is
Address rangeThe private range the whole VPC uses, such as 10.0.0.0/16
SubnetsSlices of that range, each in one datacentre zone. Public subnets have a route to the internet; private ones do not
Route tablesThe rules that say where traffic from each subnet goes
Internet gatewayThe door between public subnets and the internet
NAT gatewayLets servers in private subnets fetch updates from the internet without being reachable from it
Security groupsA firewall around each server: which ports, from where
Network access listsA second, coarser filter at the subnet's edge
PeeringA private link between two VPCs
VPN or dedicated lineA private link between the VPC and your office network

A typical layout

  1. A public subnet holds only what must face the internet: a load balancer, perhaps a jump host for administrators.
  2. A private subnet holds the application servers. They accept connections only from the load balancer.
  3. A second private subnet holds the database. It accepts connections only from the application servers, on the database port.
  4. A NAT gateway lets the private servers download updates.
  5. The same again in a second zone, so that one datacentre's failure does not stop the service.

The point of the design is that a break-in at the edge does not hand over the database: every layer is a separate door.

What a VPC gives you

  • Isolation. Other customers cannot see or reach your private addresses.
  • Control. You design the network as you would in your own datacentre.
  • Layered security. Sensitive systems have no path to the internet at all.
  • A bridge to your office. With a VPN, the cloud network becomes an extension of the company network: see understanding VPNs.
  • Room to grow. Add servers and subnets without rewiring.

What it costs you

  • Complexity. Most "my server cannot be reached" problems in a cloud are a missing route or a security group rule.
  • Fees. The VPC itself is usually free, but NAT gateways, traffic leaving the cloud, traffic between zones and public addresses are billed, and these lines surprise people on the invoice.
  • Responsibility. The provider secures the building; what you open in your own network is your doing.
  • Lock-in. A network built from one provider's parts must be rebuilt to move elsewhere.

VPC, VPS and private cloud

The names are easily confused.

What it isYou manage
VPSOne virtual server with its own operating system and, normally, a public addressThe server
VPCA virtual network in a public cloud, into which you place servers and servicesThe network and everything in it
Private cloudA cloud platform on hardware used by one organisation onlyThe whole platform, or you pay someone to
VPNAn encrypted tunnel between networks or devicesThe tunnel's two ends

A VPS is not a smaller VPC; it is a different thing. A VPS answers "I need a server". A VPC answers "I need a network of servers with rules between them".

Do you need a VPC?

SituationFits
One website, one application, a remote desktop, a development machineA VPS. Secure it with its own firewall and you are done
Two or three servers that should talk privatelyVPS or dedicated servers joined by a VPN such as WireGuard do this without a cloud platform
Many services, separate tiers, several zones, automatic scalingA VPC on a cloud platform
Strict rules that data must sit on hardware of your ownPrivate cloud or dedicated servers

A great many projects never leave the first row, and a VPC would add cost and complexity without benefit.

Where we fit

We rent servers, not a cloud platform with VPC networking. Our Linux VPS, Windows VPS and dedicated servers each come with a public address and full control, and several of them can be joined into a private network of your own with VPN software, which is allowed on these plans. The server's own firewall does the job of a security group: see the Ubuntu firewall and opening ports on Windows Server. How virtual servers come about in the first place is in how hypervisors work.

Questions

What is a VPC?

A virtual private cloud: a logically isolated private network that you define inside a public cloud provider's infrastructure.

What is the difference between a VPC and a VPS?

A VPS is one virtual server. A VPC is a virtual network into which servers and services are placed.

Is a VPC the same as a private cloud?

No. A VPC is a private network on shared public-cloud hardware. A private cloud runs on hardware used by one organisation only.

What is the difference between a public and a private subnet?

A public subnet has a route to the internet gateway. A private subnet does not, so its servers cannot be reached from the internet.