https://github.com/xjasonlyu/tun2socks
tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks
go golang gvisor http-proxy nat network proxifier-alternative proxy shadowsocks socks4 socks5 ssh ssh-tunnel tcpip-stack tor tun-device tun2socks tunnel udp wireguard
Last synced: 10 days ago
JSON representation
tun2socks - powered by gVisor TCP/IP stack
- Host: GitHub
- URL: https://github.com/xjasonlyu/tun2socks
- Owner: xjasonlyu
- License: gpl-3.0
- Created: 2019-07-16T03:25:40.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T20:55:36.000Z (about 2 months ago)
- Last Synced: 2025-04-08T23:03:31.180Z (25 days ago)
- Topics: go, golang, gvisor, http-proxy, nat, network, proxifier-alternative, proxy, shadowsocks, socks4, socks5, ssh, ssh-tunnel, tcpip-stack, tor, tun-device, tun2socks, tunnel, udp, wireguard
- Language: Go
- Homepage: https://github.com/xjasonlyu/tun2socks/wiki
- Size: 6.07 MB
- Stars: 3,745
- Watchers: 38
- Forks: 512
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
- stars - xjasonlyu/tun2socks - powered by gVisor TCP/IP stack (HarmonyOS / Windows Manager)
- awesome-wireguard - tun2socks - Powered by gVisor TCP/IP stack. (Projects / User Interface)
- awesome-golang-repositories - tun2socks - powered by gVisor TCP/IP stack (Repositories)
- awesome-hacking-lists - xjasonlyu/tun2socks - tun2socks - powered by gVisor TCP/IP stack (Go)
- awesome-starred - xjasonlyu/tun2socks - tun2socks - powered by gVisor TCP/IP stack (Go)
- awesome-starred - xjasonlyu/tun2socks - tun2socks - powered by gVisor TCP/IP stack (Go)
- trackawesomelist - tun2socks (⭐3k) - A pure go implementation of tun2socks powered by [gVisor](https://gvisor.dev/) TCP/IP stack. (Recently Updated / [Aug 31, 2024](/content/2024/08/31/README.md))
- awesome-go - tun2socks - A pure go implementation of tun2socks powered by [gVisor](https://gvisor.dev/) TCP/IP stack. Stars:`3.7K`. (Networking / Transliteration)
- awesome-starred - xjasonlyu/tun2socks - tun2socks - powered by gVisor TCP/IP stack (golang)
README

[![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://codeclimate.com/github/xjasonlyu/tun2socks/maintainability)
[![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/SOCKS4/SOCKS5/Shadowsocks 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](https://github.com/google/gvisor)** network stack for enhanced
performance and flexibility.## Benchmarks

For all scenarios of usage, tun2socks performs best.
See [benchmarks](https://github.com/xjasonlyu/tun2socks/wiki/Benchmarks) for more details.## Documentation
- [Install from Source](https://github.com/xjasonlyu/tun2socks/wiki/Install-from-Source)
- [Quickstart Examples](https://github.com/xjasonlyu/tun2socks/wiki/Examples)
- [Memory Optimization](https://github.com/xjasonlyu/tun2socks/wiki/Memory-Optimization)Full documentation and technical guides can be found at [Wiki](https://github.com/xjasonlyu/tun2socks/wiki).
## Community
Welcome and feel free to ask any questions at [Discussions](https://github.com/xjasonlyu/tun2socks/discussions).
## Credits
- [google/gvisor](https://github.com/google/gvisor) - Application Kernel for Containers
- [wireguard-go](https://git.zx2c4.com/wireguard-go) - Go Implementation of WireGuard
- [wintun](https://git.zx2c4.com/wintun/) - Layer 3 TUN Driver for Windows## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fxjasonlyu%2Ftun2socks?ref=badge_large)
All versions starting from `v2.6.0` are available under the terms of the [MIT License](https://github.com/xjasonlyu/tun2socks/blob/main/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://api.codeclimate.com/v1/badges/b5b30239174fc6603aca/maintainability
[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