Nic Acton
  • My Gitbook
  • My Favorite Things
    • Podcasts
    • Newsletters
  • Monthly Summaries
    • May 2019
    • June 2019
  • Cloud Computing
    • Cloud Concepts
    • AWS
      • Certified Solutions Architect
      • Well Architected Framework
        • Operational Excellence
        • Reliability
        • Performance Efficiency
        • Cost Optimization
        • Security
      • Analytics
        • Elasticsearch Service
        • Kinesis
        • Elastic MapReduce (EMR)
      • Compute Services
        • Elastic Beanstalk
        • Elastic Container Service (ECS)
      • Deployment
        • CloudFormation
      • Application Services
        • Key Management Service (KMS)
        • Simple Queue Service (SQS)
        • API Gateway
        • Simple Work Flow (SWF)
        • Amazon MQ
        • Simple Notification Service (SNS)
      • Simple Storage Service (S3)
        • Macie
      • Databases
        • RDS
        • DynamoDB
        • ElastiCache
        • Neptune
        • Redshift
      • Cloudfront
      • IAM
      • Monitoring
        • Trusted Advisor
        • Amazon Inspector
        • AWS Config
        • AWS Shield
        • CloudWatch
          • VPC Flow Logs
        • CloudTrail
        • Guard Duty
      • Route53
      • Serverless Architectures
        • Lambda
      • VPC
        • Highly Available & Fault Tolerant VPCs
        • Hybrid Environments
          • VPC Peering
          • Direct Connect
        • Cloud HSM
    • GCP
    • Azure
    • HashiCorp
    • Red Hat
      • RHEL
        • Basics
        • Grep & Regex
        • SSH
      • Ansible
    • Tutorials/Guides
      • Linux
        • Admin
  • Software Engineering
    • Machine Learning
      • Deep Learning
        • Tensorflow
      • Training and Loss
    • Programming
      • APIs
    • Security
    • Web Development
      • OSI 7 Layer Model
    • Tutorials/Guides
      • Apache Server
    • Virtualization
      • Virtual Machines
      • Containers
      • Serverless
  • Fitness
    • Nutrition
      • Diets
      • Macronutrients
      • Supplements
      • Miscellaneous
    • Strength Training
    • BodyBuilding
  • Miscellaneous
    • Technology Ethics
      • Education
    • Interesting Concepts
      • Libertarian Paternalism
Powered by GitBook
On this page
  • VPN
  • Essentials
  • Internet Protocol Security (IPSec)
  • Customer Gateways
  • VPN Connection
  • Virtual Private Gateway (VPG)
  • Router

Was this helpful?

  1. Cloud Computing
  2. AWS
  3. VPC

Hybrid Environments

VPN

Essentials

  • Enables the ability to extend a network from one geographic location to another geographic location

  • Traffic traverses the Internet

  • Essentially "extending" the on-premise network to the cloud, or the cloud to on-premise

  • For AWS, this allows us to communicate with all resources (like an EC2 instance) internally without the need for public IP addresses and an internet gateway.

  • It also provides an additional level of security by ensuring that traffic sent using the VPN is encrypted

  • VPN connection has two parallel routes (IPsec tunnels) for redundancy

  • Only one Virtual Private Gateway can be attached to a VPC (just like only one IGW can be attached to a VPC)

  • A VPC can have one VPG and an IGW at the same time

Internet Protocol Security (IPSec)

  • Suite of secure network protocols for IPv4 (layer 3)

  • Provides Mutual Authentication

  • Provides Encryption - negotiation of keys

Customer Gateways

  • A physical or software application at the on-premise location that acts as the "connector" to the VPN connection

  • The customer gateway component is where you configure the public IP (internet routable static IP) address of the physical device or software application at the on-premise location.

  • Static Routing - you define routes

  • Dynamic Routing - routes automatically propagate, automatic failover

    • Border Gateway Protocol (BGP)

    • Autonomous System Number (ASN)

VPN Connection

  • Actual link between the VPG and the Customer Gateway

  • This is setup and managed by AWS

  • Each uses two IPsec tunnels for redundancy

Virtual Private Gateway (VPG)

  • A virtual private gateway acts as the "connector" on the VPC (AWS) side of the VPN connection

  • The VPG is connected to the VPC

  • Target for Route Tables

  • Cloud Hub - multiple customer networks

  • Note: Both a VPG and a Customer Gateway are required for a VPN

Router

  • AWS has no concept of physically setting up and managing routers

  • That being said, route tables are part of a "router" assigned to your machine

  • When a VPN is set up, the route table (for the subnet you wish to extend) must include routes for the on-premise network that are used by the VPN, and point them to the VPG. Choose route propagation for BGP to automatically add the routes.

PreviousHighly Available & Fault Tolerant VPCsNextVPC Peering

Last updated 6 years ago

Was this helpful?