Defguard

Overview
Defguard is a self-hosted remote access platform that combines a WireGuard VPN, identity and access management, multi-factor authentication and network access control in one product. It runs fully on your own infrastructure, with no external dependencies.
What it does well
Every VPN connection can require MFA, with TOTP, email tokens, biometrics through the mobile app or external SSO as factors. VPN locations each get their own access rules and DNS, and users set up their own devices. Defguard includes its own OIDC provider for single sign-on, connects to Google, Microsoft or custom OIDC providers, and syncs with LDAP and Active Directory. Group-based firewall policies work with OPNsense, pfSense, Linux and MikroTik. The project publishes SBOMs, penetration test reports and architecture decision records. Some features, such as hardware security keys and device posture checks, are in the Enterprise edition.
Why it’s in the collection
Defguard puts VPN access, sign-in and MFA in one self-hosted system instead of three separate services.
Is Defguard open source?
With conditions. The core is AGPL-3.0. The code in the enterprise directory is under Defguard's separate Enterprise License, which covers the Business and Enterprise features. Read the license.
On GitHub
- Stars
- 2,929
- Forks
- 127
- Commits
- 1,910
- Latest
- Repository
- defguard/defguard
Languages
- Rust 69.6%
- TypeScript 28.4%
- SCSS 1.5%
- Other 0.5%
Compared with
NordLayerCommercial business VPN from the makers of NordVPN.
TwingateCommercial zero-trust network access service.
OktaCommercial identity and access management platform.
See every open-source alternative to Twingate and Okta in the collection.
Compare it with other open-source VPN and remote access tools.



