Hints — VPC Route Table - Lab 04
Open each hint only after you’ve spent time investigating on your own.
Hint 1 — Check the usual suspects
Work through the layers in order:
- Network ACL: No custom NACL is in use. The subnet uses the default NACL, which allows all traffic in both directions.
- Security group: The inbound rules allow TCP port 80 from anywhere. That’s correct.
- Internet Gateway: The IGW is created and attached to the VPC.
- Route table: Navigate to VPC console > Route tables.
Find the route table named
brokenlabs-vpc-lab-04-rt. Does it have a route to the Internet Gateway?
Hint 2 — The route table
The custom route table has a 0.0.0.0/0 route pointing to the Internet Gateway. That looks
correct.
But a route table only controls traffic for the subnets that are associated with it. If a subnet is not explicitly associated with a route table, it uses the VPC main route table by default — and that table may not have an internet route.
In VPC > Route tables, click on brokenlabs-vpc-lab-04-rt and open the Subnet
associations tab. What subnets are listed under Explicit subnet associations?
Hint 3 — Associations
The Subnet associations tab on the custom route table shows no explicit associations — the lab subnet is not linked to it.
Because the subnet has no explicit association, it falls back to the VPC’s main route
table. Click on the route table marked (main) in the route tables list and check its
routes. Does it have a 0.0.0.0/0 route?
The main route table has only the local VPC route. There is no internet route — so traffic from the internet cannot reach the subnet.
Spoiler Alert — Full Solution
Root cause: The custom route table (brokenlabs-vpc-lab-04-rt) has a 0.0.0.0/0 route
to the Internet Gateway, but it is not associated with the lab subnet. The subnet falls back
to the VPC main route table, which has only the local VPC route and no internet route.
Inbound traffic from the internet is dropped before it reaches the subnet.
To fix:
- Open the VPC console and go to Route tables
- Select the route table named
brokenlabs-vpc-lab-04-rt - Click the Subnet associations tab, then click Edit subnet associations
- Check the box next to
brokenlabs-vpc-lab-04-subnet - Click Save associations
- Reload the
WebPageURLin your browser — the AWS Broken Labs page should appear