Join our Newsletter — 33% off our NHI Course
Home› Guides› Cloud Networking for Beginners: How Networks Work Inside…
Guide Cloud Security

Cloud Networking for Beginners: How Networks Work Inside AWS, Azure and Google Cloud

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

Cloud networking is how computers you rent in the cloud are connected, kept apart and reached.

This guide is for anyone whose work, website or shop runs in the cloud. You do not need to build networks to be affected: one wrong network setting can put a private database within reach of the whole internet.

In short

  • Each cloud account can have its own private network. AWS and Google Cloud call it a VPC. Azure calls it a virtual network.
  • The network is split into smaller sections called subnets. Routes decide where traffic can go.
  • Rules on each section or computer decide which traffic is let in. Those rules are your job, not the provider's.
  • Keep databases off the internet, and let in only the traffic each computer needs.

What you will learn

  • Explain what a cloud network is in one sentence.
  • Spot a network rule that lets in too much.
  • Explain the difference between a public and a private section.
  • Ask your team or supplier how your cloud network is set up.
Private cloud network (VPC or virtual network)
your own walled-off network inside a cloud provider.
Section of the network (subnet)
a smaller block of addresses inside that network, used to group computers.
Traffic rule (security group or firewall rule)
a setting that says which connections may reach a computer.

What is cloud networking?

Think of renting a fenced plot inside a big business park. The park owner builds the outer roads and the fence. Inside your plot, you decide where the paths go, which gates open to the street and who the guards let in.

A cloud provider works the same way. It runs the huge network underneath. Inside it, you get your own private network. AWS and Google Cloud call this a virtual private cloud (VPC). Azure calls it a virtual network, or VNet. The providers are listed here alphabetically.

Inside that network you make smaller sections, called subnets. A route table, a list of directions, tells traffic where it may go. A gateway is a door to another network, such as the internet. Traffic rules then act like guards at each door.[1]

Where the comparison stops working: a real gate is hard to leave open by accident. In the cloud, every road and gate is a setting. One mistyped rule can open a door to the whole internet.

Why does it matter?

Cloud firms look after their buildings, machines and the base platform. You stay in charge of setting up your own services safely. That includes your network rules.[5]

If you run a small business online

What could happen: your shop's customer database is left reachable from the internet.

Check this: ask your supplier which of your systems can be reached from the internet, and why.

Next: Cloud Security for Beginners

If you are new to cloud or IT work

What could happen: you open a rule to "anywhere" to fix a problem quickly, then forget to close it.

Check this: before saving a rule, ask who really needs to connect.

Next: Network Segmentation for Beginners

If you manage a technical team

What could happen: nobody reviews network rules, so old openings pile up over the years.

Check this: ask for a list of rules that allow traffic from anywhere, with an owner for each.

Next: Shared Responsibility Model for Beginners

What does it look like?

Here is a made-up plan of the network for a small online shop. The numbers are network addresses, called IP addresses. Each one is written as a range.

Example only. All values are made up.

NETWORK  shop-net-EXAMPLE    range 10.0.0.0/16
SECTION  public-web          10.0.1.0/24
  route: to the internet gateway                (1)
SECTION  private-data        10.0.2.0/24
  route: none to the internet                   (2)
RULE web-server: allow HTTPS from anywhere      (3)
RULE database:   allow port 5432 from
                 0.0.0.0/0 (anywhere)           (4)
  1. The public section has a road to the internet. Web servers go here.
  2. The private section has no road to the internet. This is where data should live.
  3. Letting anyone visit the shop's website over a safe link is normal.
  4. This rule lets anyone online try to reach the database. In a real file, this line would name the exact computers allowed in.

Why this is risky: the database sits in the private section. But the open rule undoes much of that care if any path to it exists.

The safer way: the database rule allows only the web server, and the database has no public address at all.

How does it work?

Here is the journey a visitor's request takes to an online shop in the cloud.

  1. The request arrives. A customer's browser sends a request across the internet to the shop's public address.
  2. It enters through a gateway. The gateway is the door between the internet and your private network.
  3. The traffic rules check it. Rules on the web server decide whether this kind of traffic is allowed in.
  4. The web server asks the database. It sends a request across the private network to the private section.
  5. The database rules check again. They allow only the web server, so other traffic is turned away.
Diagram titled How a request reaches a cloud shop. On the left, the internet with a customer. An arrow goes through a gateway into a large box labelled Your private cloud network. Inside are two sections. The public section holds the web server, with a guard symbol labelled rule: allow web visitors. An arrow goes from the web server to the private section, which holds the database, with a guard labelled rule: allow only the web server. A crossed-out dashed arrow from the internet straight to the database is labelled blocked: no direct route. A note says the provider runs the cables and machines, and you set the sections, routes and rules.
Figure 1. Visitors reach the web server. Only the web server reaches the database.

The three big providers use different names for similar ideas. The table lists them alphabetically, with the starting behaviour their documentation describes.

ProviderPrivate networkTraffic rulesStarting behaviour, per the provider's docs
AWSVPC, with subnets in one zone eachSecurity groups and network access listsA security group lets in only the traffic its rules allow, and its default outbound rule allows all traffic.[1][2]
AzureVirtual network (VNet), with subnetsNetwork security groupsResources can reach the internet outbound by default. Inbound needs a public address or a public load balancer.[3]
Google CloudVPC network, which spans regions, with regional subnetsVPC firewall rulesEvery network has a built-in rule that blocks inbound traffic, and outbound traffic is allowed unless you add rules.[4]

Each provider also offers private links to its own services, so traffic can skip the public internet. AWS describes these as VPC endpoints, and Azure as Private Link.[1][3] Google Cloud offers its own private access options, covered in its VPC documentation.[4]

Before and after diagram titled Risky and safer network rules. Left panel, Risky: one flat network where the web server and database share a section, and the database rule says allow from anywhere, with an arrow from the internet straight to the database. Right panel, Safer: the web server sits in a public section and the database in a private section with no internet route; the database rule says allow only the web server, and the arrow from the internet stops at the web server.
Figure 2. The same shop, set up two ways. Separate sections and narrow rules shrink what the internet can reach.

A worked example

This story is made up to show how it can happen.

Niko Nyberg looks after the computers at Blauwe Brug Fietsen, a bike shop in Utrecht with a busy online store. A contractor moved the store to the cloud last year.

One morning, Niko opens the provider's security dashboard for the first time. It flags a warning: a database rule allows traffic from anywhere on the internet.

Niko asks the contractor why. She explains that she opened it during the move to test something. She meant to close it afterwards and forgot.

Together they look at the network. The web server is in a public section, which is fine. The database is in a private section, but it also has a public address, and the open rule lets anyone try to connect.

They change the rule so that only the web server can reach the database. Then they remove the database's public address. Niko checks that the shop still works. Orders still go through.

Next, they look through the database's sign-in records with the contractor. They find no signs of misuse in the records available to them. Niko still changes the database password, to be safe.

Finally, Niko sets a calendar reminder to review every rule that allows "anywhere" once a quarter. Each rule now has a short note saying who asked for it.

What made the difference: Niko asked why the rule existed, instead of assuming someone had a good reason.

Myths and mistakes

What people thinkWhat is true
The cloud provider secures my network for me.The provider runs the network underneath. You choose the sections, routes and rules.
A "private" section means nothing can reach it.It helps, but a public address or an open rule can still create a way in. Check both.
Opening a rule to anywhere is fine for a quick test.Quick tests are often forgotten. Allow only your own address, and remove the rule when done.
Network rules are all I need.They are one layer. Strong passwords, sign-in checks and updates are still needed.
All three providers work the same way.The ideas are similar, but names and starting settings differ. Read each provider's own guide.

What can I do this week?

  • Ask your team or supplier for a simple diagram of your cloud network.
  • List every rule that allows traffic from anywhere, and ask who needs each one.
  • Check that databases and file stores have no public address unless there is a clear reason.
  • Turn on your provider's built-in security checks, and read what they flag.

Checklist

  • I know which cloud providers my organisation uses.
  • I can explain what a VPC or virtual network is.
  • I know which systems can be reached from the internet.
  • Databases sit in private sections with no public address.
  • Every "allow from anywhere" rule has an owner and a reason.
  • Network rules are reviewed on a regular schedule.
  • Someone looks at the provider's security warnings.

Common questions

Is a VPC the same as a VPN?

No. A VPC is your private network inside a cloud provider. A VPN is a protected tunnel that links one place to another across the internet, such as a laptop to an office. A VPN can be used to reach a VPC, but they are different things.

What does 0.0.0.0/0 mean in a rule?

It means any address at all. In an inbound rule, it lets anyone on the internet try to connect. That is normal for a public website. For a database or admin tool, it is usually a mistake, and the rule should name only the computers that need access.

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

A public subnet has a route to the internet through a gateway. A private subnet does not. Web servers often sit in public subnets, while databases and internal systems belong in private ones, reached only from inside the network.

Do I need to understand this if a supplier runs my cloud?

Yes, at a basic level. Your supplier sets things up, but your organisation still owns the risk. Knowing the main ideas helps you ask useful questions, such as which systems face the internet and who reviews the rules.

Is a security group a firewall?

In effect, yes. AWS describes a security group as acting like a virtual firewall for the resources it is attached to. Azure and Google Cloud use network security groups and VPC firewall rules for similar jobs.[2]

Where next?

Ready for the detail? Read the practitioner guide: Amazon VPC Security Guide. It goes further into security group and network access list design, flow logs and private endpoints on AWS.

Also useful:

Related NHI Mgmt Group resources: VPC Endpoints vs NAT Gateways · Firewall Rule Review Checklist · Cloud Security Engineer for Beginners

Key terms

Virtual private cloud (VPC)
A walled-off network inside a cloud provider, where the customer chooses the address ranges, sections, routes and gateways.
Subnet
A smaller block of addresses inside a network, used to group computers and control traffic.
Security group
A set of cloud traffic rules that acts like a firewall for the resources it is attached to.
Firewall
A control that filters network traffic by rules, so unwanted connections are blocked.
IP address
The number that identifies where network traffic comes from or goes to.
Private endpoint
A private connection from your cloud network to a service, so traffic does not cross the public internet.
Shared responsibility model
The split of security duties between the cloud provider and the customer.

Sources and further reading

  1. What is Amazon VPC? Amazon Virtual Private Cloud User Guide. Amazon Web Services. https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html, accessed 28 Nov 2026.
  2. Control traffic to your AWS resources using security groups. Amazon Virtual Private Cloud User Guide. Amazon Web Services. https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html, accessed 28 Nov 2026.
  3. What is Azure Virtual Network? Microsoft Learn. Microsoft. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview, accessed 28 Nov 2026.
  4. VPC networks. Google Cloud documentation. Google. https://docs.cloud.google.com/vpc/docs/vpc, accessed 28 Nov 2026.
  5. Cloud security shared responsibility model. National Cyber Security Centre, published 10 May 2022, reviewed 7 June 2023. https://www.ncsc.gov.uk/collection/cloud/understanding-cloud-services/cloud-security-shared-responsibility-model, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.