Ensure that the Amazon VPC route table associated with the web-tier subnets has the default route (i.e. 0.0.0.0/0) configured to allow connectivity to the NAT Gateway deployed in the same VPC, in order to provide Internet access for the web-tier Amazon EC2 instances. A VPC route table contains a set of rules (also known as routes) that are used to determine where the network traffic is directed. The route table associated with the web-tier subnets should have a default route (0.0.0.0/0) that points to a NAT Gateway. A Network Address Translation (NAT) gateway is a device that helps enabling EC2 instances within a private subnet to connect to the Internet and prevent the Internet from initiating a connection with those instances. This conformity rule assumes that the VPC subnets within your web tier are tagged with <web_tier_tag>:<web_tier_tag_value>
, where <web_tier_tag>
represents the tag name and <web_tier_tag_value>
represents. Before running this rule by the Trend Cloud One™ – Conformity engine, the web-tier tags must be configured in the rule settings, on your Conformity account console.
To provide Internet access to Amazon EC2 instances running within your private web-tier subnets, make sure that the necessary route table is configured to have the default route (0.0.0.0/0) pointing to a NAT Gateway.
Note: Make sure that you replace all <web_tier_tag>:<web_tier_tag_value>
tag placeholders outlined in the conformity rule content with your own tag set created for the web tier.
Audit
To determine if the route table associated with your web-tier subnets has the default route configured to allow connectivity to a VPC NAT Gateway, perform the following actions:
Remediation / Resolution
To create the necessary route with a VPC NAT device configured as gateway for the route table associated with your web-tier VPC subnets, perform the following actions:
References
- AWS Documentation
- VPCs and Subnets
- Route Tables
- NAT
- NAT Gateways
- CIS Amazon Web Services Foundations
- AWS Command Line Interface (CLI) Documentation
- ec2
- describe-vpcs
- describe-subnets
- describe-route-tables
- delete-route
- create-route