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 f7b4f75ed4 Fix: align with wireguard io 2 years ago
.github Improve: do not stale labeled issues 2 years ago
common Improve: use interface index for macos 3 years ago
component Fix: rand linter 2 years ago
core Fix: align with wireguard io 2 years ago
dns Chore: explicit resolver 3 years ago
docker Fix(docker): sh out of range warning 3 years ago
docs Chore: update README 3 years ago
engine Chore: reorder imports 2 years ago
internal/version Chore: minor refactor 3 years ago
log Migration: go 1.18 3 years ago
metadata Refactor: return metadata.Addr only 3 years ago
proxy Chore: reorder imports 2 years ago
restapi Chore: reorder imports 2 years ago
transport Chore(socks5): revise handshake error message 3 years ago
tunnel Chore: reorder imports 2 years ago
.dockerignore Chore: always use zip to release 4 years ago
.gitignore Chore: always use zip to release 4 years ago
.golangci.yaml Chore: update linter 2 years ago
Dockerfile Feature(docker): add tzdata 3 years ago
LICENSE License: GPL 3.0 4 years ago
Makefile Chore: update linter 2 years ago
README.md Fix: build badges 2 years ago
README_ZH.md Fix: build badges 2 years ago
go.mod Chore: bump go mods 2 years ago
go.sum Chore: bump go mods 2 years ago
main.go Chore: reorder imports 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

Stargazers over time

Stargazers over time