服务 · 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
| Control | Works at | Can do |
|---|---|---|
| Security group | Instance | Allow by IP, port, group |
| Network ACL | Subnet | Allow and deny by IP, port |
| Network Firewall | VPC traffic | Deep inspection, domains, Suricata rules |
| WAF | Web request | HTTP rules for CloudFront, ALB and more |
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
| Control | Works at | Can do |
|---|---|---|
| Security group | Instance | Allow by IP, port, group |
| Network ACL | Subnet | Allow and deny by IP, port |
| Network Firewall | VPC traffic | Deep inspection, domains, Suricata rules |
2 / 2
WAF
- Works at
- Web request
- Can do
- HTTP rules for CloudFront, ALB and more
| Control | Works at | Can do |
|---|---|---|
| WAF | Web request | HTTP rules for CloudFront, ALB and more |
- 1Spoke VPCs send traffic to Transit Gateway.
- 2Transit Gateway routes it to the inspection VPC, where the firewall endpoint checks it.
- 3Allowed traffic continues to the internet.
分步说明
- 1Spoke VPCs send traffic to Transit Gateway.
- 2Transit Gateway routes it to the inspection VPC, where the firewall endpoint checks it.
- 3Allowed traffic continues to the internet.
Central inspection of traffic from many VPCs.
是什么
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.
是什么
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.
是什么
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.
要记住
- 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.
要记住
- Logs go to Amazon S3, CloudWatch Logs or Amazon Data Firehose.
考试中
- “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.
别和这些弄混
- Security groups and network ACLs in layersChain security groups tier to tier, keep network ACLs for broad blocks, and know the ports and rules.
AWS WAFMatch the web attack to the WAF rule, and know where a web ACL can and cannot attach.
AWS Firewall ManagerCentral firewall policy for every account, including accounts and resources added later.