xjasonlyu
tun2socks
Go

tun2socks - powered by gVisor TCP/IP stack

Last updated Jul 8, 2026
5.3k
Stars
621
Forks
13
Issues
+30
Stars/day
Attention Score
90
Language breakdown
No language data available.
Files click to expand
README

tun2socks

[![GitHub Workflow][1]](https://github.com/xjasonlyu/tun2socks/actions) [![Go Version][2]](https://github.com/xjasonlyu/tun2socks/blob/main/go.mod) [![Go Report][3]](https://goreportcard.com/badge/github.com/xjasonlyu/tun2socks) [![Maintainability][4]](https://qlty.sh/gh/xjasonlyu/projects/tun2socks) [![GitHub License][5]](https://github.com/xjasonlyu/tun2socks/blob/main/LICENSE) [![Docker Pulls][6]](https://hub.docker.com/r/xjasonlyu/tun2socks) [![Releases][7]](https://github.com/xjasonlyu/tun2socks/releases)

Features

  • Universal Proxying: Transparently routes all network traffic from any application through a proxy.
  • Multi-Protocol: Supports HTTP/SOCKS/Shadowsocks/SSH/Relay proxies with optional authentication.
  • Cross-Platform: Runs on Linux/macOS/Windows/FreeBSD/OpenBSD with platform-specific optimizations.
  • Gateway Mode: Acts as a Layer 3 gateway to route traffic from other devices on the same network.
  • Full IPv6 Compatibility: Natively supports IPv6; seamlessly tunnels IPv4 over IPv6 and vice versa.
  • User-Space Networking: Leverages the gVisor network stack for enhanced
performance and flexibility.

Benchmarks

benchmark

For all scenarios of usage, tun2socks performs best. See benchmarks for more details.

Documentation

Full documentation and technical guides can be found at Wiki.

Community

Welcome and feel free to ask any questions at Discussions.

Credits

License

FOSSA Status

Star History

Star History Chart

[1]: https://img.shields.io/github/actions/workflow/status/xjasonlyu/tun2socks/docker.yml?logo=github

[2]: https://img.shields.io/github/go-mod/go-version/xjasonlyu/tun2socks?logo=go

[3]: https://goreportcard.com/badge/github.com/xjasonlyu/tun2socks

[4]: https://qlty.sh/gh/xjasonlyu/projects/tun2socks/maintainability.svg

[5]: https://img.shields.io/github/license/xjasonlyu/tun2socks

[6]: https://img.shields.io/docker/pulls/xjasonlyu/tun2socks?logo=docker

[7]: https://img.shields.io/github/v/release/xjasonlyu/tun2socks?logo=smartthings

🔗 More in this category

© 2026 GitRepoTrend · xjasonlyu/tun2socks · Updated daily from GitHub