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.
 
 
 
 
Hossin Asaadi b65d23180c
Feature: set open FD offset for iOS (#418)
4 weeks ago
.github Chore: adjust markdown layout (#388) 3 months ago
buffer Refactor(pool): use generic buffer/pool (#399) 2 months ago
core Feature: set open FD offset for iOS (#418) 4 weeks ago
dialer Refactor: relocate dialer pkg 1 year ago
dns Refactor: relocate dialer pkg 1 year ago
docker Docker: add options for multicast groups (#290) 1 year ago
docs Chore: update README 3 years ago
engine Feature: set open FD offset for iOS (#418) 4 weeks ago
internal Refactor(pool): use generic buffer/pool (#399) 2 months ago
log Refactor(log): use `go.uber.org/zap` (#389) 2 months ago
metadata Refactor(metadata): replace net.IP with netip.Addr (#396) 2 months ago
proxy Refactor(pool): use generic buffer/pool (#399) 2 months ago
restapi Refactor(log): use `go.uber.org/zap` (#389) 2 months ago
transport Refactor: bufferpool new function (#407) 2 months ago
tunnel Refactor(pool): use generic buffer/pool (#399) 2 months ago
.dockerignore Chore: update .dockerignore (#401) 2 months ago
.gitignore Chore(.gitignore): use github template (#381) 4 months ago
.golangci.yaml Chore: update golangci-lint settings (#377) 4 months ago
Dockerfile Docker: add options for multicast groups (#290) 1 year ago
LICENSE License: GPL 3.0 4 years ago
Makefile Chore: update golangci-lint settings (#377) 4 months ago
README.md Chore: add README credits (#408) 2 months ago
go.mod Chore: bump go mods (#413) 1 month ago
go.sum Chore: bump go mods (#413) 1 month ago
main.go Refactor(log): use `go.uber.org/zap` (#389) 2 months ago

README.md

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