About Defguard
Defguard is a self-hosted platform that brings WireGuard VPN, identity and access management, multi-factor authentication, and network access control into one product. It is built in Rust with a security-first design and targets organizations that otherwise juggle separate tools for identity, VPN access, and permissions. The core is open source under the AGPL, while some Enterprise components are open-code.
The VPN side supports multiple locations with per-location access control, MFA per connection, self-service device setup, and kernel and userspace WireGuard. The identity side includes an internal OIDC provider for single sign-on, external OIDC with Google, Microsoft, or custom providers, LDAP and Active Directory sync, remote enrollment, and user self-service. MFA options include TOTP, WebAuthn and FIDO2, and email tokens.
Everything runs in your own environment with no external dependencies or data leaving your infrastructure, and the project publishes SBOMs, penetration test reports, and architecture decision records. It suits IT and security teams that want zero-trust remote access and identity management they control, as an alternative to products such as Keycloak and Pritunl.
Key features
- WireGuard VPN with per-connection MFA
- Internal OIDC provider for single sign-on
- LDAP and Active Directory sync
- TOTP, WebAuthn, and email-token MFA
- Per-location access control
- Self-service device setup
- Published SBOMs and security reports
Good fit for
- →Zero-trust remote access for staff
- →Combining VPN and SSO in one self-hosted system
- Built with
- Rust
- Tags
- vpn
- wireguard
- zero-trust
- mfa
- oidc
- identity
- self-hosted
- remote-access
Defguard: questions and answers
- What is Defguard used for?
- Defguard is a self-hosted secure remote access platform combining WireGuard VPN, identity management, multi-factor authentication, and network access control. It is a good fit for zero-trust remote access for staff, and combining VPN and SSO in one self-hosted system.
- Is Defguard open source?
- Yes. Defguard is open source under a custom licence. Its source code is on GitHub at DefGuard/defguard and is written mainly in Rust.
- Is Defguard free?
- Yes. Defguard is open source, so the software itself is free to use under the terms of its own licence.
- Can I self-host Defguard?
- Yes. Defguard can be self-hosted on your own server or infrastructure.
- What is Defguard an alternative to?
- Defguard is an open-source alternative to Tailscale, Twingate, JumpCloud and NordLayer. Other open-source alternatives to Tailscale include Pangolin, NetBird and Firezone.
- Is Defguard actively maintained?
- Yes. The most recent commit to Defguard was on 2 October 2026, and the latest release is v2.1.0, published on 4 September 2026. The project has 2.9k stars on GitHub.
Open-source alternatives to Defguard
See all
Pangolin
Networking & VPN
Open-source SASE platform providing secure access and connectivity to apps, infrastructure
OSSvs Cloudflare Tunnel★ 23k
NetBird
Networking & VPN
Connect your devices, users, and agents into a secure WireGuard®-based overlay network wit
OSSvs Tailscale★ 30k
Firezone
Networking & VPN
Blazing-fast remote access
Apache-2.0vs Tailscale★ 9.1k
Octelium
Networking & VPN
A next-gen FOSS self-hosted unified zero trust secure access platform that can operate as
AGPL-3.0vs Tailscale★ 4.1k
OpenZiti
Networking & VPN
The parent project for OpenZiti. Here you will find the executables for a fully zero-trust
Apache-2.0vs Twingate★ 4.4k
Netmaker
Networking & VPN
Securely connect your devices, clouds, and sites with Netmaker's Zero Trust platform.
OSSvs Tailscale★ 12k
SaaS alternatives to Defguard
See all
Tailscale
Networking & VPN
Mesh VPN and zero trust network that connects devices without manual configuration
SaaS
Twingate
Networking & VPN
Zero trust remote access service positioned as a replacement for business VPNs
SaaS
JumpCloud
Auth & Identity
Cloud directory for identity, device management and SSO
SaaS
NordLayer
Networking & VPN
Business VPN and network access security for remote and hybrid teams
SaaS
Cato Networks
Security
Cloud-native SASE platform combining SD-WAN and network security
SaaS
Prisma Access
Security
Palo Alto Networks cloud-delivered secure access service edge
SaaS

