Provision an OpenVPN Server and Client Instances on Amazon EC2

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

With security becoming more and more of a concern and remote work becoming more standard, many companies choose to implement a Virtual Private Network (VPN) to provide employees with a secure connection to access company resources. In this hands-on lab, you will be tasked with provisioning an OpenVPN server and client with the appropriate configurations to facilitate communication.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Access the AWS Web Console and Navigate to the EC2 Service
  • Use the link provided to access the AWS web console login page.
  • Enter the IAM username and password provided to log in.
  • Navigate to the EC2 service.
Provision an OpenVPN Server on EC2
  • Click Launch Instance in the EC2 service.
  • Configure the OpenVPN server with the following specifications:
    • Name: vpn_server
    • Image: Ubuntu 20.04
    • Instance type: t2.micro
    • Key pair: vpnserver
    • Security group rules (from anywhere): 22/TCP, 943/TCP, 945/TCP, 443/TCP, 1194/UDP
    • Storage: 1×8 GiB gp2
  • Click Launch Instance.
Provision an OpenVPN Client on EC2
  • Click Launch Instance in the EC2 service.
  • Configure the OpenVPN client with the following specifications:
    • Name: vpn_client
    • Image: Ubuntu 20.04
    • Instance type: t2.micro
    • Key pair: vpnclient
    • Security group rules (from anywhere): 22/TCP
    • Storage: 1×8 GiB gp2
  • Click Launch Instance.

Additional Resources

Scenario

You work as a system administrator and have been tasked with provisioning two Amazon EC2 instances, the first to be used as an OpenVPN server and the other as a client. This is part of a greater initiative that will aid your company in selecting a primary VPN to use moving forward. Both instances will be using Ubuntu 20.04 as the operating system and each should implement the appropriate security group rules to allow communication for the OpenVPN service. To accomplish this, you have been provided with credentials to access the AWS Management Console and sufficient rights to provision these instances.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?