{"id":13563285,"url":"https://github.com/gortc/gortcd","last_synced_at":"2026-01-14T17:39:37.729Z","repository":{"id":45714604,"uuid":"136766632","full_name":"gortc/gortcd","owner":"gortc","description":"Fast TURN and STUN server: cross-platform, hot reload, flexible config","archived":true,"fork":false,"pushed_at":"2020-11-01T12:46:30.000Z","size":20030,"stargazers_count":387,"open_issues_count":11,"forks_count":43,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-03T19:40:16.074Z","etag":null,"topics":["go","golang","gortc","nat","nat-traversal","stun","stun-server","turn","webrtc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gortc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-10T00:05:48.000Z","updated_at":"2025-03-20T18:05:57.000Z","dependencies_parsed_at":"2022-09-26T18:20:49.231Z","dependency_job_id":null,"html_url":"https://github.com/gortc/gortcd","commit_stats":null,"previous_names":[],"tags_count":95,"template":false,"template_full_name":null,"purl":"pkg:github/gortc/gortcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gortc%2Fgortcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gortc%2Fgortcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gortc%2Fgortcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gortc%2Fgortcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gortc","download_url":"https://codeload.github.com/gortc/gortcd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gortc%2Fgortcd/sbom","scorecard":{"id":441696,"data":{"date":"2025-08-11","repo":{"name":"github.com/gortc/gortcd","commit":"ca07d72818639fbcc103238d9f51624485d7c2a4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":8,"reason":"5 out of the last 5 releases have a total of 5 signed artifacts.","details":["Info: signed release artifact: gortcd-0.20.3-checksums.txt.sig: https://github.com/gortc/gortcd/releases/tag/v0.20.3","Info: signed release artifact: gortcd-0.20.0-checksums.txt.sig: https://github.com/gortc/gortcd/releases/tag/v0.20.0","Info: signed release artifact: gortcd-0.19.1-checksums.txt.sig: https://github.com/gortc/gortcd/releases/tag/v0.19.1","Info: signed release artifact: gortcd-0.19.0-checksums.txt.sig: https://github.com/gortc/gortcd/releases/tag/v0.19.0","Info: signed release artifact: gortcd-0.18.7-checksums.txt.sig: https://github.com/gortc/gortcd/releases/tag/v0.18.7","Warn: release artifact v0.20.3 does not have provenance: https://api.github.com/repos/gortc/gortcd/releases/22566393","Warn: release artifact v0.20.0 does not have provenance: https://api.github.com/repos/gortc/gortcd/releases/18888505","Warn: release artifact v0.19.1 does not have provenance: https://api.github.com/repos/gortc/gortcd/releases/17590055","Warn: release artifact v0.19.0 does not have provenance: https://api.github.com/repos/gortc/gortcd/releases/17589983","Warn: release artifact v0.18.7 does not have provenance: https://api.github.com/repos/gortc/gortcd/releases/17420231"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:latest to golang:latest@sha256:9e56f0d0f043a68bb8c47c819e47dc29f6e8f5129b8885bed9d43f058f7f3ed6","Warn: containerImage not pinned by hash: e2e/coturn-client/client.Dockerfile:2","Warn: containerImage not pinned by hash: e2e/coturn-client/client.Dockerfile:14: pin your Docker image by updating gortc/coturn to gortc/coturn@sha256:81d2222659a092616f0c09d3f4e2ca243af67165145120a99ce44d8bbadfd027","Warn: containerImage not pinned by hash: e2e/coturn-client/server.Dockerfile:2","Warn: containerImage not pinned by hash: e2e/coturn-client/tcpdump.Dockerfile:1: pin your Docker image by updating ubuntu to ubuntu@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c0322aaf20f9","Warn: containerImage not pinned by hash: e2e/gortc-stun/server.Dockerfile:1: pin your Docker image by updating golang:1.12 to golang:1.12@sha256:d0e79a9c39cdb3d71cc45fec929d1308d50420b79201467ec602b1b80cc314a8","Warn: containerImage not pinned by hash: e2e/gortc-stun/stun-client/Dockerfile:2","Warn: containerImage not pinned by hash: e2e/gortc-stun/tcpdump.Dockerfile:1: pin your Docker image by updating ubuntu to ubuntu@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c0322aaf20f9","Warn: containerImage not pinned by hash: e2e/gortc-turn/server.Dockerfile:1: pin your Docker image by updating golang:1.12 to golang:1.12@sha256:d0e79a9c39cdb3d71cc45fec929d1308d50420b79201467ec602b1b80cc314a8","Warn: containerImage not pinned by hash: e2e/gortc-turn/turn-client/Dockerfile:2","Warn: containerImage not pinned by hash: e2e/webrtc-chrome/Dockerfile:2","Warn: containerImage not pinned by hash: e2e/webrtc-chrome/Dockerfile:11: pin your Docker image by updating yukinying/chrome-headless-browser to yukinying/chrome-headless-browser@sha256:1cf08f11e9f99a09888a4767f2cf938111fcf1ec7a53910dc59304e7b5d6deed","Warn: containerImage not pinned by hash: e2e/webrtc-chrome/server.Dockerfile:2","Warn: containerImage not pinned by hash: e2e/webrtc-chrome/signaling.Dockerfile:2","Warn: containerImage not pinned by hash: e2e/webrtc-chrome/tcpdump.Dockerfile:1: pin your Docker image by updating ubuntu to ubuntu@sha256:7c06e91f61fa88c08cc74f7e1b7c69ae24910d745357e0dfe1d2c0322aaf20f9","Warn: containerImage not pinned by hash: releaser/Dockerfile:1: pin your Docker image by updating golang:latest to golang:latest@sha256:9e56f0d0f043a68bb8c47c819e47dc29f6e8f5129b8885bed9d43f058f7f3ed6","Warn: goCommand not pinned by hash: Dockerfile:6","Info:   0 out of  16 containerImage dependencies pinned","Info:   6 out of   7 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-q7pp-wcgr-pffx","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2020-0036 / GHSA-wxc4-f4m6-wwqv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T05:44:04.370Z","repository_id":45714604,"created_at":"2025-08-19T05:44:04.370Z","updated_at":"2025-08-19T05:44:04.370Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","golang","gortc","nat","nat-traversal","stun","stun-server","turn","webrtc"],"created_at":"2024-08-01T13:01:17.328Z","updated_at":"2026-01-14T17:39:37.712Z","avatar_url":"https://github.com/gortc.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Master status](https://tc.gortc.io/app/rest/builds/buildType:(id:gortcd_MasterStatus)/statusIcon.svg)](https://tc.gortc.io/project.html?projectId=gortcd\u0026tab=projectOverview\u0026guest=1)\n[![codecov](https://codecov.io/gh/gortc/gortcd/branch/master/graph/badge.svg)](https://codecov.io/gh/gortc/gortcd)\n[![GitHub release](https://img.shields.io/github/release/gortc/gortcd.svg)](https://github.com/gortc/gortcd/releases/latest)\n# gortcd\nThe gortcd is work-in-progress TURN [[RFC5776](https://tools.ietf.org/html/rfc5766)] and STUN [[RFC5389](https://tools.ietf.org/html/rfc5389)] server implementation in go.\nAs part of [gortc](https://gortc.io) project, gortcd shares\nit's [goals](https://gortc.io#goals) and\n[principles](https://gortc.io#principles).\nBased on [gortc/stun](https://github.com/gortc/stun) package.\n\nThe goal is [feature parity](https://github.com/gortc/gortcd/issues/6) with [coturn](https://github.com/coturn/coturn).\nPlease use only for experiments until [beta](https://github.com/gortc/gortcd/milestone/2).\n\n\n# Install\nSee [releases](https://github.com/gortc/gortcd/releases/latest) for latest\nbinaries and packages or [snapshot](https://tc.gortc.io/viewType.html?buildTypeId=gortcd_snapshot\u0026guest=1)\nartifacts for bleeding-edge ones.\n\n## PIE version\nNote that `gortcd-*-linux-arm64.tar.gz` archive also contains the\n`gortcd-pie` binary which is [position-independent](https://en.wikipedia.org/wiki/Position-independent_code)\nexecutable version. The `gortcd-pie` is installed with `gortcd-*-linux-arm64.deb`\ntoo, but not used by default.\n\n## Configuration\nPlease see [gortc.yml](https://github.com/gortc/gortcd/blob/master/gortcd.yml)\nfor configuration tips. Server listens on all available interfaces by default,\nSTUN is public, TURN is private and no credentials are valid (nobody can't auth).\nSend `SIGUSR2` to reload config or use `gortcd reload` command (not all\noptions support live config reload).\n\nServer searches for `gortc.yml` in current directory, in the\n`/etc/gortcd/` and in home directory.\n```yml\nauth:\n# Put here valid credentials.\n# So, if you are passing to RTCPeerConnection \n# something like that: \n#  {\n#    urls: \"turn:turnserver.example.org\",\n#    username: \"webrtc\",\n#    credential: \"turnpassword\"\n#  }\n# Use the following:\n  static:\n    - username: webrtc\n      password: turnpassword\n```\nIf you want TURN without auth, set `auth.public` to `true`.\n\n## Docker\n[![](https://images.microbadger.com/badges/image/gortc/gortcd.svg)](https://microbadger.com/images/gortc/gortcd \"Get your own image badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/version/gortc/gortcd.svg)](https://microbadger.com/images/gortc/gortcd \"Get your own version badge on microbadger.com\")\n[![Docker Pulls](https://img.shields.io/docker/pulls/gortc/gortcd.svg)](https://hub.docker.com/r/gortc/gortcd/)\n\nThe gortcd docker image is automatically built on every release from\nthe `release.Dockerfile` which is based on `scratch`. Also each release\nis available as separate tagged image, e.g. `gortc/gortcd:v0.5.1`.\n\n```bash\n# Run with default config:\n$ docker run --name turn -d -p 3478:3478/udp gortc/gortcd\n\n# You can supply custom config file, for example `gortcd.yml` \n# from current directory:\n$ docker run --name turn -d -p 3478:3478/udp \\\n  -v $(pwd)/gortcd.yml:/etc/gortc/gortc.yml \\\n  gortc/gortcd --config /etc/gortc/gortc.yml\n  \n# To allow gortcd to listen directly on your public interface instead\n# of using docker port publishing, pass --net=host to docker run.\n$ docker run --name turn --net=host -d -p 3478:3478/udp  \n```\n\n# Supported specifications\n\nTURN specs:\n\n  * RFC 5766 - base TURN specs\n\nSTUN specs:\n\n  * RFC 5389 - base \"new\" STUN specs\n  * RFC 5769 - test vectors for STUN protocol testing\n\n\nThe implementation fully supports the following client-to-TURN-server protocols:\n\n  * UDP (per RFC 5766)\n\n\nSupported relay protocols:\n\n  * UDP (per RFC 5766)\n\nSupported message integrity digest algorithms:\n\n  * HMAC-SHA1, with MD5-hashed keys (as required by STUN and TURN standards)\n\nSupported TURN authentication mechanisms:\n\n  * 'classic' long-term credentials mechanism;\n\nProject supports all platforms that [supports](https://github.com/golang/go/wiki/MinimumRequirements#minimum-requirements) go.\n\n# Benchmarks\n\nCurrently server is under active development, but some benchmarks are\nalready available. The [stun-bench](https://github.com/pion/stun/blob/master/cmd/stun-bench/main.go)\nis simple stun benchmark that performs binding request transactions.\n\nResults for gortcd v0.17.4 on Ubuntu 16.04, client and server share one\nmachine with Intel 8700k CPU:\n```bash\n$ ./stun-bench -w 50 -d 5s\nworkers started\nrps: 580606\ntotal: 2903188\n```\nThe memory consumption was constant `13 348kb`.\n\nJust to compare, the coturn:\n```bash\n$ ./stun-bench -w 50 -d 5s\nworkers started\nrps: 627709\ntotal: 3138656\n```\nThe memory consumption was constant `15 068kb`.\n\nPlease interpret results carefully, the coturn server is much more\nfunctional.\n\n# Testing\n\nServer behavior is tested and verified in many ways:\n  * End-To-End with long-term credentials\n    * **webrtc**: Two browsers using gortcd as relay for WebRTC data channels (linux)\n    * **gortc**: The [gortc/turn](https://github.com/gortc/turn) client (windows)\n    * **coturn**: The coturn [uclient](https://github.com/coturn/coturn/wiki/turnutils_uclient) (linux)\n  * Bunch of code static checkers (linters)\n  * Standard unit-tests with coverage reporting (linux {amd64, **arm**64}, windows)\n\nSee [TeamCity project](https://tc.gortc.io/project.html?projectId=gortcd\u0026guest=1) and `e2e` directory\nfor more information. Also the Wireshark `.pcap` files are available for some of e2e tests in\nartifacts for build.\n\n# Artifact origin verification\nEach release is signed with [PGP key](https://keybase.io/ernado) `1D14 A82D 2E31 1045`.\n```bash\n$ gpg --keyserver keyserver.ubuntu.com --recv 2E311045\n$ gpg --decrypt gortcd-*-checksums.txt.sig\n\n# to check gortcd-*-linux-amd64.deb:\n$ grep -F \"$(sha256sum gortcd-*-linux-amd64.deb)\" gortcd-*-checksums.txt\n4316f8f7b66bdba636a991198701914e12d11935748547fca1d97386808ce323  gortcd-0.4.0-linux-amd64.deb\n```\n\n# Monitoring\nYou can export metrics in prometheus format:\n```yaml\nserver:\n  prometheus:\n    addr: localhost:9200\n```\n```bash\n$ curl http://localhost:9200/metrics\n```\n```bash\n# HELP gortcd_allocation_count Total number of allocations.\n# TYPE gortcd_allocation_count gauge\ngortcd_allocation_count{addr=\"159.69.47.227:3478\"} 0\n# HELP gortcd_binding_count Total number of bindings.\n# TYPE gortcd_binding_count gauge\ngortcd_binding_count{addr=\"159.69.47.227:3478\"} 0\n# HELP gortcd_permission_count Total number of permissions.\n# TYPE gortcd_permission_count gauge\ngortcd_permission_count{addr=\"159.69.47.227:3478\"} 0\n```\n\n## Build status\n[![Build Status](https://travis-ci.com/gortc/gortcd.svg?branch=master)](https://travis-ci.com/gortc/gortcd)\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgortc%2Fgortcd.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgortc%2Fgortcd?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgortc%2Fgortcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgortc%2Fgortcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgortc%2Fgortcd/lists"}