tun2socks

tun2socks v2.7.0

tun2socks - powered by gVisor TCP/IP stack

  • By xjasonlyu
  • Open Source
  • Portable
  • Updated Jul 12, 2026
Download for Windows

About tun2socks

tun2socks - powered by gVisor TCP/IP stack

What's new in v2.7.0

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

Full release notes »

Technical details

Publisherxjasonlyu
Versionv2.7.0
Release date2026-07-12
LicenseMIT
Installer typezip
Architecturex86, x64, arm64
Package IDxjasonlyu.tun2socks

Install tun2socks from the command line

Install with Windows Package Manager
winget install --id=xjasonlyu.tun2socks -e
Update to the latest version
winget upgrade --id=xjasonlyu.tun2socks -e
Uninstall
winget uninstall --id=xjasonlyu.tun2socks -e

gogolanggvisorhttp-proxynatproxyshadowsockssocks4socks5ssh-tunneltcpip-stacktortun-devicetun2socksudpwireguard

tun2socks version history

v2.6.0 Jun 7, 2025

What'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 …

v2.5.2 Nov 13, 2023

Bug Fixes

  • Fix: HTTP proxy basic auth error (#266)
v2.5.1 Jun 7, 2023

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

Frequently asked questions

Is tun2socks free?

Yes. tun2socks is free and open-source software released under the MIT license.

What is the latest version of tun2socks?

The latest version is v2.7.0, released on Jul 12, 2026.

Is it safe to download tun2socks?

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.

Which Windows versions does tun2socks support?

tun2socks runs on Windows and is available for 32-bit (x86), 64-bit (x64), ARM64 systems.

How do I uninstall tun2socks?

Open Settings › Apps › Installed apps, find tun2socks and select Uninstall. From the command line, run winget uninstall --id=xjasonlyu.tun2socks -e.

Is there a portable version of tun2socks?

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.