TheAirBlow/Turnable
关于
用于通过 TURN 或 SFU 进行隐蔽隧道传输的 VPN 核心
系统与基础设施可以做什么
- Future-proof modular architecture
- Full support for both TCP and UDP sockets
- Tunneling through multiple peer connections to bypass ratelimits
- Multiplexing to allow establishing multiple route connections
实测星标增长
- 24小时
- 0
- 7天
- +3
- 15天
- +14
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Turnable · 🇷🇺 RU
Turnable is a VPN core that tunnels TCP/UDP traffic through TURN relay servers or via SFU provided by platforms like VKontakte. Traffic mimics legitimate WebRTC media and is encrypted, multiplexed, and spread across multiple peer connections. The entire codebase is modular and can be freely extended to add new features or support more platforms.
[!NOTE] We recommend using Frostbite for managing the server.
Features
- Future-proof modular architecture
- Full support for both TCP and UDP sockets
- Tunneling through multiple peer connections to bypass ratelimits
- Multiplexing to allow establishing multiple route connections
- End-to-end encryption - forced for handshake, optional for data
- Convenient user and route management with proper authentication
- Overall more stable and less hacky implementation than others
How it works
There are two methods of establishing a tunnel with a remote server that Turnable supports. Both of them allow to establish multiple TCP/UDP connections via multiplexing, with traffic being spread through multiple peer connections to bypass platform ratelimits.
Relay - tunnel via TURN with an intermediate
The client allocates a relay address on the platform's TURN server, connects to the Turnable server, and from there it forwards traffic to the configured destination. Simple and stable, but is usually heavily throttled and can be detected.
sequenceDiagram
participant App as Source
participant TC as Turnable Client
participant TURN as TURN Server
participant TS as Turnable Server
participant Dest as Destination
TC->>TURN: Join call, allocate relay endpoint
Note over TC,TS: Dedicated tunnel established
loop Traffic
App->>TC: TCP/UDP data
TC->>TS: Relay
TS->>Dest: Forwarded data
Dest-->>TS: TCP/UDP data
TS->>TC: Relay
TC-->>App: Forwarded data
end
Direct Relay - direct tunnel via TURN
The client allocates a relay address on the platform's TURN server and connects to the destination server directly. Does not require a Turnable server. ⚠️ Not recommended and is dangerous to use.
sequenceDiagram
participant App as Source
participant TC as Turnable Client
participant TURN as TURN Server
participant Dest as Destination
TC->>TURN: Join call, allocate relay endpoint
Note over TC,Dest: Dedicated tunnel established
loop Traffic
App->>TC: TCP/UDP data
TC->>Dest: Forwarded data
Dest-->>TC: TCP/UDP data
TC-->>App: Forwarded data
end
P2P - fake screencast via SFU ⚠️ WIP
The client and server communicate through the platform's SFU, disguising all traffic as a screencast stream.
sequenceDiagram
participant App as Source
participant TC as Turnable Client
participant SFU as SFU (VK)
participant TSM as Server - Main Peer
participant TSD as Server - Dedicated Peer
participant Dest as Destination
TC->>SFU: Join call, locate server main peer SSRC by username
TC->>SFU: SDP response with main peer SSRC + start fake screencast
TSM-->>TC: ready ack
TC->>TSM: auth
TSM-->>TC: auth ack + dedicated peer SSRC
TC->>SFU: SDP response with dedicated peer SSRC
TSD->>SFU: SDP response with client peer SSRC
Note over TC,TSD: Dedicated tunnel established
loop Traffic
App->>TC: TCP/UDP data
TC->>TSD: Relay
TSD->>Dest: Forwarded data
Dest-->>TSD: TCP/UDP data
TSD->>TC: Relay
TC-->>App: Forwarded data
end
Building
Pre-built binaries are available on the releases page. Pick the correct file for your OS and architecture.
If you would like to compile it yourself, run this command on the target machine:
go build -o turnable ./cmd
Check out the ci.yml workflow for cross-compilation.
Setup
Quick start: Follow the client, server or service setup guide.
Android: Use Turnable App, the official Android client, and follow the Android setup guide.
Configuration: Detailed reference for client and server config schemas.
[!NOTE] If something broke after an update, most likely the configuration format has changed.
Missing features
- Built-in WireGuard / SOCKS5 server and client
- Traffic obfuscation (cloak) implementations
- Database user and route management
- P2P connection type (via SFU)
Credits
- vk-turn-proxy - original project, on which Turnable is partially based on.
License
探索相关项目
加载中…