wireguard-api
v0.1.2
Published
An API wrapper for Wireguard® Linux servers, written in Node.js
Downloads
1
Readme
Wireguard® API admin
The codebase is currently under heavy development, use it at your own risk!
Manage your Wireguard® servers through HTTP requests
Currently supported OS: Ubuntu
Before you start
Make sure UDP:6666 and TCP:8080 are both free on your server.
Install
First install wireguard
$ apt-get install software-properties-common -y
$ add-apt-repository ppa:wireguard/wireguard -y
$ apt update
$ apt install linux-headers-$(uname -r) wireguard qrencode iptables-persistent -y
Then install wireguard-api
$ npm i -g wireguard-api
Setup
$ wireguard-api setup
Run
$ wireguard-api run
Manage
- Open http://your_server_ip:8080 or http://localhost:8080
- Enter username and password for first-time login.
- Done!
Configuration
- For DNS server: change server.dns
- For retrieving IP address of the server: please refer to https://github.com/major/icanhaz
{
"server.dns": "1.1.1.1",
"server.ipv4.checkip.host": "https://ipv4.icanhazip.com",
"server.ipv6.checkip.host": "https://ipv6.icanhazip.com",
...
}