Code Monkey home page Code Monkey logo

digitalocean_vpn's Introduction

DigitalOcean simple VPN setup ๐Ÿ

Setup your own personal VPN server hosted on DigitalOcean with a single command.

Install

Checkout repo and launch:

git clone https://github.com/GeorgiyDemo/digitalocean_vpn
cd digitalocean_vpn
python3 main.py

Requirements

Configure setup

Read below how to get YOUR_TOKEN, YOUR_FINGERPRINT and KEY_DIR. First is needed to create/destroy droplets by your account, ssh fingerprint and directory is to be able to access created droplet using SSH

Once script is finished, you need to download .ovpn file via wget or web:

wget -O "ready.ovpn" --no-check-certificate https://IP:8080/ 

Obtain DigitalOcean API key

Obtain DIR and DigitalOcean SSH key fingerprint

  • Generate new keys:
ssh-keygen -t RSA
  • Default KEY_DIR is $HOME/.ssh/, but you can replace it by your own
  • Visit https://cloud.digitalocean.com/settings/security
  • Click on "Add ssh key" (or skip if you already have it)
  • Copy ssh key fingerprint
  • Replace "YOUR_FINGERPRINT" string in main.py

Tweak VPN

If you want to modify vpn just replace line 61 in main.py

os.system('ssh -i '+key_dir+' root@'+droplet_ip+' "yum install git -y && git clone https://github.com/georgiydemo/VPN && cd VPN && chmod +x docker.sh && ./docker.sh"')

License

MIT - Do whatever you want, attribution is nice but not required

digitalocean_vpn's People

Contributors

georgiydemo 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.