# tun2proxy/tun2proxy

Tunnel (TUN) interface for SOCKS and HTTP proxies

Repository: https://github.com/tun2proxy/tun2proxy
Canonical: https://ross.abutalabs.com/products/tun2proxy
Language: Rust
License: MIT
License Family: permissive
Topics: tun2proxy, tun2socks, tun2http, http-proxy, proxy, socks, socks5, tunnel
Last push: 2026-08-24T03:16:46+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 1827, "days_push": 9, "days_rel": 41, "gap_med": 10.5, "n_releases_24m": 41}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1396, forks 189 (observed 2026-08-28T04:04:36.654615+00:00)

## What it is
tun2proxy is a Rust tool that creates a TUN network interface and routes traffic through SOCKS4/5 or HTTP proxies, effectively turning a proxy into a system-wide VPN-like tunnel. It supports IPv4/IPv6, DNS over TCP, UDP-over-TCP gateways, and per-app routing on Android via session info embedding.

## Use cases
- route all system traffic through a socks5 proxy
- use an http proxy as a vpn on linux
- tunnel traffic through socks5 on android with per-app routing
- send udp traffic over a tcp socks proxy
- proxy dns queries over tcp through a tunnel
- bypass network restrictions using a proxy tunnel

## When to choose
- you need system-wide proxy tunneling without root-level VPN servers
- you only have a SOCKS or HTTP proxy but want all apps' traffic routed through it
- you need UDP over TCP or DNS-over-TCP through a proxy
- you want per-app routing on Android 10+

## When to avoid
- you need a full VPN with encryption beyond what the proxy provides
- you need a graphical VPN client rather than a command-line tool
- your proxy does not support the auth methods or UDP features you require

## Facets
- artifact type: cli-tool
- maturity: active
- function: proxy, networking, vpn, routing
- domain: networking, privacy, censorship-circumvention, developer-tools
- platform: windows, rust, cli, cross-platform
- tags: tun2socks, socks5, http-proxy, tunnel-interface, udp-gateway, virtual-dns, per-app-routing, linux, macos, android, ios

## Member repositories
- tun2proxy/tun2proxy (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.654615+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-30T04:39:20.760895+00:00, confidence not recorded.
  - readme: https://github.com/tun2proxy/tun2proxy (fetched 2026-08-28T04:04:36.654615+00:00, sha d5e4b59f0b6d)
  - registry_crates: https://crates.io/api/v1/crates/tun2proxy (fetched 2026-08-29T11:53:49.354213+00:00, sha 3de829fc87fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
