Internet Gateways and Route Tables

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
19 hours 19 minutes
Difficulty
Intermediate
CEU/CPE
20
Video Transcription
00:00
>> Hey, everybody. Welcome back.
00:00
In this lecture, we're going to be talking about
00:00
Internet gateways and route tables.
00:00
The learning objectives are going to be
00:00
to describe Internet gateways
00:00
as a service and help you understand why it's applicable,
00:00
why we want to use this whenever we're working with VPCs.
00:00
Internet gateways allow for
00:00
the network translation of your EC2 instances,
00:00
which would typically be private.
00:00
They're not going to be accessible to the world wide web.
00:00
There's couple of things you have to do in
00:00
order to allow that to happen.
00:00
One of them being in the security groups,
00:00
which we talked about in the EC2 module.
00:00
But another one is
00:00
having an IGW or an Internet gateway in
00:00
your VPC to allow
00:00
that communication to flow from
00:00
your public subnet to the Internet.
00:00
If we talk about an example here,
00:00
we have a public subnet and we have
00:00
a private subnet inside your VPC, which is common.
00:00
Typically, databases going the private subnet.
00:00
They communicate to the public subnet,
00:00
which maybe has a web server or something like that,
00:00
and then that web server is
00:00
going to be accessible to the world wide web.
00:00
The way that you're going to have to do this is you have
00:00
two subnets sitting inside your VPC.
00:00
You have an Internet gateway
00:00
which has been assigned and turned on for that VPC.
00:00
Remember, you can only have one Internet gateway per VPC.
00:00
Then you're going to have to establish
00:00
a route table and point
00:00
the EC2 instance that is located in your public subnet.
00:00
You have a route table
00:00
for your EC2 instance in your public subnet.
00:00
That is going to have to connect to the router,
00:00
which is connecting to the Internet gateway,
00:00
which allows for communication out to
00:00
the world wide web. That's it.
00:00
That's really all there is to it.
00:00
Internet gateways allow for this and in order for you
00:00
to have an EC2 instance access the world wide web,
00:00
you've got to setup an Internet gateway
00:00
and you have to establish that route table
00:00
to allow that to happen and really, that's it.
00:00
In this lesson, we talked about internet gateways.
00:00
Hopefully, you understand the purpose for this.
00:00
This allows for that communication for anything
00:00
outside of your VPC to access
00:00
the Internet and vice-versa
00:00
and what you have to do to allow this to happen.
00:00
If you have any questions, feel free to reach out to me
00:00
and if not, I'll see you in the next lesson.
Up Next