You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xjasonlyu fffcbbea10 Chore: set up sponsor button 1 year ago
.github Chore: set up sponsor button 1 year ago
common Chore: remove ref annotations 1 year ago
core Feature: fdbased open fd with offset (#272) 1 year ago
dialer Refactor: relocate dialer pkg 1 year ago
dns Refactor: relocate dialer pkg 1 year ago
docker Fix(docker): sh out of range warning 3 years ago
docs Chore: update README 3 years ago
engine Feature: fdbased open fd with offset (#272) 1 year ago
internal/version Chore: minor refactor 3 years ago
log Feature: support setting log output (#248) 2 years ago
metadata Refactor: return metadata.Addr only 3 years ago
proxy Fix: HTTP proxy basic auth error (#266) 1 year ago
restapi Chore: remove ref annotations 1 year ago
transport Refactor: relocate simple-obfs pkg 1 year ago
tunnel Fix: update tcpip.Address api 1 year ago
.dockerignore Chore: always use zip to release 4 years ago
.gitignore Chore: always use zip to release 4 years ago
.golangci.yaml CI(linter): enable new linters 2 years ago
Dockerfile Revert: udp-rlybuf option 2 years ago
LICENSE License: GPL 3.0 4 years ago
Makefile Chore: update linter 2 years ago
README.md Chore: star chart with dark theme supported 1 year ago
README_ZH.md Chore: star chart with dark theme supported 1 year ago
go.mod Chore: update go modules 1 year ago
go.sum Chore: update go modules 1 year ago
main.go Revert: cli tcp-wait-timeout option 2 years ago

README.md

tun2socks

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

English | 简体中文

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 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.

Benchmarks

For all scenarios of usage, tun2socks performs best. See here 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