RepositoryRustPLPoland
DefGuard

DefGuard/defguard

Zero-Trust access management with true WireGuard® 2FA/MFA

2.9kstars
127forks
295issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: multifactor-authentication

#1 Repository of the week

1
TINIX TRENDING·Topic: forwardauth

#1 Repository of the week

1
TINIX TRENDING·Topic: oauth-provider

#1 Repository of the week

defguard

Defguard is a self-hosted secure remote access platform that combines WireGuard VPN, identity and access management, multi-factor authentication, and network access control in a single solution.

Built with a security-first architecture, Defguard helps organizations securely manage access to infrastructure, applications, and private networks while maintaining full control over their environment.

Why Defguard?

Modern organizations often rely on multiple disconnected tools to manage identity, VPN access, authentication, and network permissions. Defguard brings these capabilities together into a unified platform designed for security, transparency, and operational simplicity.

Key principles behind Defguard:

For detailed security information see the secure-by-design documentation.

Core Capabilities

  • 🌐 WireGuard VPN — multiple locations with per-location access control, MFA per connection, self-service device setup, kernel and userspace support
  • 👥 Identity & Access Management — internal OIDC provider for SSO, external OIDC (Google, Microsoft, custom), LDAP/AD sync, remote enrollment, user self-service
  • 🔑 Multi-Factor Authentication — TOTP, WebAuthn/FIDO2, email tokens, biometric via mobile app
  • 🛡️ Firewall — allow/deny rules per VPN location by user or group, applied in real time
  • 📋 Activity Log — audit log with filtering and search; real-time SIEM streaming (Enterprise)
  • 🔗 Integrations — webhooks and REST API

Clients

  • 🖥️ Desktop (Linux, macOS, Windows) — VPN management with MFA, multi-instance and multi-location support, and real-time connection statistics. Download
  • 📱 Mobile (Android, iOS) — VPN management with MFA, QR code onboarding. Android · iOS

Architecture

Defguard follows a component-based architecture designed to reduce attack surface and support secure deployments.

architecture

Strict division of responsibilities and network segmentation:

  • Core — central management plane: identity, authentication, authorization, and policy
  • Edge — public-facing entry point, exposes selected Defguard services GitHub repo
  • Gateway — enforces network access policies for protected resources GitHub repo

For details refer to the architecture documentation.

Quick Start

The fastest way to evaluate Defguard is with the one-line installer:

bash <(curl -sSL https://raw.githubusercontent.com/defguard/deployment/main/docker-compose2.0/setup.sh)

⚠️ Warning! This installation method is intended for testing, demonstrations, and evaluation purposes only. It is not recommended for production deployments. See the deployment documentation for production deployment guidance, architecture recommendations, and high-availability configurations.

Documentation

Comprehensive documentation is available at: https://docs.defguard.net

Video guides

Visit out YouTube channel to see our video guides.

Community

We want to get as much feedback as possible, so we encourage you to:

Contributions

Please review the Contributing guide for information on how to get started contributing to the project. You might also find our environment setup guide handy.

License

The code in this repository is available under a dual licensing model:

  • Open Source License: The code, except for the contents of the "crates/defguard_core/src/enterprise" directory, is licensed under the AGPL license (see file LICENSE.md in this repository). This applies to the open core components of the software.
  • Enterprise License: All code in this repository (including within the "crates/defguard_core/src/enterprise" directory) is licensed under a separate Enterprise License (see file crates/defguard_core/src/enterprise/LICENSE.md).

WireGuard® is registered trademarks of Jason A. Donenfeld.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
tailscale/tailscale

The easiest, most secure way to use WireGuard and 2FA.

40.0k
Dec 1, 2026
RepositoryJavaScript
jaredhanson/passport

Simple, unobtrusive authentication for Node.js.

23.5k
Aug 16, 2024
RepositoryRust
mullvad/mullvadvpn-app

The Mullvad VPN client app for desktop and mobile

7.8k
Dec 1, 2026
RepositoryGo
netbirdio/netbird

NetBird securely connects people, machines and AI agents across any network with one identity-based Zero Trust platform. Powered by peer-to-peer WireGuard®

31.4k
Nov 29, 2026
RepositoryTypeScript
better-auth/better-auth

The most comprehensive authentication framework

30.9k
Nov 30, 2026
RepositoryTypeScript
nextauthjs/next-auth

Authentication for the Web.

28.4k
Jul 22, 2026
RepositoryTypeScript
fosrl/pangolin

Modern networking and security platform providing secure access and connectivity to apps, infrastructure, and AI workloads. Connect and protect your users.

24.0k
Nov 27, 2026
RepositoryShell
StreisandEffect/streisand

Streisand sets up a new server running your choice of WireGuard, OpenConnect, OpenSSH, OpenVPN, Shadowsocks, sslh, Stunnel, or a Tor bridge. It also generates custom instructions for all of these services. At the end of the run you are given an HTML file with instructions that can be shared with friends, family members, and fellow activists.

23.4k
May 4, 2021
RepositoryC++
amnezia-vpn/amnezia-client

Amnezia VPN Client (Desktop+Mobile)

16.2k
Nov 27, 2026