openwrt-packages/net/wg-installer
Nick Hainke 36dc9b3f79 wg-installer: delete old interfaces
Add "wg_check_interfaces" and specify a timeout in the config file.
This allows to delete not used wireguard-interfaces automatically.

For example a cronjob can be installed that calls:
  . /usr/share/wginstaller/wg_functions.sh && wg_check_interfaces

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-03-14 11:27:07 +01:00
..
common wg-installer: add wg-installer 2021-02-06 22:41:29 +01:00
wg-client wg-installer: add link-local to client interface 2021-03-06 11:16:38 +01:00
wg-server wg-installer: delete old interfaces 2021-03-14 11:27:07 +01:00
Makefile wg-installer: add babeld hotplug.d script 2021-02-08 11:38:36 +01:00
README.md wg-installer: add babeld hotplug.d script 2021-02-08 11:38:36 +01:00

README.md

Wireguard Installer

This tool can be used to automatically create wireguard tunnels. Using rpcd a new wireguard interface is created on the server where the client can connect to.

Installation

For Server

opkg install wireguard-installer-server

For Client

opkg install wireguard-installer-client

Wiregurad server automatically installs a user and associated ACL to use the wireguard-installer-server features. The user is called wginstaller and so is the password.

Usage

Get Usage Statistics

wg-client-installer get_usage --ip 127.0.0.1 --user wginstaller --password wginstaller

Register Tunnel Interface

wg-client-installer register --ip 127.0.0.1 --user wginstaller --password wginstaller --bandwidth 10

Hotplugs

  • wg-installer-server-hotplug-babeld: mesh automatically via wireguard with babeld