Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to secure a TURN server for 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.

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?

like image 838
jbescoyez Avatar asked Jan 22 '15 15:01

jbescoyez


Video Answer


1 Answers

You can use this instead https://code.google.com/p/coturn/. It's evolved from rfc5766-turn-server project.

Supported TURN authentication mechanisms:

  • 'classic' long-term credentials mechanism;
  • TURN REST API (a modification of the long-term mechanism, for time-limited secret-based authentication, for WebRTC applications: https://datatracker.ietf.org/doc/html/draft-uberti-behave-turn-rest-00)
  • experimental third-party oAuth-based client authorization option
like image 104
Abdulrazak Alkl Avatar answered Jan 25 '23 22:01

Abdulrazak Alkl