Most cloud problems that look like “the server is down” are really networking: a missing rule, a wrong route, or DNS pointing the wrong way. The concepts are the same as on-premises – the controls just live in different places.
Address planning first
- Give each VNet/VPC its own non-overlapping private range (e.g.
10.20.0.0/16for one environment,10.21.0.0/16for another). - Never overlap with on-premises ranges – once you connect them, overlapping networks can’t route to each other.
- Split into subnets by tier or purpose:
snet-web,snet-app,snet-data,snet-mgmt. - Leave room to grow; resizing later is painful.
Filtering traffic
| Control | Azure | AWS | Notes |
|---|---|---|---|
| Per-NIC / per-instance firewall | NSG (on subnet or NIC) | Security Group | Stateful – return traffic is allowed automatically |
| Subnet-level stateless filter | (NSG covers subnets) | Network ACL | Stateless – needs rules both directions |
| Central firewall | Azure Firewall / NVA | AWS Network Firewall / NVA | For inspection and egress control |
Azure NSG rules are evaluated by priority number, lowest first; the first match wins. Default rules allow traffic within the VNet and deny inbound from the internet.
AWS security groups have only allow rules; anything not allowed is denied. A neat feature: allow traffic from another security group (e.g. “app servers may reach the database SG on 1433”) instead of IP ranges.
Example design for a three-tier app:
| From | To | Port |
|---|---|---|
| Load balancer | Web tier | 443 |
| Web tier | App tier | 8443 |
| App tier | DB tier | 1433 |
| Management subnet / Bastion | All tiers | 3389, 5985/5986 |
Everything else denied.
Routing
- Inside a VNet/VPC, subnets route to each other automatically.
- Route tables decide where other traffic goes: internet gateway, NAT gateway (outbound-only internet for private servers), firewall appliance, or on-premises gateway.
- Private servers should normally reach the internet (for updates) through NAT or a proxy – without public IPs.
Connecting to on-premises
| Option | Azure | AWS | Use |
|---|---|---|---|
| Site-to-site VPN | VPN Gateway | Site-to-Site VPN | Quick, over the internet, encrypted |
| Private circuit | ExpressRoute | Direct Connect | Higher bandwidth, more predictable latency |
| Between cloud networks | VNet peering / Virtual WAN | VPC peering / Transit Gateway | Hub-and-spoke designs |
DNS for Windows servers in the cloud
Domain-joined VMs must resolve your AD domain:
- Point the VNet/VPC DNS settings (or DHCP options) to your domain controllers (on-premises or in the cloud), or
- Use cloud DNS resolvers with conditional forwarding to your DCs (Azure DNS Private Resolver, Route 53 Resolver endpoints).
Wrong DNS is the most common reason a cloud VM can’t join the domain.
Troubleshooting checklist
- DNS: does the name resolve to the right private IP from the source? (DNS guide)
- Windows Firewall on the target – still applies in the cloud.
- NSG / security group on both source and destination – correct ports, direction and source?
- NACL (AWS) – stateless, so check outbound return traffic too.
- Route table – is there a route to the destination?
- Tools: Azure Network Watcher → IP flow verify / Connection troubleshoot; AWS Reachability Analyzer and VPC Flow Logs.
Test-NetConnection target -Port 443 from the source VM is still your quickest test.
What’s next
Next: Cloud storage and backup for Windows servers.
Practise this topic
Test yourself with free questions on this topic – instant answers and explanations.
Start practice questionsCloudNetworkingAzureAWSSecurityIntermediate