EMAIL SUPPORT
dclessons@dclessons.comLOCATION
AFLAB: Configure EC2 as VPN Server for Open VPN Connection
LAB: Launch & Configure EC2 instance as VPN Server and Provide Connectivity to User via VPN.
Task:
- Launch an EC2 instance & initialize it with Open AMI VPN Server
- Download Open VPN Remote Client in Local machine
- Connect to VPN
Topology:
Below is the topology Diagram for VPN connection
Solution:
Go to AWS Services | EC2 | Under Instance: Launch Instances
In Choose AMI Section, Click AWS market place and Select OPENVPN as shown below
Once Selected, | Choose instance Type t2.micro | in default VPC using default subnet and enable Public IP address .
Click to Continue
Click next to Storage Section | In Tag name: Value: DclessonsVPNServer
In Configure Security Group: Click to create a new Security group and provide name and allow ports and protocol as shown in below figure
In key pair Section: Create a new key pair | select RSA | key pair name: DclessonsVPN | Click Download key pair and Click Launch Instances.
Once Instance is launched, Under Details section, you can see it has got public IP address 18.208.170.74
Now SSH to EC2 instance using public IP address : 18.208.170.74 with user name : root and you have to follow below steps
- Will this be the primary Access Server node : Click the [enter] button.
- Please enter the option number from the list above (1-2) : Click the [enter] button.
- Please specify the port number for the Admin Web UI : Click the [enter] button.
- Please specify the TCP port number for the OpenVPN Daemon : Click the [enter] button.
- Should client traffic be routed by default through the VPN? : Click the [enter] button.
- Should client DNS traffic be routed by default through the VPN? : Click the [enter] button.
- Use local authentication via internal DB? : Click the [enter] button.
- Should private subnets be accessible to clients by default? : Click the [enter] button.
- Do you wish to login to the Admin UI as "openvpn"?: Click the [enter] button : Click the [enter] button.
Refer Below figure for reference:
LEAVE A COMMENT
Please login here to comment.