如何为WebRTC保护TURN服务器? [英] How to secure a TURN server for WebRTC?
本文介绍了如何为WebRTC保护TURN服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装了rfc5766-turn-server( https://code. google.com/p/rfc5766-turn-server/),以中继我的WebRTC调用.
I've just installed rfc5766-turn-server (https://code.google.com/p/rfc5766-turn-server/) on an Amazon server in order to relay my WebRTC calls.
由于身份验证用户名和密码将分配给WebRTC iceServers
中的每个客户端,因此如何确保仅我的客户端使用我的TURN中继呼叫?
Since authentication username and password will be distributed to every client in WebRTC iceServers
, how can I ensure that only my clients use my TURN to relay their call?
推荐答案
您可以改用 https://code.google.com/p/coturn/.它是从rfc5766-turn-server项目演变而来的.
You can use this instead https://code.google.com/p/coturn/. It's evolved from rfc5766-turn-server project.
支持的TURN身份验证机制:
Supported TURN authentication mechanisms:
- 经典"长期凭证机制;
- TURN REST API(用于WebRTC应用程序的限时基于秘密的身份验证的长期机制的修改: 查看全文