Build your own VPN server in less than 5 minutes at any of the 16 regions of AWS
Prerequisites:
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
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