7,363 open-source and SaaS tools, with GitHub stats refreshed every day.

Defguard

Open source

Self-hosted secure remote access platform combining WireGuard VPN, identity management, multi-factor authentication, and network access control.

defguard.net
Defguard homepage screenshot
GitHub stars
2.9k
Last commit
yesterday
Repository age
3 years
Version
v2.1.0
Licence
Custom
Self-hosted
Yes

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

SaaS alternatives to Defguard

See all