Sole VPN client implementing Multi-Factor Authentication on WireGuard® VPN connection
Sole VPN client implementing Multi-Factor Authentication on WireGuard® VPN connection
Desktop client for managing WireGuard VPN connections (any WireGuard server and defguard instances).
To learn more about the system see our documentation.
Make sure to install prerequisites from tauri.
Make sure you have cloned, and up to date, proto submodule in src-tauri/proto
Make sure you have protoc available.
cd new-ui
pnpm installTo work with sqlx on a local db file, you'll have to set DATABASE_URL env variable.
It's best to set it to absolute path since cargo tauri dev runs with weird paths.
Init the file with:
export DATABASE_URL=sqlite:///dev.db`
sqlx db create
sqlx migrate run --source src-tauri/migrations/Then keep the $DATABASE_URL set during development (use direnv etc.)
Run the new UI's dev server and the Tauri app in parallel (see justfile's dev recipe for a one-liner):
cd new-ui && pnpm dev
# in another terminal
cargo tauri devcd new-ui && pnpm build
cargo tauri buildBuilt packages are available after in src-tauri/target/release/bundle.
For windows development you'll need:
stable-x86_64-pc-windows-gnu Rust toolchain. Use rustup to change the toolchain:rustup install stable-x86_64-pc-windows-gnu
rustup default stable-x86_64-pc-windows-gnuInstall MSYS2
Then run this in the MSYS2 terminal:
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-nasm# cmd
set PATH=C:\msys64\\ucrt64\bin;%PATH%
# power-shell
$env:PATH = "C:\msys64\\ucrt64\bin;" + $env:PATHMore info can be found here.
WireGuard® is registered trademarks of Jason A. Donenfeld.
This product includes third-party software components. The licenses for these components are provided in the "licenses" directory included with this distribution.
For details, see: licenses/THIRD_PARTY_LICENSES.txt
cargo tauri build may fail with error: Error failed to bundle project: error running appimage.sh. To
fix this set the NO_STRIP environment variable:
NO_STRIP=1 cargo tauri buildOn Linux NVIDIA setups, the app automatically applies the WebKitGTK DMA-BUF workaround
WEBKIT_DISABLE_DMABUF_RENDERER=1 before the webview starts. On NVIDIA + Wayland setups,
it also applies __NV_DISABLE_EXPLICIT_SYNC=1. If the app still launches with a blank window,
set the DMA-BUF workaround manually:
WEBKIT_DISABLE_DMABUF_RENDERER=1 defguard-clientAs a last resort for resize crashes or persistent rendering issues, disable accelerated compositing:
WEBKIT_DISABLE_COMPOSITING_MODE=1 defguard-clientcargo tauri devcargo tauri dev command may result in the following error if new-ui's node_modules are stale:
…To fix this remove new-ui/node_modules and rerun pnpm install in new-ui.
No open issues yet, or sync has not completed.