Awesome WireGuard
A curated list of WireGuard tools, projects, and resources.
WireGuard® - fast, modern, secure VPN tunnel.
You can see the updates on Twitter (coming soon)
Please, help organize these resources so that they are easy to find and understand for newcomers. See how to Contribute for tips!
If you see a link here that is not (any longer) a good fit, you can fix it by submitting a pull request to improve this file. Thank you!
Status Badges
We use emoji to determine repository status.
🟢 active repos (last commit date is less than 3 months)
🔴 inactive repos (last commit date is more than 1 year)
Contents
Expand Table of Contents
- What is WireGuard
- Official Resources
- Where to Start
- Projects
- Tools
- Mesh Network
- Deployment
- Monitoring
- Security
- Protocol
- Encryption
- Runtime
- User Interface
- Development
- Development Environment
- Testing
- Boilerplate
- Homeserver
- Services based on WireGuard
- Extensions / Plugins
- Optimization
- Language Bindings
- Alternative Implementations
- Useful Resources
- Uncategorized
- Communities and Meetups
- English
- Chinese
What is WireGuard
WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.
Source: Official WireGuard project website
Official Resources
- Next Generation Kernel Network Tunnel [PDF] - Whitepaper.
- WireGuard Docs - Unofficial WireGuard documentation.
Where to Start
- Quick Start - Official quick start.
Projects
Tools
- wg-quick - Official cross-platform tool to set up a WireGuard interface simply.
- easy-wg-quick - Creates Wireguard configuration for hub and peers with ease. 🟢
- dsnet - Simple command to manage a centralised wireguard VPN. Think wg-quick but quicker: key generation + address allocation.
🟢 - wgctrl - Package wgctrl enables control of WireGuard interfaces on multiple platforms. 🟢
- wgzero - Zero overhead wireguard setup.
🟡 - wg-make - A tool to help set up WireGuard based networks. Currently, it generates configurations for peers according to a single configuration file. 🔴
- onetun - A user-space WireGuard port-forwarder -- access ports running on peers in your WireGuard network from any device; without having to install WireGuard locally or without root access (no iptables configs). 🟢
- wireproxy - A userspace WireGuard client that connects to a WireGuard peer, and exposes a SOCKS5 proxy. (Use cases: Setting up WG as a VPN requires special privilege. It tells the kernel to create a special network interface to handle WG connection. This can get messy if you do not have any special permission (i.e., root), if you do not have proper firewall configuration, or if you want to connect to multiple WG peers at once. wireproxy static tunneling is basically openssh
-D
, which supports SOCKS5 protocols.)🟢 - wireguard-manager-and-api - A tool for rotating the keys on peers to increase their privacy by removing their IP address from memory.
🟡 - sandialabs/wiretap - Wiretap is a transparent, VPN-like proxy server that tunnels traffic via WireGuard and requires no special privileges to run. 🟢
Mesh Network
- Tailscale - Tailscale is a WireGuard-based app that makes secure, private networks easy for teams of any scale.
- Headscale - An open source implementation of the Tailscale control server.
🟢 - innernet - A private network system that uses WireGuard under the hood. It is similar in its goals to Slack's nebula or Tailscale. 🟢
- Kilo - Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes (k8s + wg = kg). 🟢
- NetBird - (Previously Wiretrustee) NetBird is an open-source VPN management platform built on top of WireGuard® making it easy to create secure private networks for your organization or home. Technically, it creates an overlay network using ICE protocol (WebRTC) to negotiate P2P connections and WG (kernel module, when possible) to create a fast and encrypted tunnel between machines, falling back to relay (TURN) in case a P2P connection isn't possible. Pretty much just a client app is needed, the rest is done by the software. Their vision is to go beyond traditional VPN by bringing advanced NetSec (Zero Trust security model) like OpenZiti. 🟢
- wesher - wesher creates and manages an encrypted mesh overlay network across a group of nodes.
🟢 - gravitl/netmaker - Netmaker is a VPN platform that automates WireGuard from homelab to enterprise. The key distinctions in their solutions are: fast because it can use kernel WireGuard (instead of userspace WireGuard, which is slower), tailored towards the Cloud and Kubernetes, and fully self-hostable. 🟢
- HarvsG/WireGuardMeshes - Compare WireGuard mesh tools.
🟢
Deployment
- WireHole - A combination of WireGuard, Pi-hole, and Unbound in a docker-compose project with the intent of enabling users to quickly and easily create a personally managed full or split-tunnel WireGuard VPN with ad blocking capabilities thanks to Pi-hole, and DNS caching, additional privacy options, and upstream providers via Unbound.
🟢 - Autowire - Automatically configure Wireguard interfaces in distributed system. It supports Consul as backend.
🟡 - Cloudblock - Deploys WireGuard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible. 🟢
- ansible-role-wireguard - Ansible role for installing WireGuard VPN. Supports Ubuntu, Debian, Archlinx, Fedora and CentOS. 🟢
- terraform-aws-wireguard - Terraform module to deploy WireGuard on AWS. 🔴
- Firezone - An open-source WireGuard-based VPN server alternative to OpenVPN Access Server. You can self-host this. 🟢
- Algo VPN - Set up a DIY/personal VPN in the cloud. It is a set of Ansible scripts that simplify the setup of a personal WireGuard and IPsec VPN, open-sourced by Trail of Bits. 🟢
- Place1/wg-access-server - An all-in-one WireGuard VPN solution with a Web UI for connecting devices. This project aims to deliver a simple VPN solution for developers, homelab enthusiasts and anyone else feeling adventurous. 🔴
- WirtBot - Think of it as a component that will allow you to extend your LAN over the Internet. WirtBot simplifies the process of creating your own private network into 3 steps. No registration, no accounts - Just a network that belongs to you. And it will always be completely free (except for the server/VPS you run it on).
🟢 - seashell/drago - A self-hosted and flexible configuration manager designed to make it simple to configure secure network overlays spanning heterogeneous nodes via a Web UI.
🔴
Container
- linuxserver/docker-wireguard - A WireGuard container image brought to you by LinuxServer.io. Not all image authors are as great as LinuxServer.io team. 🟢
- cmulk/wireguard-docker - A Docker image and configuration for a simple personal VPN, used for the goal of security over insecure (public) networks, not necessarily for Internet anonymity. There are currently 3 flavors. 🟡
- masipcat/wireguard-go-docker - WireGuard docker image. 🟡
Monitoring
- MindFlavor/prometheus_wireguard_exporter - A Prometheus exporter for WireGuard, very light on your server resources. 🟢
Security
Protocol
Encryption
Runtime
User Interface
Terminal / CLI
- WireGuard in NetworkManager - Linux NetworkManager has WireGuard support.
- angristan/WireGuard-install - WireGuard VPN installer for Linux servers. 🟢
- PiVPN - The Simplest VPN installer (scripts), designed for Raspberry Pi.
🟢 - Nyr/wireguard-install - WireGuard road warrior installer for Ubuntu, Debian, CentOS and Fedora.
🟢 - WireGuard-Manager - enables you to build your own vpn under a minute.
🟢 - wg-meshconf - WireGuard full mesh configuration generator.
🔴 - tun2socks - Powered by gVisor TCP/IP stack.
🟢 - guard - A gRPC server for managing wireguard tunnels. 🔴
- docker-wireguard-socks-proxy - Expose a WireGuard tunnel as a SOCKS5 proxy.
🔴 - wgctl - Utility to configure and manage your WireGuard tunnels. 🔴
- Wiresteward - A WireGuard peer manager with OAuth2 authentication. 🟢
- psyhomb/wireguard-tools - WireGuard helper scripts. 🔴
Web
- vx3r/wg-gen-web - Simple Web based configuration generator for WireGuard. 🟢
- Subspace - A simple WireGuard VPN server GUI. 🟢
- WireGuard UI - WireGuard Web UI for self-serve client configurations, with optional auth. 🟢
- WeeJeWel/wg-easy - The easiest way to run WireGuard VPN + Web-based Admin UI.
🟢
Desktop
- network-manager-wireguard - Network-Manager VPN Plugin for WireGuard. 🔴
- WireGuardStatusbar - macOS menubar icon for WireGuard/wg-quick.
⚫
Dashboards
- Wireguard Dashboard - A simple and easy to use WireGuard dashboard written in Python and Flask. 🟡
Development
Development Environment
Testing
Boilerplate
Homeserver
Services based on WireGuard
Cloud Service
- Warp - A free WireGuard VPN from Cloudflare that's trying to fix mobile Internet performance and security.
- wgcf - Cross-platform, unofficial CLI for Cloudflare Warp. 🟢
VPN
- Mullvad
🟢 - MozWire - An unofficial configuration manager giving Linux, macOS users (among others), access to Mozilla VPN.
🟢 - LNVPN - A wireguard VPN provider with Ligthning only payments, pay as you use. 🟢
Extensions / Plugins
- wgsd - A CoreDNS plugin that serves WireGuard peer information via DNS-SD (RFC6763) semantics. This enables use cases such as mesh networking, NAT-to-NAT connectivity, and dynamic discovery of WireGuard endpoint. 🟢
Optimization
- nr-wg-mtu-finder - A Python project to help you find the optimal MTU values for WG server and WG peer that maximizes the upload or download speeds between a peer and server.
🟢
Language Bindings
Alternative Implementations
Beside Jason Donenfeld's implementation of the WireGuard protocol, written in C and Go, other implementations include:
- boringtun - Userspace WireGuard implementation in Rust by Cloudflare.
🟢 - Matt Dunwoodie's implementation for OpenBSD, written in C.
- Ryota Ozaki's wg(4) implementation, for NetBSD, is written in C.
- smartalock/wireguard-lwip - A C implementation of the WireGuard protocol intended to be used with the lwIP IP stack. 🟢
- ciniml/WireGuard-ESP32-Arduino - WireGuard implementation for ESP32 Arduino in C.
🟡
Useful Resources
Blog Posts
- WireGuard: great protocol, but skip the Mac app
- WireGuard on Kubernetes with Adblocking
- SSH and User-mode IP WireGuard
- Setup and Adblocking VPN Using WireGuard and NextDNS
- WireGuard Endpoint Discovery and NAT Traversal using DNS-SD
- Taildrop was kind of easy, actually - Taildrop was the main new feature launched in Tailscale v1.8.
- IPv6 WireGuard Peering at Fly.io
- Our User-Mode WireGuard Year
- Tunnel WireGuard via WebSockets - Setting up WireGuard to work in restricted networks that block UDP traffic.
- Tailscale's human-scale networks are still controlled by Google and Microsoft
- How to access a peer's local network - A simple solution. There is no need of any configurations to set split-tunneling. The example shows how Peer B can route to Peer A through a WG server. Peer B can reach a specific network (subnet) behind Peer A.
- Routing Specific Docker Containers Through WireGuard VPN with systemd-networkd - A simple solution for routing specific docker containers through a WireGuard VPN using only two simple systemd-networkd files, no cumbersome
wg
orip
calls.
Articles
- In-kernel WireGuard is on its way to FreeBSD and the pfSense router
- It's Looking Like Android Could Be Embracing WireGuard - "A Sane VPN"
- Tailscale Raises $100 Million Series B to Fix the Internet with its Zero Trust VPN for Modern DevOps Teams
- Identity management for WireGuard
Demos and Examples
Good Tips
- WireGuard Gotchas with Multiple Tunnels - WG has a bit of a trap/gotcha when running multiple independent tunnels, one of which has a default route associated with it.
Tutorials
- How to easily configure WireGuard
- Getting Started with WireGuard
- What They Don’t Tell You About Setting Up A WireGuard VPN
- Building a simple VPN with WireGuard with a Raspberry Pi as Server
- Setting up a home VPN server with Wireguard (macOS)
- Creating a VPN Gateway with a Unikernel running WireGuard
- Directions for setting up a WireGuard bounce server
I find plenty of tutorials online for setting up the most basic Wireguard apparatus. Like most peoples', my machines are stuck behind NATs. To connect between NATted hosts, you need control of a host that is not, to keep up on what external addresses the NATs are presenting. The docs for WireGuard mention bounce servers, but say nothing about how to set one up.
- WireGuard VPN Road Warrior Setup - The important feature of this setup is, split tunnelling.
Either all traffic (default route) or only the traffic desired for the internal network can be routed through the VPN (split tunneling). This can be configured on the client.
- Routing Docker Host And Container Traffic Through WireGuard using WireGuard Docker image by linuxserver.io
- WireGuard setup with Ansible - A basic Ansible playbook for deploying a WireGuard server and (local) client.
Videos
- WireGuard: Next Generation Abuse-Resistant Kernel Network Tunnel- A good talk from the WireGuard developer and security researcher, Jason Donenfeld explaining what WireGuard can do and how it works. The talk examine both the cryptography and kernel implementation particulars of WireGuard and explore an offensive attack perspective on network tunnels.
- How To Build Your Own Wireguard VPN Server in The Cloud - A good tutorial from Lawerence Systems regarding WireGuard.
Books
Podcasts and Interviews
Presentations
- Presentations by Jason A. Donenfeld - A list of all Jason's presentations.
Newsletters
Uncategorized
- WebVM: Linux Virtualization in WebAssembly with Full Networking via Tailscale - Run WireGuard and Tailscale in the browser. wireguard-go code compiled to Wasm. WebVM is proprietary WebAssembly-powered x86 virtualization tech. I'm genuinely curious how it compares to v86/Fabrice Bellard's JSLinux (like WebVM but free and opened-source).
Communities and Meetups
English
- /r/WireGuard - Official Reddit WireGuard.
- #wireguard on Libera - Official IRC on Libera Chat.
Chinese
Contribute
Contributions welcome! If you would like to contribute, please read the contribution guidelines first. It contains a lot of tips and guidelines to help keep things organized.
Future: Implement GitHub Actions to monitor and verify all the links with a simple Node.js script
Copyright
"WireGuard" and the "WireGuard" logo are registered trademarks of Jason A. Donenfeld.
License
Expand License
This repository contains a variety of content; some developed by Cedric Chee, and some from third-parties. The third-party content is distributed under the license provided by those parties.
I am providing code and resources in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code and resources is from me and not my employer.
The content developed by Cedric Chee is distributed under the following license:
Text
The text content is released under the CC-BY-NC-ND license. Read more at Creative Commons.
Code
The code in this repository is released under the MIT license.