wg-installer: add wg-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.

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.

Get Usage:
  wg-client-installer get_usage --ip 127.0.0.1 --user wginstaller
	--password wginstaller

Register Interface:
  wg-client-installer register --ip 127.0.0.1 --user wginstaller
         --password wginstaller --bandwidth 10 --mtu 1400

Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke
2021-02-04 16:34:02 +01:00
committed by Polynomdivision
parent d29ec52a58
commit 3a6949dfaf
11 changed files with 494 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
## 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