Back to directory

Infrastructure & Operations · Networking & Connectivity

Defguard

Self-hosted WireGuard access control with identity and MFA

Defguard is a self-hosted WireGuard VPN and identity platform for teams that need MFA, SSO, directory integration, and access policies under their control. Its open-source code uses AGPL-3.0, while enterprise code uses a separate Enterprise License. No hosted service is listed. Open Source is free, Business is free for up to 10 users and one location, and Enterprise uses custom pricing.

Key facts

License
AGPL-3.0 for open-source code, Enterprise License for enterprise code
Main language
Rust, TypeScript
Maintainer
Defguard, spun out of teonite
First released
2023
Latest release
v2.1.1, October 5, 2026
GitHub stars
2,877, October 2026
Hosted option
None listed; Open Source free, Business free up to 10 users and one location, Enterprise custom

What Defguard is

Defguard is a self-hosted WireGuard VPN, identity, and access-management platform started by Robert Olejnik and developed by the Defguard team, which spun out of the Polish software venture builder teonite. It was publicly released in 2023, following a first release announcement in May, and the repository showed 2,877 GitHub stars in October 2026. The repository lists Rust as its main language. A startup report says the company raised €1.2 million in pre-seed funding in May 2025 from Hard2beat, SMOK Ventures, S20 Team, ISEC, and angel investors. Defguard publishes no named production customers in the referenced project pages. The project remains active, with stable releases v2.1.0 and v2.1.1 during September and October 2026.

How it works

Defguard combines WireGuard connectivity with identity and access controls. An administrator creates users, groups, VPN locations, and access rules in Core, then places Edge at a public boundary and Gateways near protected networks. A user enrolls remotely, installs the desktop or mobile client, authenticates through built-in or external identity providers, and receives WireGuard configuration. MFA can use TOTP, email, mobile biometry, WebAuthn, or FIDO2 security keys, depending on the plan and configured flow. LDAP and Active Directory synchronization can populate users and groups. Firewall rules can generate allowed IPs for narrower client configurations. Device posture checks can evaluate client and operating-system versions, security updates, directory membership, antivirus, and disk encryption before connection.

Architecture and recent releases

Defguard is primarily written in Rust, with a React-based user interface and separate Core, Edge, and Gateway components. The management plane uses a database, while Gateways handle WireGuard connectivity and policy enforcement. Deployment support Docker, a one-line installer, Debian packages, RPM packages, tar archives, and FreeBSD packages for selected architectures. Version 2.0, released April 30, 2026, introduced a redesigned interface, a new deployment approach, stronger component communication security, and architectural changes. Version 2.1, released September 4, added device posture checks, firewall-derived allowed IPs, a rebuilt desktop client, a command-line client, Linux service locations, and VyOS gateway deployment. Version 2.1.1 followed October 5 with LDAP, firewall, CIDR, and license-expiry fixes.

License and pricing

The open-source portion uses AGPL-3.0, except for enterprise code under crates/defguard_core/src/enterprise, which uses a separate Enterprise License. AGPL-3.0 permits commercial use, modification, and redistribution subject to its copyleft conditions, including source obligations when covered software is conveyed over a network. Defguard divides functionality between plans rather than listing a hosted control plane. Open Source is always free with unlimited users and locations for core features. Business is free for up to 10 users and one location, then uses calculated pricing. Enterprise pricing is custom and adds high availability, active-active deployment, device posture policies, service locations, device attestation plans, offline licensing, support, and service-level commitments.

Limitations and how it compares

Defguard requires an organization to operate its control plane, gateways, clients, identity integrations, upgrades, and backups. That is a meaningful burden for teams seeking a managed VPN. Tailscale offers a more mature hosted coordination service, while NetBird provides an open-source WireGuard management alternative with a hosted option. Cloudflare Zero Trust covers broader application access through a proprietary service, while Defguard concentrates on self-hosted WireGuard locations and identity controls. Its commercial split also places some advanced controls behind registration or an enterprise license. Organizations should choose Defguard when they need self-hosted VPN infrastructure, connection-level MFA, directory synchronization, device checks, and control over management data location.

Main features

  • WireGuard VPN. Manages WireGuard locations, gateways, peers, client configuration, and access rules through a central administration interface.
  • Built-In MFA. Supports TOTP, email, mobile biometry, WebAuthn, and FIDO2 security keys for VPN and identity authentication.
  • Directory Synchronization. Synchronizes users and groups with LDAP, Active Directory, and selected external OpenID Connect providers.
  • Device Posture. Checks client and operating-system versions, updates, directory membership, antivirus, and disk encryption before connection.
  • Firewall Policies. Creates firewall rules and can generate allowed IPs from those rules for narrower client network exposure.
  • Remote Enrollment. Uses Edge to support remote user enrollment while keeping the Core management service away from the public Internet.
  • Multi-Step MFA. The 2.2 beta adds configurable multi-step MFA flows, including FIDO2 factors assigned to VPN locations.

Self-hosting Defguard

Defguard supports Docker deployment, a one-line installation script, and release packages for Debian, Ubuntu, RPM-based systems, tar archives, and FreeBSD. The platform is split into Core, Edge, and Gateway components, with the management plane using a database and Gateways handling WireGuard connectivity and policy enforcement. Documentation covers private VPS deployments and running Gateway as a container on VyOS. The referenced documentation does not publish minimum CPU, memory, or storage requirements. Administrators should plan backups for database and persistent component state, test upgrades between major versions, and consult the 1.x to 2.x upgrade documentation before changing production deployments.

Strengths

  • The open-source plan supports unlimited users and locations for core features.
  • Native MFA applies at the VPN connection rather than only at a web login.
  • Device posture checks can block non-compliant endpoints before WireGuard connection.
  • The project publishes packages for Linux, FreeBSD, Docker, and multiple architectures.

Drawbacks

  • Enterprise features require a separate commercial license and registration for some Business capabilities.
  • Operators must run the control plane, gateways, identity integrations, upgrades, and backups.
  • The hosted plan structure does not include a listed Defguard cloud service.

What teams replace with it

Teams usually evaluate Defguard when they want to move off Tailscale, Cloudflare Zero Trust, Perimeter 81.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Defguard

  • NetBird
  • Headscale
  • Innernet
  • Pritunl
  • OpenZiti

Frequently asked questions

Is Defguard free?

Defguard's Open Source plan is always free and includes unlimited users and locations for core features. The Business plan is free for up to 10 users and one location, then uses calculated pricing. Enterprise pricing is custom. Some Business features require free registration, while Enterprise capabilities such as device posture policies and high availability require the applicable commercial plan.

Can companies use Defguard commercially?

Yes, the open-source portion is licensed under AGPL-3.0, which permits commercial use subject to its copyleft and source-disclosure conditions. Enterprise code is excluded from that open-source scope and uses a separate Enterprise License. Companies should review the repository licensing files and their deployment model before modifying or offering Defguard as part of a service.

How do you self-host Defguard, and what does it require?

Defguard can be deployed with Docker or its one-line installer, and releases include Debian, Ubuntu, RPM, tarball, and FreeBSD packages. A deployment uses Core, Edge, and Gateway components plus a database. The referenced documentation does not publish minimum hardware requirements. Operators need persistent storage, database backups, upgrade testing, and network access between management and gateway components.

How does Defguard compare with Tailscale?

Tailscale is a hosted service centered on managed coordination and simple client deployment. Defguard is designed for organizations that want to run the management plane and WireGuard gateways themselves. Defguard adds built-in identity, VPN-level MFA, LDAP and Active Directory synchronization, firewall policy management, and device posture controls, while Tailscale generally offers a broader managed service with less infrastructure to operate.

Does Defguard keep VPN and identity data private?

Defguard is designed for self-hosted deployment, so an organization can place Core, Edge, Gateways, and its database on infrastructure it controls. WireGuard provides the VPN transport, while Defguard manages identity, MFA, configuration, and policies. Privacy still depends on deployment security, logging, backups, network exposure, identity-provider settings, and the operator's handling of database and audit data.

Similar projects to compare

Sources

Last updated 2026-10-22.