tun2socks

command module
v0.0.0-...-f8bfe20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

README

tun2socks

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

Features

  • 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 3 gateway to handle network traffic from other devices on the same network.
  • Full IPv6 Support: All functions work in IPv6, tunnel IPv4 connections through IPv6 proxy and vice versa.
  • Network Stack: Powered by the user-space TCP/IP stack from Google container application kernel gVisor.

Benchmarks

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

benchmark

Documentation

Full documentation and technical guides can be found at Wiki.

Community

Welcome and feel free to ask any questions at Discussions.

Credits

License

GPL-3.0

FOSSA Status

Star History

Star History Chart

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package buffer provides a pool of []byte.
Package buffer provides a pool of []byte.
device/iobased
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
device/tun
Package tun provides TUN which implemented device.Device interface.
Package tun provides TUN which implemented device.Device interface.
internal
pool
Package pool provides internal pool utilities.
Package pool provides internal pool utilities.
Package log is a thin wrapper based on "go.uber.org/zap".
Package log is a thin wrapper based on "go.uber.org/zap".
Package proxy provides implementations of proxy protocols.
Package proxy provides implementations of proxy protocols.
transport
simple-obfs
Package obfs provides obfuscation functionality for Shadowsocks protocol.
Package obfs provides obfuscation functionality for Shadowsocks protocol.
socks4
Package socks4 provides SOCKS4/SOCKS4A client functionalities.
Package socks4 provides SOCKS4/SOCKS4A client functionalities.
socks5
Package socks5 provides SOCKS5 client functionalities.
Package socks5 provides SOCKS5 client functionalities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL