VPN

The vpn tunnel, is what that is based on IPSec, VPN connection refers to the abstract concept of two vpn tunnels enabling VPN connection

VPN connection: A secure connection between your on-premises equipment and your VPCs.

VPN tunnel: An encrypted link where data can pass from the customer network to or from AWS.

Each VPN connection includes two VPN tunnels which you can simultaneously use for high availability.

Customer Gateway

Customer gateway: An AWS resource which provides information to AWS about your customer gateway device.

Customer gateway device: A physical device or software application on your side of the Site-to-Site VPN connection.

You probably setup a device on on-premises, and you create a AWS resource customer gateway, which lets AWS know the device

Virtual Private gateway (VGW)

  • AWS managed ipsec and bgp edge device
    • VPN concentrator → for Site-to-Site VPN (IPsec tunnels).
    • Routing target (BGP edge) → for Direct Connect (private VIF termination).
  • VGW serves both roles, depending on how it’s used:
    • If used with VPN, it handles IPsec + BGP.
    • If used with DX, it just does BGP (no IPsec).
  • VPN concentrator or routing target.
  • The created on aws side
  • You can choose to give you ASN
  • Which then have to be attached to a VPC

S2S Connection Connect VGW/TGW with CGW Choose routing options, dynamic(BGP) or static, the tunnel 1 and 2 options Route on-prem cidr to the VGW via route table Configure SG, NACL and firewall config (onprem) Test the connection

VPN Endpoints

Target gateway: A generic term for the VPN endpoint on the Amazon side of the Site-to-Site VPN connection. Virtual private gateway: A virtual private gateway is the VPN endpoint on the Amazon side of your Site-to-Site VPN connection that can be attached to a single VPC. Transit gateway: A transit hub that can be used to interconnect multiple VPCs and on-premises networks, and as a VPN endpoint for the Amazon side of the Site-to-Site VPN connection.

VPN endpoint or Target gateway, in AWS is either VPW or TGW