mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
ab59724d87de8b0f7432afb68337cb9fb8501a92
Features
- ICMP echoing / IPv6 support / Socks5 & SS proxy
- Optimized UDP transmission for game acceleration
- Pure Go implementation, no more CGO required
- Router mode, routing all the traffic in LAN
- TCP/IP stack powered by gVisor
- More than 2.5Gbps throughput (10x faster than v1)
Requirements
| Target | Minimum | Recommended |
|---|---|---|
| System | Linux MacOS Freebsd OpenBSD Windows | Linux MacOS |
| Memory | >20MB | >128MB |
| CPU | AMD64(x86_64) ARM64 | AMD64 with AES-NI & AVX2 |
Documentation
Documentations and quick start guides can be found at Github Wiki.
Building from source
Due to tun2socks based on gVisor, so only x86_64 and ARM64 was supported for now. Other architectures may become available in the future.
Dependencies
Make sure the following dependencies are installed:
- Go 1.15+
Building
Build and install the tun2socks binary:
make tun2socks
sudo cp ./bin/tun2socks /usr/local/bin
Build for all architectures:
make all-arch
Credits
Known Issues
Due to the implementation of pure Go, the memory consumption is higher than the previous version. If you are sensitive to it, please go back to v1.
TODO
- Windows support
- FreeBSD support
- OpenBSD support
- Auto route mode
Description
tun2socks - powered by gVisor TCP/IP stack
gfwgogolanggvisorhttp-proxynatnetworkproxifier-alternativeproxyshadowsockssocks4socks5ssh-tunneltcpip-stacktortun-devicetun2sockstunneludpwireguard
Readme
6.8 MiB
Languages
Go
95.4%
Makefile
3%
Shell
1.2%
Dockerfile
0.4%
