Why BigBlueButton behind NAT breaks for some users and how to plan around it
If your BigBlueButton server has a private address or sits behind a perimeter firewall, TCP 80 and 443 and UDP 16384 to 32768 must still be reachable from the users who join meetings. BigBlueButton also recommends a TURN server for users behind restrictive firewalls, since TURN is the fallback when direct media paths are blocked. Media traffic depends on the network path, not only on the web page: the room loads over HTTPS, but audio and video travel over the UDP range, so a user can see the session and still hear nothing. This matters most in three cases: servers that are internal-only, cloud instances with a public address that is mapped to a private interface, and campuses or enterprises where inspection devices sit on the path and may block or alter UDP traffic.
This page covers three decisions: which ports to open and from where, which external IP settings the media servers need so they advertise an address that clients can reach, and when to deploy TURN and for which users. It does not cover full firewall design, such as segmentation policy, inspection rules or appliance configuration. Your network team owns those, so bring them the port list and traffic direction before the install starts. Ask them to confirm that the full UDP range is open in both directions on the path users take, not only on the server. A partial opening usually produces intermittent failures that look like client problems, so test from outside the network after every change.
Make three decisions before you run the installer. First, decide whether every user can reach the server directly or whether a share of users will need a relay, since that determines whether TURN is a requirement or a safety net. Second, decide the hostname and certificate for the public address, because BigBlueButton needs a valid hostname for SSL and the external IP must match the address clients resolve. Third, decide who operates the TURN host if you deploy one, since it is a separate machine with its own certificate and shared secret. The BigBlueButton install docs list the requirements for the server itself.
How browser traffic reaches BigBlueButton through the firewall and TURN
This diagram follows a browser from a remote home or office network to a BigBlueButton server on a private address behind a perimeter firewall. Web pages and API calls use TCP 80 and 443, which the firewall forwards to the server. Audio and video use UDP 16384 to 32768, and that range must also reach the server through NAT. When the direct media path is blocked, the browser can relay through an optional TURN host. The exact media path depends on the media server in your version, so confirm it for your release before you write firewall rules.
Browser traffic crosses the firewall on web ports, media ports or a TURN relay.
BigBlueButton NAT options and when each fits
This table compares four ways to place a BigBlueButton server relative to NAT and firewalls, listing what must be reachable, who each option fits and its main trade-off. Use it to shortlist a pattern, then confirm the ports against your firewall policy before choosing. The BigBlueButton install docs give 250 Mbit/s symmetrical bandwidth as the baseline for each server, and that baseline applies to every option.
| Option | What must be reachable | Who it fits | Main trade-off |
|---|---|---|---|
| Public address with open ports | TCP 80 and 443 and UDP 16384 to 32768 reachable from the internet, plus a valid hostname for SSL | Organizations hosting in a public data center or cloud with a public address and external guests | Every media port faces the internet, so host hardening and firewall scope carry the full exposure |
| NAT with port forwarding to a private server | TCP 80 and 443 and UDP 16384 to 32768 forwarded from the public address to the private server, with external IP settings matching it | Sites with a fixed public address and a perimeter firewall they manage, hosting on private addressing | The forwarded UDP range must match on both sides, and a changed public address breaks media until settings are updated |
| Private-network-only deployment | Only internal clients on the private network, plus outbound package access for updates | Internal staff or students only, with no external guests | Remote users need a route in, such as a VPN or a TURN host, and certificate and DNS checks must work internally |
| Separate TURN host for restrictive firewalls | A TURN host with its own hostname and certificate, reachable by users behind restrictive firewalls, while the BigBlueButton server keeps its own ports | Users on networks that block the UDP media range, with the BigBlueButton server on a private or NAT address | An extra host to patch and size, and relayed media needs its own bandwidth plan beyond the 250 Mbit/s server baseline |
Required ports and network requirements for BigBlueButton servers
A BigBlueButton server behind NAT or a corporate firewall needs a small set of reachable ports, a hostname that certificates can be issued for, and enough bandwidth for the meetings it hosts. The cards below cover each requirement and the checks to make before you write firewall rules or choose a public address. Confirm the final list against the install docs for your exact version.
Web access on TCP 80 and 443
Users reach the BigBlueButton web front end over TCP ports 80 and 443, so both must be forwarded from the public address to the server's private address. If either port is blocked, the join page fails for users even when media ports are open. Check that no reverse proxy, load balancer or web filter on the path intercepts or rewrites these connections. Confirm in the install docs whether your certificate method needs port 80 during issuance and renewal.
Media on UDP 16384 to 32768
Audio, video and screen sharing media travel over UDP ports 16384 to 32768, and this range must be open through both the firewall and the NAT device in front of the server. A rule set that covers only TCP leaves the media path closed, so meetings may load but fail to carry voice or video. Forward the whole range to the server's private address and confirm that no other service on the host uses these ports. Confirm in the install docs whether your version needs any ports beyond these, and whether your rules must apply in both directions.
Install docsValid hostname for SSL
BigBlueButton requires a valid hostname for SSL, so the server needs a fully qualified domain name that resolves in DNS and that a certificate authority can validate. Behind NAT, the public DNS record must point to the public address of the firewall or NAT device, and the certificate must match that name. Decide the name before the install, since renaming a server later means reissuing its certificate. If internal users use the same name on a split-horizon DNS, confirm that the internal record resolves to the private address.
Symmetrical bandwidth per server
The install docs call for 250 Mbit/s symmetrical bandwidth per BigBlueButton 4.0 server, which means upload and download capacity should be matched. Check the uplink at the perimeter, because the office circuit or firewall throughput may be lower than the server's network interface speed. Ask your internet provider to confirm capacity in both directions for the site, and count the video and screen sharing your typical meeting load will use against the total. Confirm the figure against the install docs for your version before you size the circuit.
Docker for document conversion
Docker runs the sandboxed LibreOffice service that converts uploaded presentations and documents, and this process runs locally on the server. Because it is a local process, it needs no inbound port in the firewall rules. Check that your change policy allows Docker on the host, and that the server can reach the package sources it needs during installation if outbound access is restricted. Confirm the Docker version and settings your release expects in the install docs.
Setting external IP options for servers with private addresses
Most cloud providers attach a public address to an instance without placing it on the operating system's network interface. The server sees only its private address, so BigBlueButton can advertise an address that outside clients cannot reach unless you declare the public one. The server must present the address clients actually connect to, because media setup depends on it.
- Public hostname: Point the hostname at the public address in external DNS, and confirm that the certificate covers the same name.
- External IP setting: Set the option to the public address, and confirm the exact key in the install docs for your version.
- Cloud firewall: Open TCP 80 and 443 and UDP 16384 to 32768 in the security group, and confirm that host firewall rules match.
- Address changes: Confirm whether the public address survives a stop and start, and update the setting and DNS record if it changes.
- Media test: Join a call from a network outside the provider with audio and camera on, and confirm the media connects.
Before go-live, check that the hostname resolves to the public address from outside and that the external test call carries audio and video.
A server behind 1:1 NAT or port forwarding has a private address that the firewall translates to a public one. Clients reach the public side, while BigBlueButton only knows its local interface, so the external address must be declared for media to answer the right place. The translation layer is the part most often misconfigured, so verify each mapping before assuming it works.
- 1:1 NAT mapping: Confirm the public address maps one-to-one to the server's private address, and that no other service shares the mapping.
- Port forwarding: Forward TCP 80 and 443 and the full UDP range from 16384 to 32768 to the server, and confirm no port in that range is blocked along the path.
- Perimeter and host firewall: Allow the same ports at both layers, and confirm outbound UDP from the server reaches clients.
- Hairpin access: Test whether internal users can reach the public hostname from inside. If the firewall cannot loop traffic back, plan split DNS as described in the split DNS tab.
- External IP setting: Set the option to the public address the firewall presents, and confirm the exact key in the install docs for your version.
Check that the public hostname resolves to the firewall's public address from outside, then run an external test call and confirm that audio and video both connect.
Split DNS returns different answers for the same hostname depending on the network that asks. Internal clients resolve it to the private address, and external clients resolve it to the public address. Internal media stays on the local network, and both audiences can use one certificate name. The server still needs its external address declared so that media from outside is answered correctly.
- Zone design: Maintain an internal and a public zone for the same name, and confirm internal clients never receive the public record for that name.
- Certificate names: Use one hostname on the certificate that both zones serve, and confirm the chain validates from an internal and an external client.
- VPN and remote staff: Confirm which resolver remote users receive, since VPN clients may use the internal zone or the public one depending on configuration.
- TTL and changes: Plan record TTLs around any address change, and confirm clients pick up a changed record within the window you set.
- External IP setting: Declare the public address so external media is answered correctly, and confirm the exact key in the install docs for your version.
Check the hostname from an internal host, an external network and a VPN client, and confirm each returns the address you intended.
When BigBlueButton users need TURN behind restrictive firewalls
A TURN server relays media between a user and BigBlueButton when no direct network path can be opened, for example when a firewall allows outbound HTTPS but blocks the UDP media range. The install documentation recommends TURN for users behind restrictive firewalls, so the real decision is which users would fail without it. Start with a list of who joins and from where: staff and students on campus or corporate networks that run traffic inspection or block UDP, remote staff on home connections, guests on visitor Wi-Fi, and mobile users who move between cellular and Wi-Fi. Each group behaves differently. For each one, record the network type, whether outbound UDP reaches the internet, and whether a proxy or inspection appliance rewrites or blocks the traffic.
A TURN host is another system you own. It needs its own hostname and certificate, a patch routine, hardening, monitoring, and a place in your perimeter design, because it accepts connections from the internet. Relayed media passes through it, so every relayed participant adds bandwidth and CPU load to that host. A single TURN server shared by several BigBlueButton servers concentrates that load, so plan its bandwidth against the number of relayed sessions you expect at peak. Measure this on your own hardware before you size it. The build steps, including the shared secret and ports, are in Setting up a coturn TURN server for BigBlueButton. Review the TURN host in the same change as the BigBlueButton server design so that both are approved together.
Test before you commit to a design. Join a meeting from each network type on your list, using the browsers and devices your users actually carry, and check whether audio and video connect directly or through the relay. The WebRTC statistics in the browser show which candidate type carried the media. Include a mobile carrier connection and a guest network, because restrictive policies differ most at those edges. Record the results against your list and decide, group by group, whether TURN is required, optional or unnecessary. Repeat the tests after any firewall or proxy policy change, since inspection rules often change without notice to the teams that run the meeting service.
Setting up BigBlueButton behind NAT and firewalls, step by step
This sequence takes a BigBlueButton 4.0 server from a private address behind a perimeter firewall to a deployment that outside users can join with audio and video. It covers network mapping, DNS, ports, the external address, installation, the TURN decision and an external test meeting. Each step ends with a check so the team knows whether it can move on.
Map the network path and public address
The team that owns the perimeter firewall and the NAT device lists every hop between the internet and the BigBlueButton server, then records the public address that outside clients will reach. Confirm which public address maps to the server's private address and whether that mapping is static, since a changing address breaks DNS and the external address setting later. Ask your ISP or cloud provider to confirm the address assignment in writing. Done when a diagram shows the private address, the public address and each device that forwards traffic, and the network owner has reviewed it.
Create and test the DNS hostname
Create a DNS record for the hostname that users and the SSL certificate will use, pointing to the public address from the previous step. BigBlueButton needs a valid hostname for SSL, so choose a name you control and can publish. Then query the name from a machine inside the network and from a machine outside it, such as a phone on a mobile connection. Check TTL values and internal resolver caching before the install, so a stale record does not block the certificate request. Done when both lookups return the public address, or when internal resolvers return a deliberate private answer that you have documented.
Open TCP and UDP ports on the firewall and NAT
On the perimeter firewall and the NAT device, allow inbound TCP 80 and TCP 443 to the server's private address, along with UDP 16384 through 32768 for media. Every device between the internet and the server needs a matching rule, because the UDP range is easy to miss on an intermediate device. Confirm that the NAT forwards the same ports to the same private address and that no rule restricts the UDP range by source. Done when the network owner has a rule list that matches this step and a port check from an external host shows TCP 80 and 443 reach the server. A simple port scan cannot confirm UDP, so the media check comes in the final step.
Prepare a clean Ubuntu 24.04 server
Start from a clean Ubuntu 24.04 64-bit server. BigBlueButton 4.0 installs on that platform, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a fresh host is the supported starting point. The install docs list at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 500 GB of disk for recordings (50 GB without recording) and 250 Mbit/s symmetrical bandwidth. Confirm the server meets these figures before you go further, and confirm that it can reach its package sources. Done when the OS release reports Ubuntu 24.04, the system is 64-bit, and the resource checks match the docs.
Set the external address for media
Set the external address on the server according to the BigBlueButton 4.0 install documentation, so media is advertised with the public address that clients can reach. Use the public address from the first step, because the interface address on a NAT host is private. Confirm the exact setting and the procedure in the 4.0 install docs before you edit anything, since the procedure is specific to the release. Done when the configuration shows the public address and the server's private address is handled the way the docs describe.
Install BigBlueButton with bbb-install.sh
Run bbb-install.sh with the hostname from the DNS step, using the options your plan calls for. The script can also add Greenlight or LTI support to the same server, so decide now whether you need either. The install docs describe the full set of options and the requirement that Docker is present for sandboxed LibreOffice document conversion. Done when the installer finishes without errors, the BigBlueButton services report as running, and the hostname serves the front page over HTTPS from inside the network.
Decide whether users need TURN
Decide whether users need a TURN server. The install docs recommend TURN for users behind restrictive firewalls, so list the networks your users join from, such as campus or corporate networks with strict outbound rules. Test a join from one of those networks before you decide. If TURN is needed, plan a separate server with its own hostname and certificate, and follow the dedicated TURN setup guide. Done when you have a written decision, the result of the restricted network test, and either a TURN build plan or a note that TURN is not needed for your users.
Verify with an external test meeting
From a network outside your perimeter, such as a mobile hotspot, open the hostname, create a test meeting and join with audio and video. Ask a second participant to join, then check that the microphone and camera work, that remote video appears and that slides load. Watch the firewall logs during the test to confirm that media traffic passes through the UDP range. Done when audio and video run for the whole test. If audio fails, check the UDP range first, then the external address from the earlier step. Record the date, the network used and the result.
Security risks of exposing BigBlueButton media through a firewall
Every firewall rule that lets BigBlueButton work also creates a path into the server, so each opening needs a reason and an owner. The cards below cover the openings, the API secret, certificates, the TURN host, logs and change records that keep them under control. Review them together before the firewall team approves a change.
Open only the documented UDP range
BigBlueButton media runs over UDP ports 16384 to 32768, and this range is usually the largest opening a firewall team adds. Every port in an open range is reachable from the internet, so a wide rule widens what an attacker can probe. Request the range exactly as the install documentation lists it, and do not add broad UDP allowances for convenience. After each install, scan from outside the network to confirm that no other UDP service is reachable.
BigBlueButton install docsProtect the API shared secret
Every BigBlueButton API call carries a checksum computed from a secret shared with the server. The default algorithm is SHA-256, SHA-1 remains for legacy use, and SHA-384 or SHA-512 are available since version 2.5. Firewall work often involves the systems that call the API, so keep the secret out of any web page, browser script or shared ticket. Confirm that your front end and LMS integrations read the secret from server-side configuration only.
BigBlueButton API docsManage the hostname and certificate
BigBlueButton needs a valid hostname for SSL, and TCP ports 80 and 443 must be reachable so that certificates can be issued and renewed. Behind NAT, the public DNS name must point to the firewall's public address, and the forwarding rules must reach the server that holds the certificate. Confirm who owns the DNS record, when the certificate expires and how renewal is tested after a firewall change. An expired certificate can block joins for everyone at once.
Treat the TURN host as its own exposure
A TURN server is recommended for users behind restrictive firewalls, and it is a second public service with its own hostname, certificate and firewall rules. It relays media for clients that cannot connect directly, so do not assume it shares the openings made for the BigBlueButton server. Confirm which ports it listens on, which networks may reach it and which BigBlueButton servers it serves. Track its credentials and certificate as separate items in your inventory.
Log failed joins and unusual traffic
Failed joins, rejected API requests and unusual traffic patterns are often the first signs that a firewall opening is being probed or misused. Decide before go-live which logs you keep, where they go and who reviews them, then test that a rejected join appears in them. Check whether your firewall logs denied UDP attempts against the media range, since that volume is easy to lose in routine noise. Set retention to match your own policy and confirm it with your security team.
Put firewall edits under change control
Each firewall edit should record the rule, its business reason, the approver and the date it was made. After every change, run a test join from outside the network, confirm that audio and video work and check that no unrelated port opened. Keep the previous rule set so that a bad change can be reverted quickly. Review the BigBlueButton rules again whenever the server is upgraded, moved or given a new TURN host.
Limits to confirm before you change firewall rules
This page does not settle every firewall question, and five items need confirmation before you edit rules on a production server. First, confirm the exact external IP configuration keys for your media servers and whether any of them changed in the 4.0 release. Check the settings against the documentation for the version you install, because the key names and file locations determine where your public address must go. Second, confirm every port your version uses beyond the documented TCP 80 and 443 and UDP 16384 to 32768 range. Open only the ports that the install documentation lists for your release, and record the source of each rule so reviewers can trace it later.
Third, find out whether a corporate proxy or traffic inspection device sits on the media path. Such devices may handle web traffic well but still interfere with WebRTC media, which relies on UDP, so test audio and video from a network segment where inspection is enabled. Fourth, compare the upload bandwidth available at the site with the documented requirement of 250 Mbit/s symmetrical for a 4.0 server. Office connections often advertise download speed while upload is far lower, so measure upload under realistic meeting load. Fifth, confirm whether a load balancer such as Scalelite sits in front of your servers, and read its own documentation for how it expects public addresses and ports to be set.
Plan a lab test before any production change window. Build a test environment with the same network layout as production, including the NAT or firewall device, the same proxy path and the same external address settings. Then join test meetings from inside the corporate network, from a remote user and from a mobile connection. Record which ports open, which calls fail and what audio and video quality the testers observe. Keep the previous firewall configuration so you can roll back, and name the person who makes the rollback decision before the window opens. If the lab cannot reproduce the proxy or bandwidth conditions, treat that gap as an open risk until someone tests it under those conditions.
Questions buyers ask about BigBlueButton behind NAT and firewalls
Can our own team set up BigBlueButton behind NAT and firewalls?
Yes, if your team has Linux server administration skills, a way to get firewall changes approved, and someone who can test media from outside the network. The install follows the documented path on Ubuntu 24.04 64-bit, and the NAT work adds three things: the public address the media servers advertise, the inbound and outbound ports that must reach them, and a decision on TURN for users on restrictive networks. A single server with a cooperative network team is often manageable in-house. Several sites, several firewall vendors or strict change control usually make the work harder to plan. Before you decide, confirm who will own the change requests, who can read packet captures, and who will test a join from a guest network before users do. A partner can check those items against your firewall policy and document the result for your network and security teams.
What drives the effort of a BigBlueButton firewall project?
The main drivers are the number of sites and servers, how much control you have over the firewalls, whether TURN is needed, the hardware and network path, and how much testing is required:
- Number of sites and servers, each with its own public address mapping and port rules.
- Firewall access: whether the network team can open the required TCP and UDP ports directly or must go through a change process with several approvers.
- TURN: whether a separate relay host must be built, certificated and kept in step with each BigBlueButton server.
- Hardware and bandwidth: the BigBlueButton 4.0 server requirements, plus enough uplink capacity at each site for media.
- Testing: how many network types (office, guest Wi-Fi, home, mobile, VPN) must be proven before go-live.
Each driver changes the work differently, so ask the quote to show the effort for each one separately.
What do we need to provide for a NAT and firewall engagement?
Plan to provide firewall administrator access or a named person who can apply changes, DNS control for the hostnames and certificates, a current network diagram, and test accounts on test networks. In more detail:
- Firewall access: read access to the current rules and a named administrator who applies changes in agreed windows.
- DNS control: the ability to create the public and internal records that the BigBlueButton servers and any TURN host need.
- A network diagram showing public addresses, NAT points, perimeter firewalls, proxies and any VPN paths.
- Test accounts and test networks, including guest Wi-Fi, a remote staff connection and at least one mobile connection.
Missing items can hold up the work, so list who provides each one in the written scope before work starts.
How long does a BigBlueButton firewall and NAT project take?
The schedule depends on the written scope, and the main factors are change approval windows, the number of servers and sites, and how quickly your team can provide DNS records, firewall changes and test networks. One server with an open firewall path and existing DNS control moves much faster than several sites that each need a change request. Ask the plan to show which steps wait on your team, such as firewall windows, certificate issuance and test access, so you can see where time is spent. The timeline comes from the agreed scope and is confirmed in writing before work starts, so compare quotes on the same deliverables and the same dependencies.
Do we need a TURN server for BigBlueButton users behind firewalls?
You need TURN when some users sit behind firewalls that block direct media paths, and the BigBlueButton install documentation recommends a TURN server for users behind restrictive firewalls. Test before deciding: join from the networks your users actually use, such as hotel, school or corporate guest Wi-Fi, and check whether audio and video connect. If many users are on restrictive networks, a TURN relay usually becomes part of the design. A TURN server runs on its own host with its own hostname and certificate, and it shares a secret with each BigBlueButton server it serves. Remote staff on a VPN may not need it, but confirm that with a test rather than assuming it.
Does the NAT and firewall approach change on cloud instances?
The core ports stay the same on a cloud instance, but addressing and security group rules usually need extra attention because the public address is often mapped to a private interface. Check that the media servers advertise the public address clients actually reach, that the UDP media range is open in both the security group and any network access list, and that the public address stays attached after a restart. Cloud providers also charge for outbound traffic, so include bandwidth in the design and the quote. Amazon EC2 has its own deployment topic in this group, which covers instance sizing and security group rules in more detail.
Can we test BigBlueButton behind NAT and firewalls before go-live?
Yes, and testing before go-live is the main way to confirm the ports and addresses work from outside your network. A useful test plan covers a join from each network type your users use, a multi-user session with audio, camera and screen sharing, a session with recording enabled, and a failure test where one path is blocked to confirm the fallback behaves as expected. Ask whether tests run from the public internet as well as from inside the network, and whether the results are written up with the firewall rules that were tested. Plan a retest after any firewall or DNS change, because a rule change can break media even when the web pages still load.
How is the cost of a BigBlueButton firewall project built up?
Cost has three parts: the scope agreed for design and build, one-time setup work, and any recurring support or upgrades after go-live. The scope is driven by the number of servers, sites, TURN hosts, networks to test and firewall changes. One-time setup covers design, configuration, firewall and DNS changes, testing and documentation. Recurring items cover support, upgrades and retests after changes, which can be arranged as a retainer. DeployOpen does not publish a price list, and a quote follows from the written scope. Ask the quote to list each deliverable, who makes each firewall change, which items are one-time and which recur, what testing is included, and how changes requested after sign-off are priced.
How DeployOpen scopes and delivers BigBlueButton network work
DeployOpen plans and implements BigBlueButton inside your own infrastructure, including the network path that users and media servers take through NAT and corporate firewalls. Work starts from a written scope that sets out which ports, hostnames, certificates and TURN requirements apply to your environment. Delivery covers build, testing, documentation and handover, with ongoing support available as a retainer.
How we scope
- We confirm which hosts sit behind NAT and which ones face the internet, and map each to its role.
- The written scope lists the TCP 80 and 443 and UDP 16384 to 32768 rules your firewall team must allow.
- Scope also records whether TURN is needed for users on restrictive networks before any quote is issued.
How we build
- Builds start on a clean Ubuntu 24.04 64-bit server, because direct upgrades from 2.6, 2.7 or 3.0 are not supported.
- Hostname and SSL certificate are set up first, because the server needs a valid hostname for SSL.
- Media server external IP settings and TURN are configured together, then tested from inside and outside the perimeter.
How we hand over
- Handover includes a written record of open ports, DNS names, certificates and the TURN configuration as built.
- Tests cover joining from a browser on the internal network, a remote network and a restrictive network.
- Runbooks explain how to renew certificates, rotate the TURN shared secret and check the required ports after changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover firewall rule reviews when ports, hostnames or network paths change.
- Security testing of exposed BigBlueButton services can be scoped as a separate fixed-scope engagement.

