GithubHelp home page GithubHelp logo

r0b1n / diy-vpn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flosell/diy-vpn

0.0 2.0 0.0 290 KB

Create your own OpenVPN instance hosted on DigitalOcean or Rackspace

License: Apache License 2.0

Ruby 58.07% ApacheConf 0.69% HTML 33.05% Shell 8.18%

diy-vpn's Introduction

About

This is a turn-key solution to create your own VPN in the cloud. It's a vagrant-template that uses chef to set up OpenVPN server on a cloud-hoster and a small script to pull the VPN-servers configuration and set up the Tunnelblick-VPN app on the client.

Currently works with

Setup

  • Install Vagrant
  • execute vagrant plugin install vagrant-omnibus vagrant-digitalocean
  • sign up for your favorite supported hoster
  • set up environment-variables:
    • For Digitalocean:

      export DIGITALOCEAN_CLIENT_ID="<TODO>"
      export DIGITALOCEAN_API_KEY="<TODO>"
      // or Personal Access Tokens instead
      export DIGITALOCEAN_TOKEN="<TODO>"
    • For Rackspace:

      export RACKSPACE_USERNAME="<TODO>"
      export RACKSPACE_API_KEY="<TODO>"
  • install Tunnelblick (if you are on a Mac) or any other OpenVPN capable VPN client
  • clone the repo

Usage

(use all commands below with the cloned repository folder as your working directory)

Setting up a VPN server

  • vagrant up --provider=digital_ocean to start an instance at DigitalOcean (per default in the US region)
  • vagrant up --provider=rackspace to start an instance at Rackspace (per default in the London region)

Setting up a VPN client

  • if you are on a Mac and are using tunnelblick, just execute ./set_up_vpn_client.sh
  • if you are on a different OS, have a look into the script to find out how to get the generated OpenVPN config from the server. (Basically, it's scp-ing a tar.gz that contains everything you need)

Destroying your VPN server

The beauty of having a cloud-hoster is that it's cheap to destroy your VPN server when you are not using it:

  • vagrant destroy

diy-vpn's People

Contributors

flosell avatar r0b1n avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.