What is NACL

NACL stands for Network Access Control List. It is like a firewall which control traffic for and to subnets.

Main Difference between NACL and SG

ItemSecurity GroupNACL
levelinstance/enisubnet
ruleallowallow/deny
statefulstatefulstateless
evalutionall rules are evaluatedfirst match wins

NACL

A subnet can have one and only NACL. The default NACL is assigned if not specified.

Recommendation is that do not change the default NACL(since if may be applied on existing/new subnets by default).

Instead create a NACL and apply to the desired subnet.

NACL Rule

  1. Rule have a number (1-32766)
  2. Rule first match wins.

AWS recommend to add rule number by 100

Ephemeral Ports

Ports that auto opened and assigned when client accessing outbound to accept response packages.

Ephemeral Port Range:

  1. Linux: 32768 - 60999
  2. Windows: 49152 - 65535

Union: 32768 - 65535