Create VPC for VPN
Create VPN environment
- Access VPC interface
- Select Yours VPC
- Select Create VPC

- In the Cretae VPC interface
- Resource, select VPC only
- Name, enter
ASG VPN
- IPv4 CIDR block, enter
10.11.0.0/16

- Select Create VPC

- Create a successful VPC

- Access VPC interface
- Select Subnets
- Select Create subnet

- In the Create subnet interface

- 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

- Successfully created VPN Public

- In the VPC interface
- Select Subnets
- Select VPN Public
- Select Actions
- Select Edit subnet settings

- Execute Auto-assign IP settings
- Select Enable auot-assign public IPv4 address
- Select Save

- IP allocation successful

- In the VPC interface
- Select Internet Gateway
- Select Create internet gateway

- In the Create internet gateway interface
- Name tag, enter
Internet Gateway VPN
- Select Create internet gateway

- 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

- Select VPC ASG VPN, VPC ID will be automatically filled in.
- Select Attach Internet Gateway

- Attach succeeds when State is Attached

- 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

- 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

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

- 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

- Complete and test the route

- In the Route table VPN - Public interface
- Select Subnet associations
- Select Edit subnet associations

- 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

- Complete and recheck Routes
