Giter Site home page Giter Site logo

wgzero's Introduction

WGZero

CLI based wireguard server manager. Tested on Debian Bullseye.

Features

  • Plain IPv4 installation
  • Multi interfaces support
  • IPv6
    • NAT
    • Full routing
  • Import & uninstall
  • Easy backup

Requirements

Packages

wireguard curl qrencode iptables jq bsdmainutils

IPv6

If you need IPv6, please make sure you can access internet using ipv6 before proceeding.

There are 2 types of connection:

NAT

  • Internal IPv6 communication uses ULA (Unique Local Address).
  • Prioritize on using public IPv6 (shared with all clients) and fallback to IPv4 when not available.
see image

Full Routing

  • Assign unique public IPv6 to each clients.
  • You need to have an IPv6 address and a block of /64 IPv6 addresses.
    • IPv6 address should be assigned to main interface and /64 is reserved for wireguard
    • If you only get /64 from VPS provider, you need to split it into smaller blocks and install ndppd (see example)
    • If you don't have it, you can get free IPv6 from Tunnelbroker (see example)
see image

Installation

curl -o /usr/local/bin/wgzero https://raw.githubusercontent.com/finzzz/wgzero/master/wgzero
chmod +x /usr/local/bin/wgzero
wgzero install

Example Installation

Backup and restore

Backup is simple, just save /etc/wireguard/<interface name>.conf. All of the data including clients are stored in that file. To restore, simply run wgzero import <interface name>.conf on new host.

Other Commands

wgzero install
wgzero uninstall <wg_interface>
wgzero import wg0.conf

# default wg0
wgzero list <wg_interface>
wgzero show clientname <wg_interface> 
wgzero qr clientname <wg_interface> 
wgzero enable clientname <wg_interface>
wgzero disable clientname <wg_interface> 
wgzero del clientname <wg_interface>

wgzero's People

Contributors

finzzz avatar harvsg 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.