AWS Network Firewall
Cloud service · AWS · Updated

AWS Network Firewall

In short

AWS Network Firewall is a managed service provided by Amazon Web Services that enables users to deploy essential network protections such as stateful firewall rules, intrusion detection and prevention, and web filtering within their Virtual Private Cloud (VPC) environments.

Cloud Services Hub →

7 key features of AWS Network Firewall

AWS Network Firewall offers stateful traffic inspection, customizable rule groups for traffic control, seamless integration with AWS services, automatic scalability with high availability, and extensive monitoring and logging capabilities.

01
Stateful Inspection

AWS Network Firewall offers stateful inspection to monitor active connections and make decisions based on the context of the traffic and session, offering a deeper level of traffic analysis and control.

02
Customizable Rule Groups

It includes the ability for users to define rule groups that can be stateful or stateless. These rule groups can include criteria for allowing or blocking traffic based on IP addresses, CIDR blocks, protocols, ports, and domain names.

03
Integration with AWS Services

AWS Network Firewall is designed to work seamlessly with other AWS services, such as Amazon VPC, AWS Transit Gateway, and AWS Firewall Manager, enabling centralized management and deployment across your cloud environment.

04
Scalable and High Availability

Automatically scalable to accommodate varying levels of network traffic, AWS Network Firewall ensures high availability and resilience without the need for manual intervention or scaling.

05
Monitoring and Logging

It provides detailed logging capabilities for audit and diagnostic purposes. These logs can be sent to Amazon CloudWatch, Amazon S3, or Amazon Data Firehose, offering insights into denied traffic, rule group matches, and more.

06
Embedded Policy Rules

Next Generation policies support embedded rule groups authored directly in a policy's firewall or IPS section. These use variable capacity rather than reserving fixed capacity up front, drawing from the engine capacity remaining after reservations for referenced rule groups.

07
Suricata-Compatible Rules

Network Firewall uses the open-source Suricata intrusion prevention system for stateful inspection and supports Suricata-compatible rules.

Where AWS Network Firewall is used

AWS Network Firewall serves diverse purposes, including protecting against common network threats, implementing network segmentation, securing Direct Connect and VPN connections, ensuring compliance with regulatory standards, and centralizing network security management.

  1. 01
    Protecting against common network threats

    AWS Network Firewall enables you to create and enforce granular security policies to protect your VPCs from common network threats like SQL injection, cross-site scripting (XSS), and others. By specifying stateful or stateless rules, you can block, allow, or monitor inbound and outbound traffic based on criteria such as source and destination IP addresses, ports, and specific patterns in the data packets.

  2. 02
    Implementing network segmentation

    Use AWS Network Firewall to implement network segmentation strategies, effectively isolating critical resources within your AWS environment. By applying firewall rules at strategic points between your network segments, you can control traffic flow, reduce the attack surface, and limit the spread of any potential internal threats or breaches.

  3. 03
    Securing Direct Connect and VPN connections

    Secure your AWS Direct Connect and VPN connections by deploying AWS Network Firewall at the boundary of your VPCs. This setup allows you to inspect and filter traffic moving between your on-premises networks and AWS, ensuring that only legitimate traffic as defined by your policies can enter or leave your cloud environment.

  4. 04
    Compliance and regulatory requirements

    AWS Network Firewall can help you achieve compliance with various regulatory requirements that demand specific network traffic controls and monitoring. You can configure logging and auditing capabilities to track access and modifications to your firewall rules, ensuring that your network security measures comply with standards like PCI-DSS, HIPAA, GDPR, and more.

  5. 05
    Centralized network security management

    With AWS Network Firewall, you can centralize the management of your network security policies across multiple VPCs and accounts. This streamlines the process of maintaining a consistent security posture, simplifies administration, and enhances visibility into your network's security events and metrics.

How AWS Network Firewall is priced

AWS Network Firewall pricing includes pay-as-you-go for deployment hours and data processed, with additional charges for optional features.

Pay-as-you-go

AWS Network Firewall charges are based on the hours that the firewall endpoint is deployed, the amount of data processed, and any additional features or capabilities that are enabled. This model aligns costs directly with usage, making it flexible for varying workloads.

Data Processing Charges

Costs are incurred based on the volume of data processed by the firewall. This includes all data inspected by the firewall, regardless of the traffic direction or the outcome of the firewall rules evaluation.

Advanced Inspection

TLS inspection incurs an additional hourly charge per region and Availability Zone. Advanced Inspection traffic has no additional data processing charge beyond standard Network Firewall traffic processing charges.

Advanced Threat Protection

Enabling active threat defense managed rule groups in a firewall policy incurs an additional charge per gigabyte processed by the firewall endpoint, per region and Availability Zone.

Secondary Endpoint Charges

Each secondary endpoint associated with a firewall in the same region and Availability Zone has a separate, reduced hourly rate.

NAT Gateway Discount

For a NAT gateway service-chained with Network Firewall within the same account and region and in the same networking path, standard NAT gateway hourly and data processing charges are waived on a one-to-one basis with qualifying primary or secondary firewall endpoint hours and standard firewall traffic processing usage.

AWS Marketplace Managed Rule Groups

Subscriptions to managed rule groups from AWS Marketplace partners incur seller-set fees in addition to AWS Network Firewall charges.

Data Transfer Charges

Standard EC2 data transfer charges can apply separately, including when traffic between an EC2 instance and its NAT gateway crosses Availability Zones.

Services AWS Network Firewall works with

Amazon VPCAmazon VPC

AWS Network Firewall is deployed within an Amazon VPC, allowing you to seamlessly integrate network protection for your VPC resources.

AWS CloudFormationAWS CloudFormation

You can use AWS CloudFormation templates to deploy and manage AWS Network Firewall resources, enabling infrastructure as code capabilities.

Amazon CloudWatchAmazon CloudWatch

AWS Network Firewall publishes traffic-processing and firewall metrics to CloudWatch and can send flow, alert, and TLS logs to CloudWatch Logs. You can use these metrics and logs to monitor dropped packets, investigate rule matches, and configure alarms.

Amazon Data FirehoseAmazon Data Firehose

AWS Network Firewall can send its traffic logs to Amazon Data Firehose delivery streams. Firehose delivers the records to a configured destination for centralized storage or security analysis.

Amazon EC2Amazon EC2

AWS Network Firewall supports resource-group references that dynamically identify the IP addresses of tagged EC2 instances. Firewall rules can use these references to keep address-based filtering aligned with changes to the selected instances.

Amazon EventBridgeAmazon EventBridge

AWS Network Firewall API activity recorded by CloudTrail can be matched by EventBridge rules. This lets you trigger notifications or remediation workflows when firewall policies, rule groups, or logging settings change.

Amazon S3Amazon S3

AWS Network Firewall can deliver traffic logs directly to an S3 bucket. These logs provide durable records of network flows, alerts, and TLS inspection activity for investigation and retention.

AWS Certificate Manager (ACM)AWS Certificate Manager (ACM)

AWS Network Firewall uses certificates stored in ACM for TLS inspection. Its TLS inspection configuration references server certificates for inbound inspection and a certificate-authority certificate for decrypting and inspecting outbound TLS traffic.

AWS CloudTrailAWS CloudTrail

AWS Network Firewall integrates with CloudTrail to record API activity, including changes to firewalls, firewall policies, and rule groups. These records identify who made a change, when it occurred, and the request parameters.

AWS ConfigAWS Config

AWS Config records supported AWS Network Firewall resource configurations and evaluates them with managed rules. Checks include whether firewall logging and deletion protection are enabled and whether firewall policies use appropriate default actions.

What is AWS Network Firewall

3 min read

Amazon Web Services (AWS) Network Firewall is a managed service designed to provide businesses and organizations with scalable, high-performance network security across their Amazon Virtual Private Cloud (VPC) environments. By leveraging this powerful tool, users can deploy essential security measures such as stateful firewall, intrusion detection and prevention systems (IDPS), and web filtering to safeguard their network infrastructure from unauthorized access, data breaches, and other cyber threats. 

AWS Network Firewall is designed to offer seamless integration with the AWS ecosystem, enabling businesses to enforce their security policies consistently across their cloud-based applications and services without hindering operational flexibility or performance. 

AWS Network Firewall also supports native attachment directly to AWS Transit Gateway for centralized traffic inspection, eliminating the need to manage dedicated VPC subnets and route tables to connect the two services.

A single firewall can serve multiple VPCs through a primary endpoint in the inspection VPC and secondary endpoints associated with that firewall.

A firewall endpoint cannot inspect traffic entering or leaving its own subnet, so firewall subnets must be reserved exclusively for Network Firewall.

For VPC endpoint deployments, VPC route tables must direct network traffic through the firewall endpoints to enable inspection.

The AWS Network Firewall is built with stateful inspection capabilities, which means it not only examines individual packets but also understands the context of the traffic flow (i.e., the state of the connection). This allows it to detect and block sophisticated attacks that simple stateless firewalls might miss. 

The firewall is transparent to traffic and does not perform network address translation (NAT); it preserves source and destination addresses.

Furthermore, it supports complex rule definitions, including those for intrusion detection and prevention, that can inspect the contents of the traffic, thereby providing a deeper layer of security compared to basic packet filtering. 

Network Firewall offers Classic Network Firewall and Next Generation policies. Next Generation policies are recommended for new firewalls and inspect traffic in two sequential stages: a deny-by-default firewall engine for access control, followed by an IPS engine for threat detection and prevention. Classic policies retain stateless and stateful rules engines and remain fully supported for existing firewalls. A firewall can use either policy kind, but not both.

Next Generation policies have separate capacity pools of 30,000 firewall rules and 50,000 IPS rules, totaling 80,000 rules per policy; rules in one engine do not consume the other engine's capacity. Classic policies instead share a single stateful-rule pool with a default capacity of 30,000 and an adjustable maximum of 50,000 rules per policy.

TLS inspection can be configured by provisioning certificates and keys, creating a TLS inspection configuration, and applying it to a firewall policy.

AWS Network Firewall also offers an explicit forward proxy capability in preview, positioned between workloads and the internet for outbound traffic control and data loss prevention.

One of the critical advantages of AWS Network Firewall is its ease of use and integration. It can be quickly set up and managed directly from the AWS Management Console, API calls, or even using Infrastructure as Code tools such as AWS CloudFormation. This flexibility ensures that security configurations can be easily replicated and applied across multiple environments, saving time and reducing the likelihood of human error. 

Moreover, AWS Network Firewall scales automatically with the network traffic, ensuring that the protection measures do not impede application performance or user experience, regardless of the load. AWS Network Firewall also provides detailed logging capabilities, which are crucial for compliance, auditing, and forensic purposes. 

The logs can be integrated with Amazon CloudWatch and Amazon S3 for further analytics and storage, offering insights into traffic patterns, threat incidents, and the effectiveness of the deployed security policies. These insights enable organizations to continuously improve their security posture in a proactive manner.

In an era where network security threats are becoming increasingly sophisticated and the perimeters of corporate networks are extending into the cloud, AWS Network Firewall presents a vital component of a comprehensive security strategy. It allows organizations to take advantage of the flexibility and scalability of AWS, ensuring that their network infrastructure remains protected against a wide array of threats without compromising on the agility needed to innovate and grow in the digital landscape.

Concepts related to AWS Network Firewall

AWS Network Firewall exam questions

Real practice exam questions on AWS Network Firewall, with the correct answer and its explanation. Answer them with every option in the exam simulator.

SOA-C03

A company uses AWS Network Firewall to inspect outbound traffic from a VPC in a single AWS account. During an audit, a CloudOps engineer confirms that stateful Suricata rules with the DROP action block test connections containing prohibited payload signatures. The firewall currently sends only FLOW logs to an Amazon S3 bucket.

The auditor requires records that identify the matching signature ID, source and destination IP addresses, and action taken for these blocked test connections. The engineer must retain the existing flow records and must not change traffic inspection or enforcement behavior.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Add ALERT logging to the firewall's logging configuration and deliver the alert logs to Amazon S3. Retain the existing FLOW logging configuration.

Network Firewall alert logs contain records for matching stateful rules with actions such as DROP or ALERT. These records include signature information, source and destination addresses, and the action taken. Adding ALERT logging provides the required evidence without changing enforcement or removing FLOW logs.

SAP-C03

A company routes internet-bound traffic from 20 application VPCs through a centralized inspection VPC that contains AWS Network Firewall endpoints. NAT gateways translate source addresses after inspection. Routing ensures that both directions of each connection traverse the same firewall endpoint.

The security team deploys a stateful domain list rule group that denies several malicious domains by inspecting HTTP Host headers and TLS Server Name Indication (SNI). The rule group blocks test requests from workloads in the inspection VPC, but identical requests from the application VPCs succeed. A separate stateful rule that blocks a test TCP port successfully blocks traffic from all VPCs. The HTTPS test clients send unencrypted SNI, and no proxies are involved.

Which change will apply the domain restrictions to the application VPCs while preserving original source addresses during inspection?

Show answerCORRECT ANSWER

Configure the domain list rule group's HOME_NET variable to include the inspection VPC CIDR range and all application VPC CIDR ranges.

By default, a Network Firewall domain list rule group uses the deployment VPC's CIDR range as HOME_NET. In a centralized inspection architecture, the rule group must include the spoke application networks in HOME_NET to apply domain filtering to their traffic. Because NAT occurs after inspection, the firewall sees the original application VPC source addresses.

SAA-C03

A company runs an internal application in a VPC with CIDR block 10.60.0.0/16. Application servers occupy subnet 10.60.10.0/24, and data-processing servers occupy subnet 10.60.20.0/24 in the same Availability Zone. The servers exchange unencrypted TCP traffic on several ports.

The company has deployed AWS Network Firewall in a dedicated subnet in the same Availability Zone. Its firewall policy has been verified to block known exploit signatures while allowing legitimate connections. Security policy requires both directions of all traffic between the two workload subnets to pass through the firewall. Security groups and network ACLs already permit the required connections. Each subnet has a separate route table that currently contains only the VPC local route.

Which routing change meets these requirements?

Show answerCORRECT ANSWER

Add a route for 10.60.20.0/24 targeting the firewall endpoint to the application subnet route table. Add a route for 10.60.10.0/24 targeting the same endpoint to the data-processing subnet route table.

These subnet-specific routes take precedence over the VPC's less-specific local route. Routing each workload subnet's traffic to the other subnet through the same firewall endpoint provides symmetric inspection. After inspection, the firewall subnet's local route delivers traffic to the destination workload subnet.

Practice AWS Network Firewall in a full exam

Questions on AWS Network Firewall in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS Network Firewall in lessons

12 short lessons on AWS Network Firewall in 5 certification courses.

and 6 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.