Slide 1

Slide 1 text

Network Security on AWS

Slide 2

Slide 2 text

Hello! I am Michael Wittig The author of Amazon Web Services in Action (Manning). Co-founder of widdix, an independent AWS consultancy. You can find me at: @hellomichibye https://cloudonaut.io

Slide 3

Slide 3 text

Network Security on AWS

Slide 4

Slide 4 text

VPC ▷ Virtual network ○ Subnets ○ Route tables ○ NACLs ▷ Network isolation ▷ Private address ranges ○ 10.0.0.0/8 ○ 172.16.0.0/12 ○ 192.168.0.0/16 ▷ Peering ○ VPC to VPC ○ VPN ○ Direct Connect

Slide 5

Slide 5 text

VPC 10.0.0.0/16 Subnet 1 10.0.0.0/24 Subnet 2 10.0.1.0/24 Routing & NACLs

Slide 6

Slide 6 text

Routing

Slide 7

Slide 7 text

Subnets are routed Within a VPC, all subnets are routed, and you can’t change that!

Slide 8

Slide 8 text

NACLs

Slide 9

Slide 9 text

NACLs are Stateless You have to open the high ports (1024-65535).

Slide 10

Slide 10 text

VPC 10.0.0.0/16 Public Subnet 2 10.0.1.0/24 Public Subnet 1 10.0.0.0/24 Typical (minimal) VPC Private Subnet 1 10.0.2.0/24 Private Subnet 2 10.0.3.0/24

Slide 11

Slide 11 text

VPC Subnet Security Groups & ENIs

Slide 12

Slide 12 text

Security Group References SSH Bastion Host Load Balancer Backend

Slide 13

Slide 13 text

Security Groups are Stateful The response traffic is always allowed. Both inbound and outbound.

Slide 14

Slide 14 text

VPC Flow Logs Records network traffic in ~5 minutes chunks Not enabled by default Record Schema version account-id interface-id srcaddr dstaddr srcport dstport IANA protocol number (6 := TCP) packets bytes start in Unix seconds end in Unix seconds action status

Slide 15

Slide 15 text

VPC 10.0.0.0/16 Public Subnet B 10.0.32.0/20 Public Subnet A 10.0.0.0/20 Example Private Subnet A 10.0.16.0/20 Private Subnet B 10.0.48.0/20 VPC 10.100.0.0/16 Public Subnet A 10.100.0.0/20 Private Subnet A 10.100.16.0/20 https://github.com/widdix/learn-network-security

Slide 16

Slide 16 text

Thanks! You can find me at: @hellomichibye https://cloudonaut.io Special thanks to: ▷ Presentation template by SlidesCarnival ▷ Photographs by Pexels