Skip to content

fubarhouse/OpenVPN-Terraform-Setup

 
 

Repository files navigation

Create and Host your own VPN Server for Free on AWS Using Terraform and OpenVPN

This terraform configuration creates a fully functional, free and ready-to-use self-hosted OpenVPN Server in any chosen AWS region.

Quick Start Guide

Click here for a Quick Start Guide

Full Documentation

A Full documentation with step-by-step guide explaining how the complete module works is captured here: OpenVPN Access Server Setup

What the script does

  • Creates a Ubuntu 22.04 EC2 instance and configures a fully functional OpenVPN Access Server
  • Configures the server as a type t2-micro which runs within the AWS Free-tier plan (Learn more about the AWS free-tier plan here)
  • Set up and configure the VPN server with an IP address in the AWS region specified
  • Generates an AWS keypair file for SSH connection to the EC2 instance and saves the file in the terraform working directory locally
  • Generates an OpenVPN User Profile file (*.ovpn) that will be used to establish an encrypted VPN connection from your local machine to the VPN server
  • One command tear down that destroys the whole infrastructure along with the locally created files (the keypair file and the *.ovpn user profile file)

Credits

  • Thanks to Stanislas Agristan for the OpenVPN Installer script
  • Thanks to Dominic Dumrauf who created a similar terraform solution using Agristan's script and inspired mine.

About

Create and host your own VPN Server using AWS, Terraform and OpenVPN Access Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 87.5%
  • Shell 12.5%