Skip to content

Build your own VPN server in less than 5 minutes at any of the 16 regions of AWS

License

Notifications You must be signed in to change notification settings

paliwalvimal/aws-vpn-terraform

Repository files navigation

aws-vpn-terraform

Build your own VPN server in less than 5 minutes at any of the 16 regions of AWS

Prerequisites:

  • AWS Account
  • IAM User with Access Key & Secret Key
  • AWS CLI (Download)
  • Terraform (Download)

1. Configure local machine:

  • Install AWS CLI
  • Open terminal(linux/mac)/command prompt(windows)
  • Run aws configure
  • Provide the access key, secret key and region as requested

2. Setup VPN Server:

  • Unzip downloaded terraform file
  • Add terraform executable file to your environment variable (Optional)
  • Download main.tf, variables.tf, private-key.ppk, public-key and user-data.txt files. Note: You can generate your own private & public key
  • Open terminal(linux)/command prompt(windows)
  • Run terraform init command
  • Run terraform apply command. Provide yes as input if asked and hit enter to start the process of setting up your own private VPN server

Hurray!! VPN server is now successfully up and running

3. Few Changes:

  • Go to https://public-ip/admin
  • Enter openvpn as username and openvpnpass as password
  • Under Configuration click on VPN Settings
  • Under Routing change both the last questions to yes
  • Under "DNS Settings" select second option for first question

You can now go to https://public-ip and start enjoying VPC service

About

Build your own VPN server in less than 5 minutes at any of the 16 regions of AWS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published