# eycorsican/go-tun2socks

A tun2socks implementation written in Go.

Repository: https://github.com/eycorsican/go-tun2socks
Canonical: https://ross.abutalabs.com/products/go-tun2socks
Language: C
License: MIT
License Family: permissive
Topics: tun2socks
Archived: true
Last push: 2021-02-01T12:18:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2991, "days_push": 2039, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1370, forks 440 (observed 2026-08-28T04:04:31.958438+00:00)

## What it is
A tun2socks implementation written in Go that routes traffic from a TUN network interface through a SOCKS proxy. It can be used as a command-line tool or embedded as a library in mobile and desktop applications.

## Use cases
- route all system traffic through a SOCKS proxy
- build a VPN-like client that tunnels TUN traffic via a proxy server
- embed tun2socks into an iOS or Android proxy app
- create a custom tun2shadowsocks tool with a custom handler
- redirect UDP and TCP traffic from a virtual network interface

## When to choose
- you need a Go-based tun2socks library to embed in your own proxy client
- you want to route TUN interface traffic through a SOCKS5 proxy
- you need a cross-platform tun2socks with mobile bindings

## When to avoid
- you need the best performance and lower memory usage - the author recommends the Rust-based leaf instead
- you need an actively developed tool - the latest release is from 2021
- you want a ready-made end-user VPN application with a GUI

## Facets
- artifact type: library
- maturity: maintenance
- function: networking, proxy, cli
- domain: networking, privacy, developer-tools
- platform: windows, cross-platform, go
- tags: tun2socks, socks-proxy, tun-interface, vpn, golang, linux, macos, android, ios

## Member repositories
- eycorsican/go-tun2socks (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.958438+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:40:54.964010+00:00, confidence not recorded.
  - readme: https://github.com/eycorsican/go-tun2socks (fetched 2026-08-28T04:04:31.958438+00:00, sha 765412b65c11)
- Data as of 2026-08-30T08:39:29.467469+00:00.
