ladderlore
  • Type a service name, like S3 or IAM.

Service · Security, Identity, and Compliance

AWS Network Firewall

A managed firewall for a whole VPC: deep packet inspection, domain filtering and central egress control.

  • Security group

    Works at
    Instance
    Can do
    Allow by IP, port, group
  • Network ACL

    Works at
    Subnet
    Can do
    Allow and deny by IP, port
  • Network Firewall

    Works at
    VPC traffic
    Can do
    Deep inspection, domains, Suricata rules
  • WAF

    Works at
    Web request
    Can do
    HTTP rules for CloudFront, ALB and more
Where Network Firewall sits among the controls.

1 / 2

  • Security group

    Works at
    Instance
    Can do
    Allow by IP, port, group
  • Network ACL

    Works at
    Subnet
    Can do
    Allow and deny by IP, port
  • Network Firewall

    Works at
    VPC traffic
    Can do
    Deep inspection, domains, Suricata rules

2 / 2

  • WAF

    Works at
    Web request
    Can do
    HTTP rules for CloudFront, ALB and more
Where Network Firewall sits among the controls.
Spoke VPCs
Transit Gateway
Network Firewall
Internet
  1. 1Spoke VPCs send traffic to Transit Gateway.
  2. 2Transit Gateway routes it to the inspection VPC, where the firewall endpoint checks it.
  3. 3Allowed traffic continues to the internet.
Central inspection of traffic from many VPCs.

Step by step

  1. 1Spoke VPCs send traffic to Transit Gateway.
  2. 2Transit Gateway routes it to the inspection VPC, where the firewall endpoint checks it.
  3. 3Allowed traffic continues to the internet.

Central inspection of traffic from many VPCs.

What it is

AWS Network Firewall is a managed stateful network firewall and intrusion prevention service for a VPC. Security groups and network ACLs look at IP addresses and ports. Network Firewall can also look inside packets, match domain names, and run rules written for Suricata, an open source intrusion prevention engine. It scales on its own.

What it is

Rules come in two kinds. Stateless rules check each packet alone. Stateful rules follow the whole flow. Typical uses are an allow list of domains for outbound traffic, blocking known bad destinations, and filtering by protocol whatever the port is. You put a firewall endpoint in a dedicated subnet in each AZ, and change route tables to send traffic through it.

What it is

For many VPCs, build one inspection VPC and attach spokes through AWS Transit Gateway. All traffic passes the firewall in one place. If you must use a third-party appliance, use Gateway Load Balancer in the same position. Firewall Manager can deploy and govern Network Firewall across accounts.

Remember

  • Stateful and stateless rule groups. Suricata compatible rules.
  • Domain filtering for outbound HTTP and HTTPS traffic.
  • One firewall endpoint per AZ in its own subnet. Route tables steer traffic to it.
  • Central inspection: Transit Gateway with an inspection VPC.
  • Third-party appliances use Gateway Load Balancer instead.

Remember

  • Logs go to Amazon S3, CloudWatch Logs or Amazon Data Firehose.

On the exam

  • “Allow outbound traffic only to a list of domain names” points to Network Firewall domain filtering.
  • “Inspect traffic between many VPCs in one place” points to Network Firewall in an inspection VPC behind Transit Gateway.
  • “Block SQL injection in HTTP requests to an ALB” points to AWS WAF, not Network Firewall.