Skip to content

k0va1/vpnius

Repository files navigation

Wireguard VPN

Supported platforms

  • Digital ocean
  • AWS
  • Yandex Cloud
  • Selectel

Prerequisites

  • Docker on your local machine

How to setup?

Digital ocean

  1. Sign up in Digital ocean
  2. Go to tokens page and create new token
  3. Setup payment method
  4. Run the following command

You can configure vpn with ENV varialbes:

Name Description Default Available
TF_VAR_region Region where vpn will be setup ams3 nyc1, nyc2, nyc3, sfo1, sfo2, tor1, lon1, fra1, sgp1, blr1, ams2
TF_VAR_wireguard_peers How many configs you need. Comma-separated names laptop any valid filename
docker run --rm \
  -e TF_VAR_do_token=your_token \
  -e TF_VAR_wireguard_peers=laptop,phone
  -v `pwd`:/opt/vpnius/config
  hetsketch/vpnius:latest

After command succeds you'll find config files and .png QR codes in the current directory.

  1. Install Wireguard client on your mobile/laptop
  2. Import config to client
  3. Enjoy

TODO

  • Terraform template
  • Ansible playbook
  • Dockerize script
  • Imporove README
  • AWS support
  • Yandex support
  • Selectel support
  • OpenVPN support
  • Use Apline base image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published