Awesome Open Source
Awesome Open Source


GitHub Workflow Go Version Go Report Maintainability GitHub License Docker Pulls Releases

English |


  • Proxy Everything: Handle all network traffic of any internet programs sent by the device through a proxy.
  • Proxy Protocols: HTTP/Socks4/Socks5/Shadowsocks with authentication support for remote connections.
  • Run Everywhere: Linux/macOS/Windows/FreeBSD/OpenBSD multi-platform support with specific optimization.
  • Gateway Mode: Act as a layer three gateway to handle network traffic from other devices in the same network.
  • Full IPv6 Support: All functions work in IPv6, tunnel IPv4 connections through IPv6 proxy and vice versa.
  • Network Stack: Powered by user-space TCP/IP stack from Google container application kernel gVisor.


For all scenarios of usage, tun2socks performs best. See here for more details.



Full documentation and technical guides can be found at Wiki.


Welcome and feel free to ask any questions at Discussions.




FOSSA Status

Stargazers over time

Stargazers over time

Alternatives To Tun2socks
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Golang (158,514
Docker (97,343
Network (37,668
Proxy (24,716
Stack (16,097
Docker Image (12,056
Tcp (9,440
Udp (5,527
Amd (3,282
Tunnel (2,794
Tor (2,709
Nats (2,245
Socks (1,830
Shadowsocks (1,507
Wireguard (711
Gfw (480
Socks4 (52
Tun2socks (25
Gvisor (10
Tcpip Stack (5
Tun Device (3