Jason Lyu b986c2434d
CodeQL / Analyze (go) (push) Canceled after 0s
Publish Docker Image / Docker (push) Canceled after 0s
Linter / Linter (push) Canceled after 0s
Test / Unit Test (push) Canceled after 0s
Test / Build Test (push) Canceled after 0s
Test / E2E Test (HTTP) (push) Canceled after 0s
Test / E2E Test (Relay) (push) Canceled after 0s
Test / E2E Test (SOCKSv4) (push) Canceled after 0s
Test / E2E Test (SOCKSv5) (push) Canceled after 0s
Test / E2E Test (SSH) (push) Canceled after 0s
Test / E2E Test (Direct) (push) Canceled after 0s
Test / E2E Test (Shadowsocks) (push) Canceled after 0s
Build: bump to go1.27 (#557)
* Upgrade Go to 1.27.1 and refresh direct and indirect module versions.
2026-10-11 15:52:22 -04:00
2025-04-16 03:09:50 +08:00
2025-09-03 23:38:43 -04:00
2026-10-11 15:52:22 -04:00
2026-10-11 15:52:22 -04:00
2025-04-16 03:59:57 +08:00
2026-07-11 14:08:41 +08:00

tun2socks

Go Build Go Linter Go Version Maintainability GitHub License Docker Pulls 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
Languages
Go 95.9%
Makefile 2.6%
Shell 1.1%
Dockerfile 0.4%