BoringTun

BoringTun is an implementation of the WireGuard® protocolarrow-up-right designed for portability and speed. It is written in Rustarrow-up-right and was originally published by Cloudflare.

In the Defguard ecosystem, BoringTun is an important building block for running WireGuard functionality in user space where a kernel implementation is unavailable, unsuitable, or not the preferred integration model. This makes it especially useful on platforms where portability and embedding matter.

The Defguard team uses a fork of the original repositoryarrow-up-right with the following changes:

BoringTun is used by wireguard-rsarrow-up-right, which serves as a foundation for Defguard Gateway, and by Defguard Clientarrow-up-right for handling VPN tunnels on macOSarrow-up-right.

In practice, this means BoringTun helps Defguard support WireGuard-based connectivity in environments where kernel-level WireGuard integration is not the default approach. It also allows the project to build platform-specific integrations on top of a shared Rust implementation.

Last updated

Was this helpful?