xjasonlyu/tun2socks

tun2socks - powered by gVisor TCP/IP stack

5,481

stars

868

commits

Go

primary language

Sep 6, 2026

updated

github.com/xjasonlyu/tun2socks/wiki
go
golang
gvisor
http-proxy
nat
proxifier
proxy
shadowsocks
socks4
socks5
ssh
ssh-tunnel
tcpip-stack
tor
tun2socks
tun-device
udp
wireguard
Browse cluster: Proxy and VPN Network Tools

README

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

Contributors

xjasonlyu

841 commits

nange

5 commits

0x04c11db7

3 commits

xjasonlyu/tun2socks

tun2socks - powered by gVisor TCP/IP stack

5,481

stars

868

commits

Go

primary language

Sep 6, 2026

updated

github.com/xjasonlyu/tun2socks/wiki
go
golang
gvisor
http-proxy
nat
proxifier
proxy
shadowsocks
socks4
socks5
ssh
ssh-tunnel
tcpip-stack
tor
tun2socks
tun-device
udp
wireguard
Browse cluster: Proxy and VPN Network Tools

README

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

Contributors

xjasonlyu

841 commits

nange

5 commits

0x04c11db7

3 commits

Languages

Go

95.9%

Makefile

2.6%

Shell

1.1%