# heiher/hev-socks5-tunnel

A lightweight, fast and reliable tun2socks

Repository: https://github.com/heiher/hev-socks5-tunnel
Canonical: https://ross.abutalabs.com/products/hev-socks5-tunnel
Language: C
License: MIT
License Family: permissive
Topics: linux, android, tcp, dns, high-performance, udp, macos, socks5, proxy, tun-device, tunnel, tun2socks, freebsd, ipv6, ios, windows
Last push: 2026-08-18T10:50:07+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 2533, "days_push": 15, "days_rel": 21, "gap_med": 18.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1991, forks 375 (observed 2026-08-28T04:06:03.128761+00:00)

## What it is
A lightweight, high-performance tun2socks implementation that forwards TCP and UDP traffic from a TUN device through a SOCKS5 proxy. It is written in C, supports IPv4/IPv6 dual stack, and builds as a CLI binary or static/shared library for Linux, Android, FreeBSD, macOS, iOS, and Windows.

## Use cases
- route all device traffic through a socks5 proxy with tun2socks
- redirect tcp and udp connections over a socks5 tunnel on android
- build a vpn-like client that tunnels traffic via socks5 on ios
- forward udp packets through a socks5 proxy with fullcone nat
- set up a lightweight tun2socks gateway on linux or freebsd
- embed a tun2socks library into a mobile app via static or shared library

## When to avoid
- you need encrypted tunnel protocols like wireguard or openvpn rather than socks5
- you need a full-featured proxy client with rule-based routing and subscription support
- you prefer a managed GUI application over a config-file-driven tool

## Facets
- artifact type: library
- maturity: active
- function: proxy, networking, vpn
- domain: networking, privacy, censorship-circumvention, cross-platform
- platform: windows, bsd, c
- tags: tun2socks, socks5, tunnel, tun-device, udp-relay, high-performance, linux, android, macos, ios

## Member repositories
- heiher/hev-socks5-tunnel (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:03.128761+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-30T03:02:42.414853+00:00, confidence not recorded.
  - readme: https://github.com/heiher/hev-socks5-tunnel (fetched 2026-08-28T04:06:03.128761+00:00, sha 2fe6f43b8218)
- Data as of 2026-08-30T08:39:29.467469+00:00.
