wg-ui

command module
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 26 Imported by: 0

README

wg-ui

Go

Self-contained WireGuard management service with a web UI and GraphQL API written in pure Go.

Features

  • Ability to import existing wireguard configurations
  • Web UI - https://github.com/desislavsd/wireguard-manager
  • Multiple wireguard interfaces
  • Simple multi-user authentication support
  • Portable - No external dependencies (one single binary)
  • Configures wireguard by directly communicating with kernel module
  • Flexible deployment - binary and oci container

Quickstart

Compile from source or download a release from Releases page

Run manually from the shell

# Copy default .env.dist as .env
cp .env.dist .env

# Generate random jwt secret
sed -i "s|WG_UI_JWT_SECRET=Any_secret_base64_value_here|WG_UI_JWT_SECRET=$(head -c 128 </dev/urandom | base64 -w 0 -)|g" .env

# Start wg-ui
env $(cat .env | xargs) ./wg-ui

Debian/Ubuntu

amd64 (x64)
sudo dpkg -i wg-ui_*_linux_amd64.deb
arm64
sudo dpkg -i wg-ui_*_linux_arm64.deb

Archlinux

amd64 (x64)
sudo pacman -U --noconfirm wg-ui_*_linux_amd64.pkg.tar.zst
arm64
sudo pacman -U --noconfirm wg-ui_*_linux_arm64.pkg.tar.zst

Docker

# Download the docker-compose file
wget https://raw.githubusercontent.com/UnAfraid/wg-ui/master/docker-compose.yaml

# Download the default .env file
wget -O .env https://raw.githubusercontent.com/UnAfraid/wg-ui/master/.env.dist

# Generate random jwt secret
sed -i "s|WG_UI_JWT_SECRET=Any_secret_base64_value_here|WG_UI_JWT_SECRET=$(head -c 128 </dev/urandom | base64 -w 0 -)|g" .env

# Modify .env
nano .env

# Start the container
docker-compose up -d

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL