Skip to content

Quickly create a VPN anywhere in the world using EC2 Spot Instances

Notifications You must be signed in to change notification settings

fsegouin/ec2-spot-vpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ec2-spot-vpn

Quickly create a VPN anywhere in the world using EC2 Spot Instances. Inspired by an article from Larry Gadea. The VPN used here is a Docker image made by Kyle Manna.

This is obviously not secure (certs generated without a passphrase) and meant to be used as a proof of concept only.

Prerequisites

  • AWS CLI tool already configured (use aws configure). Make sure to select the region you want your vpn to be in.
  • An Amazon Linux AMI image with Docker installed (make your own and put the AMI id in the vpn-up.sh script)
  • A security group with ports 22 (TCP), 1194 (UDP) and a custom ICMP rule (Echo request) to allow ping requests. You might also like to open the port 443 (TCP) if you want this vpn to work over 443 for obfuscation reasons. Add the security group id in the vpn-up.sh script.

Costs

At today's prices in the EU Ireland region, this VPN will cost you $0.0038 per hour, and $0.09 per GB out.

About

Quickly create a VPN anywhere in the world using EC2 Spot Instances

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages