# DefGuard Core

DefGuard Core is the management and authentication server for DefGuard, a self-hosted, zero-trust WireGuard virtual private network platform. It is open source and self-hosted, installable on Unraid and Proxmox.

Canonical page: https://ourlocalhost.com/app/270/defguard-core

## Description

DefGuard Core is the management and authentication server for DefGuard, a self-hosted, zero-trust WireGuard virtual private network platform. It provides user management, multi-factor authentication for every VPN connection, device policies, and an admin dashboard with an API. It suits homelabbers and teams who need a self-hosted VPN with identity-aware access. Use it as the central component for DefGuard gateways or proxies, because those components depend on it for authentication and access decisions.

## Platform availability

Available on 4 of 10 platforms: Unraid, Proxmox, Mac, Any server.

## Desktop and other devices

Mac.

## Health score

84/100 (Excellent), based on 4 of 5 factors.
- Maintained: 100 (last commit 24 days ago)
- Popular: 69 (2,893 GitHub stars)
- Easy to install: 65 (4 install platforms, install notes, Docker image)
- Security check: 88 (no serious findings, 2 minor, CI, tests)

## Links

- GitHub: https://github.com/DefGuard/defguard
- Unraid: https://ca.unraid.net/apps/defguard-core-175c1x60tpe2x2?q=defguard---Core
- Official website: https://defguard.net/
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=defguard
- desktop: https://github.com/DefGuard/defguard/releases/latest
- Documentation: https://docs.defguard.net

## Common questions

### How do I install DefGuard Core on a Debian-based host?

Install the defguard package with admin rights using sudo apt install defguard and add the main Defguard Core service. Without this service there is no dashboard, user accounts, or VPN management.

### Which ports should I open for DefGuard Core and its VPN traffic?

Open port 8000 for the Defguard web/API and port 50055 for VPN traffic. Keep Postgres on 5432 internal because exposing it can let attackers reach the database.

### What should I back up to avoid losing DefGuard Core access?

Back up the Postgres database, because Defguard Core stores users, devices, and VPN settings there. Losing that data can lock you out and force you to recreate your setup.

### Can DefGuard use Google or Microsoft for SSO?

Defguard supports external OIDC identity providers, including Google and Microsoft. It also has an internal OIDC provider for SSO.

### Does DefGuard have mobile clients?

Defguard provides Android and iOS mobile clients. They support VPN management, MFA, and QR code onboarding.

### How can I migrate from Defguard 1.6 to 2.0?

Use the Defguard migration guides, which include a guide for moving from Defguard 1.6 to 2.0. Server migration and licence transfer are also documented.

## Alternatives

- Fossorial Pangolin: Open-source identity-based remote access platform using WireGuard, offering unified management, tunneled connections, granular access contr…
- Headscale: Headscale is an open-source, self-hosted implementation of the Tailscale control server.
- LogMeIn Hamachi: Seamlessly connects devices and networks, extending LAN-like connectivity to mobile users and teams with a secure, hosted VPN service.
- NetBird: NetBird is an open-source Zero Trust networking platform that makes it easy for engineers to create fast, secure, and private networks with…
- OpenVPN Connect: OpenVPN Connect provides flexible VPN solutions to secure your data communications, whether it's for Internet privacy, remote access for em…
- Outline VPN: Journalists need safe access to information to research issues, communicate with sources, and report the news.
- SoftEther VPN: SoftEther VPN (&quot;SoftEther&quot; means &quot;Software Ethernet&quot;) is one of the world's most powerful and easy-to-use multi-protoco…
- Tailscale: Private networks made easy.
- WireGuard: WireGuard is a fast, lightweight virtual private network (VPN) server that creates encrypted point-to-point tunnels for secure remote acces…
- ZeroTier: ZeroTier is an open-source, cross-platform virtual LAN/VPN service that connects your devices and servers into one private network, so you…
- nostr vpn: Nostr VPN turns your Umbrel into a private mesh VPN node for your own devices and trusted groups.

---
Source: Our Local Host (https://ourlocalhost.com/app/270/defguard-core), the self-hosted and open-source app directory.
