1
0
Fork 0
This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
kekskurse.de-old/content/software/go-wireguard-admin.md
2021-10-12 10:53:19 +02:00

66 lines
1.7 KiB
Markdown

---
title: "go-wireaguard-admin"
cc: "by-nc-sa"
---
*Coming soon*
# Setup
The tool is created vor Debian 10, for that you can use the following steps
## Prepaird
Install the following debian packages
```
$ sudo apt install wireguard wireguard-tools linux-headers-$(uname -r) mariadb-server
```
Than create a mysql database
```
$ mysql
> CREATE DATABASE `go-wireguard-admin`;
> GRANT ALL ON `go-wireguard-admin`.* TO 'go-wireguard-admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
> FLUSH PRIVILEGES;
> exit
```
## Install
Go to [the release page](http://releases.kekskurse.de/go-wireguard-admin/) and download the lhe .deb file from the last Release. After that install the package via dpkg
```
wget "http://releases.kekskurse.de/go-wireguard-admin/dev/go-wireguard-admin-amd64.deb"
dpkg -i go-wireguard-admin-amd64.deb
```
## Configuration
After that you need to create a config file, use `cp /etc/go-wireguard-admin/go-wireguard-admin.env.sample /etc/go-wireguard-admin/go-wireguard-admin.env`
Then open the file `/etc/go-wireguard-admin/go-wireguard-admin.env` and edit the values, it is importent to set the right database connection.
## Run
To start the webgui and the wireguard confiugration script run
```
systemctl start go-wireguard-admin-server start
systemctl start go-wireguard-admin-configurator start
```
to enabled autostart after reboot:
```
systemctl enabled go-wireguard-admin-server start
systemctl enabled go-wireguard-admin-configurator start
```
After that you can access it at http://<yourip>:3000
# Config Varieablen
# Problems
## Migration failed
Is `?multiStatements=true` at the end of the mysql string, if not add it.
# Links
* [Release Page](http://releases.kekskurse.de/go-wireguard-admin/)