Creating EC2 Instance

Create EC2 as a Customer Gateway

  1. Access to VPC

    • Select Security Group
    • Select Create security group

Create VPC

  1. In the Create security group interface

    • Security group name, enter VPN Public -SG
    • In the Description section enter Allow IPSec, SSH, and Ping for servers in public subnet.
    • VPC, select ASG VPN vpc

Create VPC

  1. Configure Inbound rules

    • Select Add rule
    • Select Type: SSH and Source: My IP. My IP represents a public IPv4 address you are using.
    • Click Add rule to add a new rule.
    • Select Type: All ICMP IPv4 and Source: Anywhere. Allow ping from any IP address.
    • Click Add rule to add a new rule.
    • Select Type: Custom UDP , Port:400 and Source : Anywhere.
    • Click Add rule to add a new rule.
    • Select Type: Custom TCP , Port:500 and Source : Anywhere

Create VPC

  1. Check Outbound rules and select Create security group

Create VPC

  1. Complete creation of VPN Public - SG. So we have created a Security Group. Next, we will proceed to create an EC2 server that plays the Customer Gateway role.

Create VPC

Create VPC

  1. Access to EC2

    • Select Instances
    • Select Launch instances

Create VPC

  1. In the Launch instances interface

    • Name, enter Customer Gateway instance

Create VPC

  1. Executing AMI Selection

    • Select Quick Start
    • Select Amazon Linux
    • Select AMI

Create VPC

  1. Select Instance type and select Key pair: aws-keypair(keypair created with instances)

Create VPC

  1. Configure Network

    • VPC, select ASG VPN vpc
    • Subnet, select VPN Public
    • Auto-assign public IP, select Enable
    • Firewall, select Select existing security group
    • Select VPN Public - SG
    • Check again and select Launch instance

Create VPC

  1. Finish creating EC2 instance

    • Select View all instances

Create VPC

  1. View details Customer Gateway instance

Create VPC