# aramperes/onetun

User space WireGuard port-forward in Rust

Repository: https://github.com/aramperes/onetun
Canonical: https://ross.abutalabs.com/products/onetun
Language: Rust
License: MIT
License Family: permissive
Topics: wireguard, wireguard-tunnel, smoltcp, boringtun
Last push: 2025-10-20T16:30:40+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 48, release rhythm 40, longevity 100
- inputs: {"age_days": 1788, "days_push": 317, "days_rel": 640, "gap_med": 0.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1042, forks 52 (observed 2026-08-28T04:03:20.768358+00:00)

## What it is
onetun is a cross-platform, user-space WireGuard port-forwarder written in Rust that forwards local TCP/UDP ports to peers on a WireGuard network. It requires no root access, no kernel WireGuard module, and no system network configuration changes.

## Use cases
- forward a local port to a service on a WireGuard network without installing WireGuard
- access WireGuard-protected services from devices without root access
- expose WireGuard network services inside rootless containers
- connect to a WireGuard peer from IoT or mobile devices that can't run WireGuard
- tunnel TCP and UDP traffic over WireGuard in user space

## When to choose
- you need WireGuard connectivity without root or kernel module installation
- you're running in a rootless container or restricted environment
- you only need port forwarding to specific peers, not a full VPN tunnel
- you want a single static binary or Docker image with no system dependencies

## When to avoid
- you need a full VPN tunnel with routing of all system traffic
- your OS already supports native WireGuard and you have root access
- you need high-throughput forwarding, as user-space networking adds overhead

## Facets
- artifact type: cli-tool
- maturity: active
- function: networking, proxy, vpn, security
- domain: networking, security, privacy, self-hosted
- platform: windows, cross-platform, cli, rust
- tags: wireguard, port-forwarding, user-space, tunnel, rootless, smoltcp, boringtun, command-line, linux, macos, docker

## Member repositories
- aramperes/onetun (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.768358+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:02:36.178289+00:00, confidence not recorded.
  - readme: https://github.com/aramperes/onetun (fetched 2026-08-28T04:03:20.768358+00:00, sha f63bbe6538d5)
  - registry_crates: https://crates.io/api/v1/crates/onetun (fetched 2026-08-29T13:03:33.330293+00:00, sha 259b6350712c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
