xjasonlyu/tun2socks

tun2socks - powered by gVisor TCP/IP stack

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 14 minutes ago
Added to GitGenius on September 12th, 2026
Created on July 16th, 2019
Open Issues & Pull Requests: 15 (+0)
GitHub issues: Enabled
Number of forks: 645
Total Stargazers: 5,488 (+0)
Total Subscribers: 35 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 6.6 hours
Mean response time: 36.8 days
90th percentile: 56.3 days
Tracked items: 55

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 12% of issues opened in the past year have been closed. Three people close 56% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 796 days
Stale 30+ days: 5
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Stale (26)
  • enhancement (4)
  • bug (2)
  • documentation (2)
  • help wanted (2)
  • duplicate (1)
  • question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

tun2socks is a user-space network proxy tool that transparently routes traffic through a TUN device using the gVisor TCP/IP stack.

The tool solves the problem of routing all network traffic from applications through proxy servers without requiring application-level changes. It works by creating a virtual network interface that intercepts traffic and processes it through a user-space TCP/IP stack powered by gVisor, then forwards connections through supported proxy protocols including HTTP, SOCKS, Shadowsocks, SSH, and relay proxies. This approach enables transparent proxying across the entire system while maintaining flexibility in proxy selection and authentication.

Developers should choose this tool when they need system-wide transparent proxying across multiple applications and protocols. It suits scenarios ranging from personal workstations to gateway deployments that route traffic from other devices on the network. The tool runs on Linux, macOS, Windows, FreeBSD, and OpenBSD with platform-specific optimizations. It natively supports IPv6 and can tunnel IPv4 over IPv6 and vice versa. The README does not compare tun2socks to alternative proxying solutions, so no comparative guidance can be offered.

The project maintains active community engagement through a discussions forum. Documentation is comprehensive, covering installation from source, quickstart examples, and memory optimization techniques. The tool includes benchmarking results demonstrating performance characteristics across different usage scenarios.