GithubHelp home page GithubHelp logo

ji-mmyliu / wg-vpn-onboarder Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 103 KB

A program to quickly set up a Wireguard VPN

License: MIT License

Go 97.97% Makefile 2.03%
golang wireguard-vpn wireguard-vpn-setup

wg-vpn-onboarder's Introduction

Wireguard VPN Setup Tool

A program designed to quickly set up a Wireguard VPN using a Hub and Spoke configuration. To get started, either build the program from source or follow the quick installation.

Quick Installation

Method 1: using go install (Recommended)

go install github.com/ji-mmyliu/wg-vpn-onboarder@latest
alias wgv=wg-vpn-onboarder # If you'd like, add this line to your shell profile (e.g. ~/.bashrc)

Method 2: Download release binary (works on amd systems only)

  1. Download the program executable
curl --output /tmp/wgv https://github.com/ji-mmyliu/wg-vpn-onboarder/releases/download/v1.0.6/wgv
chmod +x /tmp/wgv
  1. Copy the executable into a folder in your system's PATH:
sudo mv /tmp/wgv /usr/bin/wgv

Setting up a VPN

  1. Prepare the VPN server and follow the instruction prompts
wgv server new
  1. Start up the server:
wgv server up
  1. Generate a client configuration
wgv client new
  1. Get the client's Wireguard configuration through a method of your choice and apply it to the client device's Wireguard application:
wgv client connect

Summary of Commands

wgv server new      Creates a new VPN network interface
wgv server up       Starts a VPN server
wgv server down     Shuts down a VPN server

wgv client new      Prepares a client configuration for a server
wgv client connect  Exports a client configuration file

wgv help            Displays this help message
wgv version         Displays the version of wgv installed

Written in Golang. Copyright (C) 2023 Jimmy Liu

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.