Install Termux
Install Termux from F-Droid — do not use the Play Store version, as it is outdated and may not work correctly.Open the WireGuard app and edit your tunnel configuration:
- Change the
Endpoint to 127.0.0.1:9000
- Set
MTU to 1280
- Add Termux to the WireGuard app exclusion list so it can reach the TURN server without going through the tunnel
- Tap Save
Set up the client in Termux
Open Termux and prevent the device from entering deep sleep so the connection stays alive:With termux-wake-lock active, the device will not enter deep sleep. Keep the device plugged in to charge, especially if you plan to run the proxy overnight.
Copy the client-android binary from your Downloads folder into the Termux home directory and make it executable:cp /sdcard/Download/client-android ./
chmod 777 ./client-android
Run the client
Using a VK link:./client-android -peer <vps-ip>:56000 -vk-link <VK link> -listen 127.0.0.1:9000
Using a Yandex Telemost link (specify a working TURN IP explicitly):./client-android -udp -turn 5.255.211.241 -peer <vps-ip>:56000 -yandex-link <Ya link> -listen 127.0.0.1:9000
Once the client prints Established DTLS connection!, activate your WireGuard tunnel.Release the wake lock
When you no longer need the proxy, release the wake lock:If DNS errors appear in Termux after enabling the VPN, go to the WireGuard app settings and enable per-app VPN so that only specific apps route through the tunnel. This prevents Termux’s DNS traffic from being blocked.