How to Set Up a Free VPN Server in AWS Cloud
Learn how to set up a secure, personal VPN server in the AWS cloud using OpenVPN—completely free under the AWS Free Tier.
Required Tools:
Things Needed?
Steps to configure the How-to Schema:
Create or log into your AWS Free Tier account at aws.amazon.com.
In the AWS Console, go to “Services” > “EC2” under the “Compute” section.
Click “Launch Instance” and then choose “AWS Marketplace” on the left sidebar.
Search for “OpenVPN” and select the free-tier eligible OpenVPN Access Server (not the one limited to 10 devices).
Choose the instance type t2.micro (free-tier eligible), and proceed with launch.
Create a new key pair, download it, and keep it secure (you’ll need it for SSH access).
After the instance launches, copy the example SSH connection command from AWS and adjust it to point to your key file (e.g., Downloads/vpnserver.pem).
Open your terminal (Linux/macOS) or PowerShell/Command Prompt (Windows) and connect using the SSH command.
Accept the license agreements by typing yes and pressing Enter through the prompts.
Reconnect as the openvpn user instead of root by changing the SSH username.
Run the command sudo passwd openvpn to set your admin/client password.
Return to the EC2 dashboard and copy your instance’s IPv4 Public IP.
In your browser, go to https://[Your.IP.Address]:943/admin and log in with username openvpn and the password you just set.
In the admin portal, go to “VPN Settings” > “Routing” and select “Yes, all client traffic should be routed through the VPN.” Save settings and click “Update Running Server.”
To connect as a user, go to https://[Your.IP.Address]:943/ (remove “admin” from the URL).
Log in with the same openvpn credentials, select your device type, and download the VPN client.
Install the VPN client, launch it, and log in with the same credentials.
Confirm the VPN is working by going to Google and typing “What’s my IP?”—it should match your VPN server IP.
For mobile devices, use the links in the user portal to download the OpenVPN app and follow the instructions.
Discover more from Michael Allen
Subscribe to get the latest posts sent to your email.
