百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

client

> 安全
开源

在 WireGuard® VPN 连接上实现多因素身份验证的 Sole VPN 客户端

366 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

在 WireGuard® VPN 连接上实现多因素身份验证的 Sole VPN 客户端

Defguard desktop client

Desktop client for managing WireGuard VPN connections (any WireGuard server and defguard instances).

Features

  • Supports any WireGuard server
  • Multi-platform - Linux, macOS & Windows
  • Detailed network overview - see all details of your connection history and statistics with real-time charts and logs
  • Multi-Factor Authentication with TOTP/Email & WireGuard PSK - Since WireGuard protocol doesn't support 2FA, most (if not all) available WireGuard clients use 2FA authorization to the "application" itself (not Wireguard tunnel). When using this client with defguard VPN & SSO server (which is free & open source) you will get real Multi-Factor Authentication using TOTP/Email codes + WireGuard Pre-shared session keys.
  • Multiple instances & locations - When combining with defguard VPN & SSO you can have multiple defguard instances (sites/installations) and multiple Locations (VPN tunnels in that location/site) in one client! If you are an admin/devops - all your customers (instances) and all their tunnels (locations) can be in one place!
  • Fast! - Built with Rust, tauri and React.js.

To learn more about the system see our documentation.

Development

Tauri requirements

Make sure to install prerequisites from tauri.

Proto submodule

Make sure you have cloned, and up to date, proto submodule in src-tauri/proto

Protoc compiler

Make sure you have protoc available.

Install pnpm and node deps

bash
cd new-ui
pnpm install

Sqlx and local database file

To 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:

bash
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.)

Dev server command

Run the new UI's dev server and the Tauri app in parallel (see justfile's dev recipe for a one-liner):

bash
cd new-ui && pnpm dev
# in another terminal
cargo tauri dev

Build command

bash
cd new-ui && pnpm build
cargo tauri build

Built packages are available after in src-tauri/target/release/bundle.

Windows

For windows development you'll need:

  1. The 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-gnu
  1. Install MSYS2

  2. Then run this in the MSYS2 terminal:

pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-nasm
  1. Finally add msys to your PATH:
# cmd
set PATH=C:\msys64\\ucrt64\bin;%PATH%
# power-shell
$env:PATH = "C:\msys64\\ucrt64\bin;" + $env:PATH

More info can be found here.

Legal

Trademarks

WireGuard® is registered trademarks of Jason A. Donenfeld.

Third-Party Licenses

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

Known issues

Failed to bundle project

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 build

Blank screen

On 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-client

As a last resort for resize crashes or persistent rendering issues, disable accelerated compositing:

WEBKIT_DISABLE_COMPOSITING_MODE=1 defguard-client

Failed to run cargo tauri dev

cargo 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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript2famfamulti-factor-authenticationsso

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.