Create VPC for VPN

Create a VPN Environment

  1. Access VPC Interface
  • Select Your 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. Successfully Create 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
  • 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. Create a Route Table to Route 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