Prerequisites
- A VK Calls invite link (
https://vk.com/call/join/...) or a Yandex Telemost link (https://telemost.yandex.ru/j/...) - The
client-linuxbinary from the releases page routes.shfrom the repository, placed in the same directory and made executable (chmod +x routes.sh)
Setup
Edit your WireGuard client config
In your WireGuard client configuration, change the server Save the config but do not activate the VPN yet.
Endpoint to point at the local proxy listener and lower the MTU:Obtain a call link
Get a VK Calls invite link by creating a call at vk.com (requires a VK account). The link is valid indefinitely unless you press “end call for everyone”. Alternatively, use a Yandex Telemost link (
https://telemost.yandex.ru/j/...).Run the client and pipe routes
Open a terminal and run the client. The Using a VK link with UDP transport:Using a Yandex Telemost link (specify a working TURN IP explicitly):Wait until you see
routes.sh script reads each TURN server IP printed to stdout and installs a host route via your default gateway.Using a VK link (TCP, default):Established DTLS connection! in the output before enabling the VPN.How routes.sh works
The script finds your current default gateway and then reads IP addresses line by line from stdin. For each address, it adds a host route via the gateway so the TURN server stays reachable even after the VPN is up:
macOS variant
On macOS, useroutes-macos.sh instead of routes.sh. The macOS script is more sophisticated: it handles both plain host IPs and CIDR prefixes, extracts IPs from relayed-address= log lines, and exits with an error if WireGuard is already the default route (indicating the VPN is already active):
Additional flags
| Flag | Description |
|---|---|
-turn <ip> | Override the TURN server IP. Use this when automatic discovery fails. |
-udp | Connect to the TURN server over UDP instead of TCP. Try this if TCP does not work. |
-n <count> | Number of parallel TURN connections (default 16 for VK, 1 for Yandex). Use -n 1 for more stable throughput (capped at ~5 Mbit/s on VK). |
-port <port> | Override the TURN server port. |