{"id":15373125,"url":"https://github.com/vi/turntie","last_synced_at":"2026-04-18T16:38:40.885Z","repository":{"id":148373538,"uuid":"620052271","full_name":"vi/turntie","owner":"vi","description":"Use TURN servers as a relocatable communication channel","archived":false,"fork":false,"pushed_at":"2023-03-28T01:05:22.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T02:50:57.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-27T23:55:12.000Z","updated_at":"2024-10-24T01:42:15.000Z","dependencies_parsed_at":"2023-05-19T22:00:31.478Z","dependency_job_id":null,"html_url":"https://github.com/vi/turntie","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"8a7636588457e6aa2a31c43cbf0a5c79a6b0368b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vi/turntie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fturntie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fturntie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fturntie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fturntie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/turntie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fturntie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31976801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T16:27:12.723Z","status":"ssl_error","status_checked_at":"2026-04-18T16:27:11.140Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T13:54:20.003Z","updated_at":"2026-04-18T16:38:40.848Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# turntie-cli\n\nThis tool demostrates usage of `turntie` library that allows tying two TURN allocations with Mobility extension enabled together, for endpoints to be moved elsewhere and used for communicatinon.\n\n## Features\n\n* Creating a pair of allocations on a TURN server specified by IP, port, username and password and adding relayed addresses as permissions to each other.\n* Serializing TURN client state (including credentials) as not too long base64 lines.\n* Restoring TURN client from those lines and sending stdin lines to the other counterpart as UDP packets to TURN server.\n* Serialized TURN client state (specifier) can be moved to another host / network.\n* Available as a Rust library (for Tokio)\n\n# Limitations\n\n* Security is iffy: specified line contains TURN credentials in plaintext, communication channel is unreliable and insecure (basically raw UDP packets)\n* TURN client implementation is simplified - does not check authentity of TURN server and may be no production-ready. I haven't read the RFC in full while implementing it.\n* Unconnected channels expire relatively quickly\n* After connecting, an endpoint cannot be moved to next host anymore (in this implementation)\n\n## Installation\n\nDownload a pre-built executable from [Github releases](https://github.com/vi/turntie/releases) or install from source code with `cargo install --path crates/turntie-cli`  or `cargo install turntie-cli`.\n\n## Example\n\n```\nhostA$ turntie tie 203.0.113.65:3478  myuser  mypassword\neJwtj?REDACTED?kvUYOw==\neJwtj?REDACTED?xjF6Y=\n\nhostB$ turntie connect eJwtj?REDACTED?kvUYOw==\n\u003e 12345\n\u003c QQQQQ\n^C\n\nhostC$ turntie connect eJwtj?REDACTED?xjF6Y=\n\u003c 12345\n\u003e QQQQQ\n^C\n```\n\nBoth `turntie connect`s should be running simultanesouly to work.\n\nFull unredacted specifiers are typically consist of about 150 base64 characters.\n\n## CLI options\n\n\u003cdetails\u003e\u003csummary\u003e turntie --help output\u003c/summary\u003e\n\n```\nUsage: turntie \u003ccommand\u003e [\u003cargs\u003e]\n\nUse TURN server as a communication channel with movable ends Top-level command.\n\nOptions:\n  --help            display usage information\n\nCommands:\n  tie               Create two allocation and return two specifier lines for\n                    their resumption\n  connect           Connect to one of the lines\n\n\nUsage: turntie tie \u003cturn_server\u003e \u003cusername\u003e \u003cpassword\u003e\n\nCreate two tied allocations and print two specifier lines for usage with 'turntie connect'.\n\nPositional Arguments:\n  turn_server       address of TURN server to create allocations in\n  username          username to authenticate on TURN server with\n  password          password to authenticate on TURN server with\n\nOptions:\n  --help            display usage information\n\nUsage: turntie connect \u003cspecifier\u003e\n\nConnect to one of the endpoints created by 'turntie tie' and exchange stdin/stdout lines with the peer which connected to the other endpoint.\n\nPositional Arguments:\n  specifier         serialized data describing the channel end\n\nOptions:\n  --help            display usage information\n\n\n```\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fturntie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fturntie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fturntie/lists"}