1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-15 03:43:53 +02:00
openwrt-packages/net/wg-installer/README.md
Nick Hainke 3ebc568f18 wg-installer: add babeld hotplug.d script
Add a hotplug.d-extension that automatically configures babeld for
meshing via wireguard interfaces.

It checks for "add" and "remove" of a wireguard interface with name
"wg_*". Depending on the action, it removes it from the babeld config
or adds the interface and reloads babeld.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-02-08 11:38:36 +01:00

839 B

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