Course contentsShow
← Cloud and Infrastructure
Lesson 2396 of 2,98951. Network SecurityFree lesson

Network ACLs for Subnet Isolation

Use stateless network ACLs to create hard boundaries between subnets and enforce defense-in-depth.

Network ACLs for Subnet Isolation

What You'll Learn

You'll learn how to use stateless network ACLs as a complementary security layer to enforce hard boundaries between subnets in your cloud network.

The Core Concept

Network ACLs (Access Control Lists) are stateless firewall rules that operate at the subnet level, whereas security groups (which you already know) work at the instance level. Think of Network ACLs as the border checkpoint for an entire neighborhood, while security groups are the locks on individual houses.

Because Network ACLs are stateless, they evaluate both inbound and outbound traffic independently—you must explicitly allow both directions. This differs from security groups, which are stateful and automatically allow return traffic.

Why Use Network ACLs for Defense-in-Depth

Network ACLs create hard boundaries between subnets, perfect for:

  • Isolating environments: Block all traffic between development and production subnets
  • Enforcing compliance: Guarantee certain ports can never reach specific subnets
  • Defense-in-depth: Even if security group rules are misconfigured, Network ACLs provide a second layer
  • Explicit deny rules: Unlike security groups, ACLs support explicit DENY rules, processed in order by rule number

Typical Pattern

  1. Default deny all at the Network ACL level
  2. Allow only necessary traffic between specific subnets
  3. Use sequential rule numbers (e.g., 100, 200, 300) for ordering
  4. Keep rules simple and broad—fine-grained control belongs in security groups

For example, you might allow your application subnet (10.0.2.0/24) to reach your database subnet (10.0.3.0/24) on port 5432, but explicitly deny all other subnets from accessing the database layer.

Key Takeaway: Network ACLs provide stateless, subnet-level access control that creates hard boundaries for defense-in-depth, complementing your instance-level security group rules with explicit allow/deny ordering.