Description
For traffic that requires AWS Network Firewall inspection, check that its route passes through a firewall endpoint.
Potential impact
Traffic that bypasses the firewall also bypasses its inspection and blocking rules.
Remediation
Configure the firewall policy and subnets in your central inspection VPC or individual VPCs, as required. For stateful inspection, route both directions of each flow through the same firewall endpoint.
Examples
The second excerpt changes the firewall’s VpcId to myVPC1. Supply FirewallName, the policy, firewall subnets and routes. Changing a live firewall’s VPC replaces it. Prepare the replacement under a separate name, verify inspection, then switch the traffic routes.
Before
yaml
Resources:
myVPC1:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
SampleFirewall:
Type: AWS::NetworkFirewall::Firewall
Properties:
FirewallPolicyArn: !Ref SampleFirewallPolicy
VpcId: !Ref anotherVPC
After
yaml
Resources:
myVPC1:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
SampleFirewall:
Type: AWS::NetworkFirewall::Firewall
Properties:
FirewallPolicyArn: !Ref SampleFirewallPolicy
VpcId: !Ref myVPC1