What is a VPC?
A virtual private data center in the cloud.
http://cidr.xyz
What is the maximum addressable size of IPs you can have with a CIDR block in AWS?
/16 which gives 65,556 network addresses
What can we do with a VPC?
What tool in a VPC do you use to block specific IP addresses from gaining access to a VPC?
Network ACL (NACL), not security groups
What are the things you can expect with the default VPC?
What are the main components of a VPC?
When you create a subnet, where is it created?
In one availability zone, it cannot span multiple availability zones
What are the steps to creating a custom VPC?
When you create a VPC, what three things are created by default?
What is a subnet in a VPC?
A virtual firewall
What are the two accessibility options when creating a subnet?
What are the steps to creating a new subnet?
What are the steps to making a subnet public and internet accessible?
Next, create a new route table with a route in from the internet. If we had used the main route table to create the public route, then any new subnet would be public facing by default.
1. Click “Create Route Table” button
2. Give it a name
3. Select the VPC
4. Click “Create Route Table” button
What is a NAT Gateway?
You can use a network address translation (NAT) gateway to enable instances in a private subnet to connect to the internet or other AWS services while preventing the internet from initiating a connection to those instances.
How can an instance in a public subnet get access to the internet?
It sends traffic through the Network ACLs, Route Table, Router and Internet Gateway
How can an instance in a private subnet get access to the internet (if the route table prevents it)?
Provision a NAT Gateway in the public subnet that acts as a means for internet traffic to go out through the NAT Gateway, through the public Network ACL, Route Table, Router and Internet Gateway.
What are the key features of a NAT Gateway?
What are the steps to making a NAT Gateway and creating a route out from a private subnet?
What are Security Groups in VPC?
Virtual firewalls for a VPC
They are the last line of defense of inbound traffic.
If you have a scenario where you have connectivity problems, what things should you look at (and in what order)?
In Security Groups, by default is all traffic blocked or open?
By default, all traffic is blocked (to let everything in, use 0.0.0.0/0)
Are security groups stateless or stateful?
Security groups are stateful – if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules, and visa versa.
What is a Network ACL?
An optional layer of security for your VPC that acts as a firewall for controlling traffic in and out of one or more subnets.
They are the first line of defense of inbound traffic.
In Network ACLs, by default, is all traffic blocked or open?
By default, all traffic is allowed, both outbound and inbound.