AWS · Security, Identity, and Compliance

AWS Network Firewall

A managed, stateful network firewall and intrusion prevention service that inspects traffic entering, leaving and moving between VPCs.

On the SAA-C03 exam listThreat detectionNetwork segmentation

What it is and what problem it solves

AWS Network Firewall puts firewall endpoints in dedicated subnets of a VPC, and route tables send traffic through them. It filters by IP, port and protocol (stateless and stateful rules), by domain name (for example, allowing outbound traffic only to approved domains), and with Suricata-compatible intrusion prevention rules. It can also inspect TLS traffic.

A common design is a central inspection VPC connected to a Transit Gateway, so all traffic between VPCs, to on premises and to the internet passes the firewall.

When to use it

  • Filtering outbound internet traffic by domain name.
  • Intrusion detection and prevention for traffic between VPCs or to on premises.
  • Regulations require inspection of all network traffic, not just HTTP.

When to avoid it

  • HTTP-level protection for public web apps: WAF is cheaper and more specific.
  • Basic allow rules per instance or subnet: security groups and network ACLs are free.
  • Very small environments, where endpoint-hours cost more than the risk justifies.

Scaling model and bottlenecks

Firewall endpoints scale automatically with traffic; you choose which Availability Zones have endpoints. Central inspection through Transit Gateway avoids an endpoint in every VPC.

Cost model

What you pay for

Billed per firewall endpoint-hour (per Availability Zone) and per GB of data processed, with extra charges for TLS inspection and advanced threat protection. NAT gateway charges are waived in some service-chain designs.

Where it is cost-efficient

Central inspection for many VPCs through a Transit Gateway, instead of a firewall in each VPC.

Where costs grow

Endpoints in every zone of every VPC, and very large traffic volumes through the firewall.

Cost controls and common surprises

Centralise inspection, inspect only the traffic that requires it, and route trusted high-volume flows (for example to S3 through gateway endpoints) around it.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Stateless and stateful rules, domain lists, Suricata IPS rules, AWS managed threat signatures and TLS inspection.

What you configure

Design routing so traffic cannot bypass the firewall, start with alert mode, use managed rule groups and test rule changes.

Logging and monitoring

Flow and alert logs to S3, CloudWatch Logs or Firehose.

Related security services

Transit Gateway, Firewall Manager, Gateway Load Balancer (for third-party appliances), Route 53 Resolver DNS Firewall.

Shared responsibility

AWS runs and scales the firewall. You write the rules and the routing that sends traffic through it.

Availability, backup and failure behavior

Deploy a firewall endpoint in each Availability Zone you use and route each zone's traffic to its own endpoint.

Common service combinations

Inspection VPC with Transit Gateway; NAT gateways for egress; Firewall Manager for multi-account rollout.

Business application examples

  • All outbound traffic from 40 VPCs passes a central firewall that allows only approved domains.
  • IPS signatures block known exploit traffic between application and database VPCs.

Exam cues and common confusions

  • Stateful inspection and IPS for VPC traffic, domain filtering: Network Firewall.
  • HTTP attacks on web apps: WAF. Instance-level allow rules: security groups.
  • Third-party firewall appliances inline: Gateway Load Balancer.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake