Sitemap
Otti Chinedu Emmanuel

Otti Chinedu Emmanuel

Press enter or click to view image in full size

Stop Guessing, The AWS Networking Guide I Wish I’d Had: How Internet Gateways, Route Tables, NACLs and Security Groups Really Work Together

13 min readOct 29, 2026

--

Press enter or click to view image in full size
Figure 1. The starting layout: a public subnet whose route table points at the internet gateway, and a private subnet whose route table does not.
Press enter or click to view image in full size
Figure 2. What the internet gateway does, and the three things an instance needs for internet access.
Press enter or click to view image in full size
Figure 3. Route lookup. The most specific matching route wins.
Press enter or click to view image in full size
Figure 4. The NACL guards the subnet boundary. Security groups guard each instance.

Get Otti Chinedu Emmanuel’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size
Figure 5. Stateful vs. stateless. The security group remembers the connection. The NACL needs a rule for the reply.
Press enter or click to view image in full size
Figure 6. The journey of a request, and its reply, through the four components.
Press enter or click to view image in full size
Table 1. Internet gateway, route table, NACL and security group compared.

Press enter or click to view image in full size
Figure 7. A three-tier architecture. Each tier has its own subnet, route table, NACL and security group.
Press enter or click to view image in full size
Table 2. Security group rules. Each tier trusts only the tier in front of it.
Press enter or click to view image in full size
Table 3. NACL rules. Every request rule has a matching rule for the reply.
Press enter or click to view image in full size
Figure 8. A troubleshooting checklist that follows the path of the packet.

--

--