alexandregz / pivpn-wireguard-gui

Add, revoke and download WireGuard VPN profiles via a web based GUI with QR Code support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PiVPN WireGuard GUI

A simple (unofficial) GUI for PiVPN.

Image of WireGuard VPN Home Add, revoke and download WireGuard vpn profiles with QR Code support.

Setup

  1. composer install
  2. cp .env.example .env
  3. Set APP_KEY to a random string.
  4. cp ./storage/app/users/users.json.example ./storage/app/users/users.json
  5. Setup a user with a username and password I strongly recommend the use of a UUID as a password
  6. Serve ./public

Extend

New drivers can be added by implementing the VPNDriver.php interface.

Serve with lighttpd

DON'T WORKS!!

Infor extracted from https://tecadmin.net/setup-virtualhosts-in-lighttpd-server/:

To reuse the lighttpd installed by pihole, you need:

  • add this to /etc/lighttpd/external.conf:
root@raspberrypi:/etc/lighttpd# cat external.conf
# para incluir vhosts
include_shell "cat /etc/lighttpd/vhosts.d/*.conf"
  • create vhost config to serve public:
root@raspberrypi:/etc/lighttpd/vhosts.d# cat pivpn-wireguard-gui.conf
$HTTP["host"] == "pivpn-wireguard-gui.lan" {

        server.document-root = "/home/pi/pivpn-wireguard-gui/public/index.php"
        server.errorlog = "/var/log/lighttpd/pivpn-wireguard-gui.error.log"
        accesslog.filename = "/var/log/lighttpd/pivpn-wireguard-gui.access.log"
}
  • check syntax
root@raspberrypi:/etc/lighttpd# lighttpd -t -f /etc/lighttpd/lighttpd.conf
Syntax OK
  • restart lighttpd
root@raspberrypi:/etc/lighttpd# service lighttpd restart
root@raspberrypi:/etc/lighttpd#

About

Add, revoke and download WireGuard VPN profiles via a web based GUI with QR Code support.


Languages

Language:PHP 60.2%Language:Blade 36.0%Language:JavaScript 3.0%Language:CSS 0.4%Language:Shell 0.3%