About tun2socks
tun2socks - powered by gVisor TCP/IP stack
tun2socks - powered by gVisor TCP/IP stack
tun2socks - powered by gVisor TCP/IP stack
What's Changed
Features
- Feature: use pflag as drop-in replacement by @xjasonlyu in #513
- Feature(proxy): support ssh proxy protocol by @xjasonlyu in #519
- Feature: support custom ICMP message handling by @nange in #521
Fixes
- Fix: update gVisor dependency and modify UDP handler to return a boolean by @SuzukiHonoka in #487
- Fix: crash on multiple start/stop due to FD being closed twice by @vecljox in #495
- Fix(log): set log level for glog by @xjasonlyu in #511
- Fix(stack): respond to ICMPv4 echo messages by @xjasonlyu in #514
- Fix: icmp interface binding by @nange in #524
- Fix(build): remove unsupported windows/arm32 target by @xjasonlyu with @Copilot in #542
Others
- Refactor(proxy): registrable proxy protocol by @xjasonlyu in #517
- Refactor(engine): parse multicast groups by @xjasonlyu in #518
- Refactor(dialer): with socket options by @xjasonlyu in #525
- Refactor: ID should return a copy for TCP/UDPConn by @xjasonlyu in #522
- CI: add tun2socks e2e tests by @xjasonlyu in #510
- CI(test): update test workflow by @xjasonlyu in #516
- Chore: bump to go1.26 by @xjasonlyu in #526
New Contributors
- @vecljox made their first contribution in #495
- @xjasonlyu with @Copilot made their first contribution in #542
Full Changelog: v2.6.0...v2.7.0
| Publisher | xjasonlyu |
|---|---|
| Version | v2.7.0 |
| Release date | 2026-07-12 |
| License | MIT |
| Installer type | zip |
| Architecture | x86, x64, arm64 |
| Package ID | xjasonlyu.tun2socks |
winget install --id=xjasonlyu.tun2socks -ewinget upgrade --id=xjasonlyu.tun2socks -ewinget uninstall --id=xjasonlyu.tun2socks -eWhat's Changed
License Update
- LICENSE: switch to MIT by @xjasonlyu in #462
New Features
- Feature: fdbased open fd with offset by @myloft in #272
- Feature: Add support for multicast by @Amaindex in #245
- Feature: persistent wintun with GUID option by @xjasonlyu in #301
- Feature: set open FD offset for iOS by @hossinasaadi in #418
- Feature: add make for loong64 by @xunmi-git in #427
- Feature(proxy): support gost relay protocol by @xjasonlyu in #310
- Feature(docker): add options for multicast groups by @xjasonlyu in #290
- Feature(socks5): support abstract namespace unix sock by @SuzukiHonoka in #436
Improvement & Fixes
- Improve(actions): add concurrency groups by @xjasonlyu in #289
- Improve: use embedded go-shadowsocks2 by @xjasonlyu in #306
- Improve(proxy/ss): allow explicit none cipher mode by @xjasonlyu in #312
- Improve: optimize the memory footprint under SOCKS5 when USERNAME/PASSWORD authentication is used by @cty123 in #315
- Fix: defer func for safeConnClose by @xjasonlyu in #309
- Fix: call SetSendBufferSize when setting send buffer size option by @niconorsk in #336
- Fix: safely split command strings by @xjasonlyu in #340
- Fix: socks5 usernames and passwords can BOTH be up to 255 bytes by @Yawning in #343
- Fix: codeql autobuild error by @xjasonlyu in #355
- Fix: mutex never unlocked on error by @devil666face in #456
- Refactor: direct proxy parsing by @xjasonlyu in #308
- Refactor(debug): simplify version string by @xjasonlyu in #380 …
Bug Fixes
What's Changed
- Feature: log support setting output by @myloft in #248
- CI: update golangci-lint config by @xjasonlyu in #251
- Fix: packets sending issue on certain Linux platform by @xjasonlyu in #254
- Fix: fix panic when unassigned reply code arrives. by @ghostiam in #255
New Contributors
- @ghostiam made their first contribution in #255
Yes. tun2socks is free and open-source software released under the MIT license.
The latest version is v2.7.0, released on Jul 12, 2026.
The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with c5d46e9452f6c9cc7c15ab9158d6d6a0169ceecd6bca019ce476b49337d2be43.
tun2socks runs on Windows and is available for 32-bit (x86), 64-bit (x64), ARM64 systems.
Open Settings › Apps › Installed apps, find tun2socks and select Uninstall. From the command line, run winget uninstall --id=xjasonlyu.tun2socks -e.
Yes. tun2socks is available as a portable ZIP archive (tun2socks-windows-amd64.zip, 64-bit (x64)) that runs without installation. Copy it to any folder or USB drive and run it from there.