Amnezia-wg manager script
Go to file
2023-03-01 19:38:29 +03:00
README.md dnk: update README 2022-12-13 22:07:37 +03:00
shm_actions_script.sh dnk: add verbose messages 2023-02-10 16:27:08 +03:00
wg-manager.sh dnk: smart search last ip 2023-03-01 19:38:29 +03:00

wg-manager

WireGuard manager allow initialize WireGuard server and manage users.

You can start the WireGuard server with one command, and then create (and delete) users.

Usage: ./wg-manager.sh [<options>] [command [arg]]
Options:
 -i : Init (Create server keys and configs)
 -c : Create new user
 -d : Delete user
 -L : Lock user
 -U : Unlock user
 -p : Print user config
 -q : Print user QR code
 -u <user> : User identifier (uniq field for vpn account)
 -s <server> : Server host for user connection
 -I : Interface (default auto)
 -h : Usage

Quick start

Run server (bare-metal or VPS) with Ubuntu 22.02

Install WireGuard

apt install wireguard wireguard-tools qrencode -y

Setup

  • Download this script wg-manager.sh from GitHub
  • Initialize WireGuard server: ./wg-manager.sh -i -s YOUR_SERVER_IP
  • Add your user: ./wg-manager.sh -c -u my_user -p > wg-client.conf
  • Install WireGuard on the client
  • Start client with config wg-client.conf