🍺 BREW Explorer

← all formulae

boringtun

brew install boringtun v0.7.1 BSD-3-Clause

Userspace WireGuard implementation in Rust

26
30-day installs · #6174
71
90-day · #6393
253
365-day · #6758
7.1k
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

cloudflare rust wireguard

Links

Caveats

boringtun-cli requires root privileges so you will need to run `sudo boringtun-cli utun`.
You should be certain that you trust any software you grant root privileges.
Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": "boringtun-cli requires root privileges so you will need to run `sudo boringtun-cli utun`.\nYou should be certain that you trust any software you grant root privileges.\n",
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Userspace WireGuard implementation in Rust",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:57+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "boringtun",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-15T07:58:58Z",
  "github_readme_excerpt": "![boringtun logo banner](./banner.png)\n\n# BoringTun\n\n## Warning\nBoringtun is currently undergoing a restructuring. You should probably not rely on or link to \nthe master branch right now. Instead you should use the crates.io page.\n\n- boringtun: [![crates.io](https://img.shields.io/crates/v/boringtun.svg)](https://crates.io/crates/boringtun)\n- boringtun-cli [![crates.io](https://img.shields.io/crates/v/boringtun-cli.svg)](https://crates.io/crates/boringtun-cli)\n\n**BoringTun** is an implementation of the [WireGuard\u003csup\u003e\u00ae\u003c/sup\u003e](https://www.wireguard.com/) protocol designed for portability and speed.\n\n**BoringTun** is successfully deployed on millions of [iOS](https://apps.apple.com/us/app/1-1-1-1-faster-internet/id1423538627) and [Android](https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone\u0026hl=en_US) consumer devices as well as thousands of Cloudflare Linux servers. \n\nThe project consists of two parts:\n\n* The executable `boringtun-cli`, a [userspace WireGuard](https://www.wireguard.com/xplatform/) \n  implementation for Linux and macOS.\n* The library `boringtun` that can be used to implement fast and efficient WireGuard client apps on various platforms, including iOS and Android. It implements the underlying WireGuard protocol, without the network or tunnel stacks, those can be implemented in a platform idiomatic way.\n\n### Installation\n\nYou can install this project using `cargo`:\n\n```\ncargo install boringtun-cli\n```\n\n### Building\n\n- Library only: `cargo build --lib --no-default-features --release [--target $(TARGET_TRIPLE)]`\n- Executable: `cargo build --bin boringtun-cli --release [--target $(TARGET_TRIPLE)]`\n\nBy default the executable is placed in the `./target/release` folder. You can copy it to a desired location manually, or install it using `cargo install --bin boringtun --path .`.\n\n### Running\n\nAs per the specification, to start a tunnel use:\n\n`boringtun-cli [-f/--foreground] INTERFACE-NAME`\n\nThe tunnel can then be configured using ",
  "github_repo": "cloudflare/boringtun",
  "github_stars": 7092,
  "github_topics": [
    "cloudflare",
    "rust",
    "wireguard"
  ],
  "homepage": "https://github.com/cloudflare/boringtun",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 26,
  "installs_365d": 253,
  "installs_90d": 71,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "boringtun",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6174,
  "rank_365d": 6758,
  "rank_90d": 6393,
  "raw_hash": "b554571ce46e7f3b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/boringtun.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.7.1",
  "versioned_formulae": [],
  "why_use_this": null
}