
Defguard Gateway is a service component of Defguard that enables you to create and manage your own WireGuard VPN servers for secure and private networking.
Defguard is a self-hosted secure remote access platform that combines WireGuard VPN, identity and access management, multi-factor authentication, and network access control in a single solution.
Built with a security-first architecture, Defguard helps organizations securely manage access to infrastructure, applications, and private networks while maintaining full control over their environment.
Modern organizations often rely on multiple disconnected tools to manage identity, VPN access, authentication, and network permissions. Defguard brings these capabilities together into a unified platform designed for security, transparency, and operational simplicity.
Key principles behind Defguard:
For detailed security information see the secure-by-design documentation.
Defguard follows a component-based architecture designed to reduce attack surface and support secure deployments.

Strict division of responsibilities and network segmentation: - Core - central management plane: identity, authentication, authorization, and policy - Edge - public-facing entry point, exposes selected Defguard services GitHub repo - Gateway - WireGuard tunnel manager, routes secure VPN traffic between users and your protected networks GitHub repo
For details refer to the architecture documentation.
The fastest way to evaluate Defguard is with the one-line installer:
bash <(curl -sSL https://raw.githubusercontent.com/defguard/deployment/main/docker-compose2.0/setup.sh)
⚠️ Warning! This installation method is intended for testing, demonstrations, and evaluation purposes only. It is not recommended for production deployments. See the deployment documentation for production deployment guidance, architecture recommendations, and high-availability configurations.
Comprehensive documentation is available at: https://docs.defguard.net
Visit out YouTube channel to see our video guides.
We want to get as much feedback as possible, so we encourage you to:
Please review the Contributing guide for information on how to get started contributing to the project. You might also find our environment setup guide handy.
The code in this repository is available under a dual licensing model:
WireGuard® is registered trademarks of Jason A. Donenfeld.
$ claude mcp add gateway \
-- python -m otcore.mcp_server <graph>