A simple, easy to use web interface for Wireguard. It supports SSO authentication (currently Google, Github, Gitlab, Okta are supported) and SCIM2.0 protocol (in development).
Prerequisites:
- Go 1.16
- GCC (required by go-sqlite)
Build Webguard:
git clone --depth 1 https://github.com/nhamlh/webguard \
&& cd webguard \
&& go build -o ./webguard ./cmd/
Run the database schema migration:
./webguard db migrate
Start Webguard:
./webguard start
After sucessfully build Webguard, you can run genconf
subcommand to generate a default configuration file. You can edit this file then apply it to Webguard by --config
flag, e.g:
./webguard genconf > config.json && ./webguard --config config.json start
Webguard ships with pre-built docker container. Notice: Webguard container must be run with NET_ADMIN capability.
docker run --rm \
-p 8080:8080 \
--cap-add NET_ADMIN \
docker pull ghcr.io/nhamlh/webguard:latest
This will start Webguard on port 8080