DEV Community

Ayush Jain
Ayush Jain

Posted on

Internet Connection at your home vs data in VPC (Simplified)

๐Ÿ‘‰ EC2 Instances = Devices in your home (like your phone/laptop)
๐Ÿ‘‰ NACLs = Firewalls that control who/what gets in or out
๐Ÿ‘‰ Route Table = Traffic director โ€“ decides where packets go
๐Ÿ‘‰ Internet Gateway (IGW) = Modem that connects your home to the internet

1๏ธโƒฃ These EC2 Instances resemble devices in our home N/W
NACLs resemble firewalls; they are also called virtual firewalls
2๏ธโƒฃ We have to allow for any traffic to communicate through our NACLs
3๏ธโƒฃ If traffic is allowed in NACL, it is passed to our Route Table, which determines where to send the traffic, locally or to the internet
4๏ธโƒฃ If that is to be sent off to the internet, traffic is sent to the Internet Gateway, which resembles a Modem
5๏ธโƒฃ Internet Gateway would then send the traffic off to the internet
6๏ธโƒฃ Then the website you have visited will send a response, which again passes from the Internet Gateway and from there to the Route Table.
7๏ธโƒฃ The Route Table decides how to send that response traffic back to our EC2 Instances.
8๏ธโƒฃ Then, the response traffic reaches NACL, which would decide whether to block/allow this
9๏ธโƒฃ NACL would then allow traffic to one of the subnets, where at last, the EC2 Instance receives that.

๐Ÿ“š If you're preparing for AWS Certified Cloud Practitioner, feel free to use my notes here Notes

Also, feel free to follow me over Linkedin for some corporate humor ;) and tech bytes.

Top comments (0)