Tiered AWS OpenVPN AMI
OpenVPN Access Server / AWS Video Tutorials
Tiered AWS OpenVPN AMI
Learn how to launch OpenVPN Access Server with connected devices in AWS
In this tutorial
This tutorial covers the steps to launch OpenVPN Access Server through Amazon Web Services. Set up your VPN on an Amazon Machine Image within several minutes and provide the security of encrypted traffic through an Amazon EC2 Linux Instance. No hardware or server required on your end.
These are the steps covered:
- Start on your Amazon EC2 Dashboard and click on Launch Instance.
- From the AWS Marketplace, search for “OpenVPN.”
- In the results, you’ll see options for OpenVPN Access Server. Choose the number of connected devices you’ll need in order to launch one with Amazon’s tiered pricing.
- Click on Select for the AMI chosen.
- Review the pricing details, then click on Continue.
- Choose your instance type (t2.micro for our demo) and click on Next: Configure Instance Details.
- Choose your VPC from the Network field.
- Choose whether you want to auto-assign Public IP from that field and click on Next: Add Storage.
- Click Next: Add Tags.
- Click on Add Tag and provide a name label then click on Next: Configure Security Group.
- Review the security group auto-generated by AWS with the necessary ports open for the VPN, then click on Review and Launch.
- Review your instance launch details, and click on Launch.
- Select an existing key pair or create a new key pair, then click on Launch Instances.
- Click on the page for your instance while it launches. You can copy the IP Address from the IPv4 Public IP field under your Description.
- SSH into your new instance with the Public IP address (we used a terminal in our demo) and logging in with the openvpnas user.
- Upon first login, the OpenVPN Access Server configuration launches automatically and you can read and agree to the EULA.
- Go through the configuration (we selected all of the defaults).
- At the end of the setup, make note of the URLs for the Admin UI and Client UI.
- Sudo up by entering sudo su
- Now with root privileges, set a password for the openvpn bootstrap user by entering passwd openvpn
- Set the password, hit enter, and retype it to confirm, then hit enter.
- Now with the password set, go to your browser and enter the URL for the Admin UI (from the step above).
- You will see a security warning in your browser because OpenVPN Access Server ships with a self-signed certificate (something you can replace with your own web cert to remove it).
- Log in to the Admin Web UI with your openvpn username and password just assigned.
- Read and agree to the EULA.
- You’ll see the Status Overview showing you have 5 licenses (or however many you chose from the AMI selection at the beginning).
We also reviewed these two areas on the Admin Web UI:
- Under Configuration > License, you’ll see the installed licenses for the number of concurrent users chosen with your tiered AMI (6:30)
- Under Configuration > VPN Settings, you can review routing information and the VPN Network Address and how you could set up your VPN to be a gateway to your Amazon VPC (6:41)