tun2proxy/tun2proxy
Tunnel (TUN) interface for SOCKS and HTTP proxies observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 94
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 10.5
- age_days: 1827
- days_rel: 41
- days_push: 9
- n_releases_24m: 41
Adoption not part of the score
1396 stars · 189 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
cli-tool · maturity active
proxy networking vpn routing networking privacy censorship-circumvention developer-tools windows rust cli cross-platform tun2socks socks5 http-proxy tunnel-interface udp-gateway virtual-dns per-app-routing linux macos android ios
2 sources
- readme: https://github.com/tun2proxy/tun2proxy · fetched 2026-08-28 · d5e4b59f0b6d
- registry_crates: https://crates.io/api/v1/crates/tun2proxy · fetched 2026-08-29 · 3de829fc87fe
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tun2proxy/tun2proxy | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="tun2proxy/tun2proxy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem