AWS Subnets & Access

AWS Tutorial: Subnets, Security Groups, and NACLs

Welcome to the Subnets & Access lesson. Now that we have a VPC, we must divide it into smaller networks and set up security firewalls to block hackers.

AWS Subnets and Security

Why Learn Subnets and Access?

Improper firewall configuration is the number one cause of cloud data breaches. You must learn the difference between Security Groups and Network ACLs to lock down your architecture.

Tutorial Overview

In this tutorial, you will learn:


Subnets

A Subnet is a smaller chunk of IP addresses inside your VPC.

Security Groups vs. Network ACLs

AWS provides two layers of firewalls:

  1. Network Access Control Lists (NACLs): These act as a firewall at the Subnet level. They control traffic entering and exiting the entire subnet block. They are Stateless, meaning you must explicitly write rules allowing traffic both IN and OUT.
  2. Security Groups (SGs): These act as a firewall at the Instance level (attached directly to your EC2 server). They are Stateful, meaning if you allow an incoming request, the return traffic is automatically allowed out. By default, SGs deny all inbound traffic.

Exercise

?

Which AWS firewall operates at the Instance level and is Stateful?