Chap 3
Chap 3
2023/2024
1
Networking
2
Networking is the
foundation of cloud
security
3
Cloud Architecture
A Word of Caution:
NEVER VM
Weather API
VM
Catalog App
leave a VM open to
the internet this way - Directly accessible from the internet
- Can be RDPed from anywhere
We will learn later on what should be done
4
Cloud Architecture
VNets
SubNets
Load Balancer
Application
Gateway
Virtual Networks
… but not
with
VM resources
VM in other
VM
VNets
VM
Virtual Networks
• Other organizations’
VNets cannot
VNet
VNet Pricing
10
Characteristics of VNets
12
Addresses of VNets
• Or IP Range
• Can be customized
between 0 and 32
range
14
CIDR Notation Example 1
8 bits
24 bits allocated allofcoartreadnge
to address
109.186.149.240 /24
8 bits 8 bits 8 bits 8 bits
109.186.149.000 – 109.186.149.255
Bits refresher: 256 Addresses
00000000 = 0
11111111=255 15
CIDR Notation Example 2
16 bits 16 bits
allocated to allocated
address for range
109.186.149.240 /16
8 bits 8 bits 8 bits 8 bits
109.186.000.000 – 109.186.255.255
Bits refresher: 65,536 Addresses
00000000 = 0
11111111=255 16
17
Subnet
same
VNet* Subnet
Frontend
*By VM
default, VM
can be
customized
Subnet
19
Backend
VM
Subnet Pricing
20
Network Security Group
• Think of it as a mini-firewall
• Looks at 5 tuples:
port to anyone
24
Network Peering
• Examples:
• Separate systems
• System layers
• Sensitive 25
databases
Network Peering
• Main reasoning:
resources in a
VNet
VM
that has public Front End
access
26
VM
Database
Network Peering
• So…
NSG
Open Port 80
VNet 2 VNet 1
VM VM
Database Front End
27
Network Peering
• But…
28
Network Peering
• Not
free
30
Network Peering
NSG
Open Port 80
VNet 2 VNet 1
Peering
VM VM
Database Front End
NSG
Open Port 1433
31
Cloud Architecture
VNet VNet
NSG NSG
NSG
ACR
Cart Docker
32
Cloud Architecture
Attack Surface
VNet VNet
NSG NSG
NSG
ACR
Cart Docker
33
Secure VM Access
• What can
be done?
JIT Access
VPN
Jump Box
35
Bastion
JIT Access
37
Jump Box
VNet VNet
NSG NSG
NSG
ACR
Cart Docker
39
Bastion
49
Service Endpoint
• Is
free!
Service Endpoint
• Voila!
43
Without Service Endpoint
The Internet
NSG
VNet
App Service VM 44
Backend App Front End
With Service
Endpoint
Note:
1. Traffic leaves the VNet
2. There is a public IP on the
The Internet PaaS
service (App Service)
3. Can’t be used from on-
prem network
• Almost…
NSG
VNet
App Service VM 45
Backend App Front End
Service Endpoint
• Resources support
Service
Endpoint:
• Storage • Service Bus
• SQL Database
• Event Hub
• Synapse Analytics
• App
• PostgreSQL Service
• MySQL • Cognitive
• Cosmos DB Services
• KeyVault 46
Thank you