Networking Components & Terms # 1 - Networking 101

Networking Components & Terms # 1 - Networking 101

Internet Gateway (IGW)

  • Allow resources (for example EC2 instances) in VPC to connect to the internet.
  • It scales horizontally and is highly available and redundant.
  • Create separate from a VPC.
  • One IGW can connect with one VPC and vice versa.
  • Internet Gateway their own do not allow internet access. You must edit the route table for subnets.


Bastion Hosts

  • It is an EC2 instance in public subnets which is primarily used to connect to EC2 instances in private subnets.
  • The security group of bastion hosts must allow inbound rule from the internet on port 22 for CIDR of your company.
  • The security group of private EC2 instances needs to allow the Security Group to be used for the bastion host or private IP of the bastion host.



NAT instances

  • NAT = Network Address Translation
  • Allows EC2 instances in private subnets to connect to the internet.
  • Must be launched in the public subnet
  • Must disable EC2 settings: Source/ destination check.
  • Must have elastic IP attached to it.
  • Route table must be configured to route traffic from private subnets to
  • It supports port forwarding
  • We can use NAT instances as Bastion host


  • NAT instances come from pre-configured Amazone Linux AMI it reach to the end of standard support on December 31.2020


Cons:

  • Not highly available/resilient. You need to create an ASG in multi AZ + resilient user-data script
  • Internet traffic bandwidth depends on EC2 instance type.
  • You must manage Security Group and rules.
  • Inbound: Allow HTTP/HTTPS traffic coming from Private Subnets. Allow SSH from your home network (access is provided through internet gateway)
  • Outbound: Allow HTTP/HTTPS traffic to the internet.


  • Stop Source/Destination check


NAT Gateways

  • AWS managed NAT, higher bandwidth, high availability, no administration.
  • You have to pay per hour for usage and bandwidth.
  • NAT GW is created in a specific Availability Zone, and uses an elastic IP.
  • Cannot be used by EC2 instance in the same subnet (only from other subnet)
  • Requires an internet gateway the network flow like this: private subnet => Nat gateway => internet gateway
  • 5Gbs of bandwidth with automatically scale up to 100Gbs



  • NAT Gateway is resilient within a single AZ. You must create multiple NAT Gateways in multiple AZs for fault tolerance.


Compare NAT Gateway vs NAT instance.


?? Biên

?Mobile Application Developer, Let's connect?

5 个月

Very excellent

回复
D??ng Xuan ?à

??Java Software Engineer | Oracle Certified Professional

5 个月

Insightful

回复

要查看或添加评论,请登录

Lê Qu?c D?ng的更多文章

  • Working with terraform

    Working with terraform

    For an online version please visit here: Working with Terraform Here are some images about this article:…

  • How to install Oh-my-zsh on Centos Linux to make the SHELL less boring

    How to install Oh-my-zsh on Centos Linux to make the SHELL less boring

    I've written a complete guide at this link if you're interested you can visit it to learn more. https://ledungcobra.

    2 条评论
  • Making VPCs + On-premises talk to each other - Networking 101

    Making VPCs + On-premises talk to each other - Networking 101

    VPC Peering Privately connect two VPCs using the AWS network. Make them behave as if they were in the same network Two…

  • H?c và thi ch?ng chi AWS Solution Architect Associate hi?u qu?

    H?c và thi ch?ng chi AWS Solution Architect Associate hi?u qu?

    Qu?ng cáo Mình thi ???c 812/1000 ?i?m. C?u trúc ?? thi AWS theo bác Stephene nói thì có 65 cau và có 50 cau tính ?i?m…

    2 条评论
  • NACL - Networking 101

    NACL - Networking 101

    Definition NACLs are like a firewall which control traffic from and to subnets. One NACL per subnet, new subnets are…

  • Daily AWS Solution Architect questions #18

    Daily AWS Solution Architect questions #18

    Q91: A global company is using Amazon API Gateway to design REST APIs for its loyalty club users in the us-east-1…

  • Daily AWS Solution Architect questions #17

    Daily AWS Solution Architect questions #17

    Q81: A company has an automobile sales website that stores its listings in a database on Amazon RDS. When an automobile…

    1 条评论
  • Daily AWS Solution Architect questions #16

    Daily AWS Solution Architect questions #16

    Q75: A company wants to migrate an on-premises data center to AWS. The data center hosts an SFTP server that stores its…

    2 条评论
  • Daily AWS Solution Architect questions #15

    Daily AWS Solution Architect questions #15

    Q71: An image-processing company has a web application that users use to upload images. The application uploads the…

  • Daily AWS Solution Architect questions #14

    Daily AWS Solution Architect questions #14

    Q66: A company runs an on-premises application that is powered by a MySQL database. The company is migrating the…

社区洞察

其他会员也浏览了