xjasonlyu / tun2socks
tun2socks - powered by gVisor TCP/IP stack
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing xjasonlyu/tun2socks in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler view[![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 For all scenarios of usage, tun2socks performs best. See benchmarks for more details. Documentation • Install from Source • Quickstart Examples • Memory Optimization Full documentation and technical guides can be found at Wiki. Community Welcome and feel free to ask any questions at Discussions. Credits • google/gvisor - Application Kernel for Containers • wireguard-go - Go Implementation of WireGuard • wintun - Layer 3 TUN Driver for Windows License Star History [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