Skip to content

Instantly share code, notes, and snippets.

@sovietspy2
Created December 23, 2022 09:25
Show Gist options
  • Save sovietspy2/5aabc102acb30af1fb13f7b48cc5cff2 to your computer and use it in GitHub Desktop.
Save sovietspy2/5aabc102acb30af1fb13f7b48cc5cff2 to your computer and use it in GitHub Desktop.
how to aws networking

AWS

VPC

define network

Subnet

  • by defautl every subnet is private
  • add NAT to public subnet
  • attach IGW to public subnet
  • enable auto elastic ip assignment for public subnet
  • attach route table to subnet

Route table

  • define rules to forwrads packets
  • define distinct route tables for different subnets
  • add route table IGW entry to allow internet access for public subnets

NAT

  • this component will allow private networks to access internet

Internet Gateway IGW

  • this component is enabling internet traffic for public subnets

EC2

actual machine

Security Group

  • firewall
  • provide inbound/outbound rules for EC2 instances, can be based on address or on security group
  • can be defined for portocol or specific port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment