Installing a TURN server on the BigBlueButton 2.6-beta server

813 views
Skip to first unread message

Fred Dixon

unread,
Dec 16, 2022, 8:37:33 AM12/16/22
to BigBlueButton-dev
Hi Everyone,

We've seen many posts in the past about administrators reporting that their users are receiving media errors (such as 1007) when trying to connect behind a restricted firewall.  

Many times, such firewalls restrict all outgoing connections to port 443, so the browser's attempt to make UDP connections to FreeSWITCH (audio) or mediasoup (video) will fail.

In the past, the solution was for the administrator to set up a separate TURN server for the BigBlueButton server, see


However, this requires running a separate server to run the TURN (coturn) software.  We've been asked over the years if it's possible to run the TURN server on the BigBlueButton server itself.

One of the projects we explored at the BigBlueButton Developer Summit in Berlin was to explore exactly this (thanks schrd!) .  Specifically, we explored using haproxy to listen on port 443 and proxy incoming packets: https packets for nginx and TURN packets for coturn.

You can see this work in


We now have it ready for you to test.

If you want to have BigBlueButton 2.6 installed with an integrated TURN server, when you run the bbb-install command, substitute 

for


That's it. 

Note, an alternative approach would be to setup a second hostname for the local TURN server and use nginx to proxy incoming requests based on the hostname. With using haproxy, there isn't any need for a second hostname.  

If you use the built-in TURN server, we recommend opening port 3478 on your BigBlueButton server as well



If your going to try upgrading an existing BigBlueButton 2.6-beta server, or try installing the latest release (just in time for beta-3!)


try using bbb-install-2.6-turn.sh and you should have less audio/video issues for users behind restricted firewalls.

Please let us know the results.

Regards,... Fred
 
--
BigBlueButton Developer

Like BigBlueButton?  Tweet us at @bigbluebutton

Hiroshi Suga

unread,
Dec 18, 2022, 10:36:44 PM12/18/22
to BigBlueButton-dev
That would be really helpful!

Fred Dixon

unread,
Jan 9, 2023, 7:49:13 AM1/9/23
to bigblueb...@googlegroups.com
Hi everyone,

We have been testing and making updates to bbb-install-2.6-turn.sh over the past month.  The recent work has been to make the install of BigBlueButton + TURN work on an Amazon EC2 instance (which has public/private IP addresses).

We'd like to get some more help testing this configuration.  If anyone would like to spin up a fresh Ubuntu 20.04 on EC2, assign it a host name, and test the latest BigBlueButton 2.6-beta + TURN server, we'll like to get your feedback.

If we can get this to work, then it will reduce the audio/video connection issues and costs for setting up BigBlueButton 2.6.

Regards,.. Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/58a5dc3a-26b6-4f58-ae06-06a88e032d78n%40googlegroups.com.
Message has been deleted

Yiğit ÇÖME

unread,
Jan 10, 2023, 12:34:23 PM1/10/23
to BigBlueButton-dev
Hi Fred,
I tried the feature you mentioned.It was very efficient in terms of performance.Recently, our need for additional turn server usage has increased.CPU and ram consumption seems very low.
Thanks for this feature. 

9 Ocak 2023 Pazartesi tarihinde saat 15:49:13 UTC+3 itibarıyla Fred Dixon şunları yazdı:
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages