Create VPC for VPN

Create a VPN environment

  1. Access VPC interface

    • Select Yours VPC
    • Select Create VPC

Create VPC

  1. In the Create VPC interface

    • Resource, select VPC only
    • Name, enter ASG VPN
    • IPv4 CIDR block, enter 10.11.0.0/16

Create VPC

  1. Select Create VPC

Create VPC

  1. Create a successful VPC

Create VPC

  1. Access VPC interface

    • Select Subnets
    • Select Create subnet

Create VPC

  1. In the Create subnet interface

    • Select ASG VPN vpc

Create VPC

  1. In the Subnet settings interface

    • Subnet name, enter VPN Public
    • Select Availability Zone: ap-southeast-1a
    • Select IPv4 CIDR block as 10.11.1.0/24 according to the architecture described

Create VPC

  1. Successfully Created VPN Public

Create VPC

  1. In the VPC interface

    • Select Subnets
    • Select VPN Public
    • Select Actions
    • Select Edit subnet settings

Create VPC

  1. Execute Auto-assign IP settings

    • Select Enable auto-assign public IPv4 address
    • Select Save

Create VPC

  1. Successful IP allocation

Create VPC

  1. In the VPC interface

    • Select Internet Gateway
    • Select Create internet gateway

Create VPC

  1. In the Create internet gateway interface

    • Name tag, enter Internet Gateway VPN
    • Select Create internet gateway

Create VPC

  1. After creating Internet Gateway VPN successfully and State is Detached. Next, we need to Attach the Internet Gateway to VPC ASG VPN.

    • Select Actions
    • Select Attach to VPC

Create VPC

  1. Select VPC ASG VPN, VPC ID will be automatically filled in.

    • Select Attach Internet Gateway

Create VPC

  1. Attach succeeds when State is Attached

Create VPC

  1. Next we need to create a Route Table that routes out to the internet through the Internet Gateway. In the VPC interface

    • Select Route Tables
    • Select Create route table

Create VPC

  1. In the Create route table interface

    • Name, enter Route table VPN - Public
    • Select VPC named ASG VPN , VPC id will be automatically filled in.
    • Select Create route table

Create VPC

Create VPC

  1. Successfully created route table. In the Route table VPN - Public interface

    • Select Route
    • Select Edit route

Create VPC

  1. In the Edit routes interface

    • Select Add route
    • Fill in the Destination CIDR : 0.0.0.0/0 representing the Internet.
    • In the Target section select Internet Gateway, then select the Internet Gateway VPN we created. Internet Gateway ID will be automatically filled in.
    • Select Save changes

Create VPC

Create VPC

  1. Complete and test the route

  2. In the Route table VPN - Public interface

    • Select Subnet associations
    • Select Edit subnet associations

Create VPC

  1. In the Edit subnet associations interface

    • Expand the Subnet ID column by dragging the pane to the right.
    • Select subnet VPN Public.
    • Select Save associations

Create VPC

  1. Complete and recheck Routes

Create VPC