BigBlueButton firewall rules with UFW: which ports a host must open
A BigBlueButton 4.0 server on a public address needs TCP 80 and 443 and the UDP media range 16384 to 32768 reachable, limits SSH to the administrator addresses you name, and denies everything else at the host. The install documentation supplies those port sets as the reachability requirements, so this section does not treat any other port as required. The documentation does not list SSH, so that rule comes from your administration policy, and the admin address list should be written down before the rule is applied, because a lockout over SSH can end remote access to the server. Confirm with your own team which management tools, such as monitoring agents or backup jobs, need inbound access, and open only those. TURN is recommended for users behind restrictive firewalls, which adds a relay path covered by the coturn hardening work.
A host firewall such as UFW filters only the traffic that reaches the server's own interfaces. Cloud security groups, network access control lists, upstream routers and any appliance in front of the data center filter before traffic reaches the host, so a port closed in UFW may still be reachable from elsewhere, and a port opened in a cloud group may still be blocked by the host. Services bound to all interfaces are a second gap: a database, metrics endpoint or admin page listening on 0.0.0.0 accepts connections on the public address unless a host rule stops it. Docker can publish container ports in a way that bypasses UFW rules, so confirm how published ports behave on your build before you test. Treat the firewall as one layer and verify each boundary you control.
Three situations trigger this work: a new server, an audit finding, or a move into a new network. A new server should be a clean 4.0 installation, because the install documentation does not support direct upgrades from 2.6, 2.7 or 3.0, so the firewall baseline belongs in the build checklist from the start. An audit finding names a specific port or service, so record the listener, its process and its purpose before closing it. List every listener with ss -tulpn and compare the output with the rules you applied. Then scan the public address from a network that should be blocked and from an admin address that should still reach SSH. Keep the results with the change record so the next review can repeat the same test.
Which rule set choices change the attack surface and call quality
This table compares four firewall choices in a BigBlueButton UFW rule set: the UDP media range, SSH, TURN placement and SIP. Each option lists what it exposes, when it fits and what breaks if the choice is wrong. Read the rows in pairs, and treat the broader option in each pair as the one that needs a written reason before it reaches production.
| Option | What it exposes | When it fits | What breaks if it is wrong |
|---|---|---|---|
| UDP media, full range (16384 to 32768) | Every UDP port in the media range accepts inbound traffic, including ports no current meeting needs. | Early setups where the media path is not yet tested and the team wants to avoid closing a port that turns out to be needed. | Nothing functional breaks, but the host accepts more unused inbound traffic. Review it in the port check. |
| UDP media, only the range the layout uses | Only the sub-range that the chosen layout and TURN setup use accepts inbound media traffic. | Production hosts where the team has tested the media path and documented which ports it uses. | Audio or video fails for some users if a needed port is closed. Test from outside the network. |
| SSH open to any address | Port 22 accepts login attempts from anywhere, so every scan and brute-force attempt reaches the server. | Rarely appropriate for production. Use only while administrator addresses are still being confirmed. | Every login attempt reaches the server. Key-only login and regular patching then carry all the defense. |
| SSH limited to named admin networks | Port 22 accepts connections only from listed administrator addresses or ranges, and the list must be kept current. | Production hosts where administrators connect from fixed office or VPN addresses. | Administrators lose access when they change networks or VPNs. Keep a console or out-of-band recovery path. |
| TURN on the BigBlueButton host | The relay shares the host's public address, so relay traffic and meeting media land on the same machine. | Single-server setups where the host has spare capacity for relayed traffic on top of meeting media. | Relay traffic competes with meetings for CPU and bandwidth. Confirm capacity against the install requirements. |
| TURN on a separate relay host | The relay host has its own public address and firewall rules, so the BigBlueButton host does not carry relay traffic. | Larger or busier deployments where relay load should be isolated from meeting media. | Misconfigured relay rules block the fallback path for users behind strict firewalls. Test that path directly. |
| SIP open to any address | Dial-in gateway signaling accepts connections from anywhere, so anyone can probe the telephony path. | Rarely appropriate. Use only while the dial-in gateway's address is still unconfirmed. | Scanners and toll-fraud attempts reach the telephony path. Confirm the gateway's SIP port with your provider. |
| SIP limited to a named gateway | Only the listed gateway address can reach the SIP port, so other sources are dropped. | Dial-in through a known SIP provider or PBX with a fixed public address. | Calls fail if the provider's address changes. Confirm the address and port in writing with the provider. |
How traffic reaches the BigBlueButton host and which paths stay closed
The diagram starts outside the trust boundary, with users joining meetings in a browser and administrators connecting from an admin network. Both pass the cloud firewall layer in front of the host before reaching UFW, the enforcement point on the server. UFW admits the web front end on TCP 80 and 443, the UDP media range, and SSH only from the admin network. Anything else falls through to the default deny rule. Internal services should listen only on localhost or a private interface. To verify the design, scan the host from outside the network and list its listening sockets on the host itself.
Traffic enters through the cloud firewall, and UFW admits only the listed services.
Applying BigBlueButton firewall rules with UFW through apply-config.sh
This sequence locks a BigBlueButton host down to the ports it needs, in an order that keeps administrators from being locked out. Each step ends with a check, so you know the change worked before you move on. The result is a host that accepts only the planned inbound ports, confirmed from the host itself and from a network outside the admin range.
Inventory listening services and planned public ports
Run
ss -tulpnon the host to list every TCP and UDP socket with its owning process, then compare that list with the ports your deployment plan names. Each listener should map to a service you chose to run, such as nginx for TCP 80 and 443, the SSH daemon on TCP 22, and coturn if you run a TURN server. Any wildcard listener you cannot explain is a finding to resolve before firewall work starts. The step is done when a written list of listeners and intended public ports has been approved by the person who owns the server.Confirm the cloud firewall matches the plan
Export the security group or network firewall rules that apply to this instance, or the equivalent rules on your data center appliance, and compare them with the inventory. Traffic passes through both layers, so the cloud firewall and UFW should describe the same intent. Confirm that the inbound rules are limited to TCP 80 and 443, the UDP media range, and TCP 22 from the admin network. Ask your provider to confirm how their rule evaluation works if the documentation is unclear. The check is an exported rule list that matches the plan line by line.
Set UFW to deny incoming by default
Run
ufw default deny incomingandufw default allow outgoingas root or with sudo, and record the change in your change log. Default policies apply only to traffic that no explicit rule matches, and they take effect once UFW is enabled, so this step does not cut off your current session. The check isgrep DEFAULT /etc/default/ufw, which should show the input policy set to DROP and the output policy set to ACCEPT. Leave UFW inactive until the remaining rules are in place.Allow SSH from the admin network first
Add a rule that permits TCP 22 only from the admin address range, for example
ufw allow from ADMIN_CIDR to any port 22 proto tcp, where ADMIN_CIDR is the range your administrators connect from (illustrative). Add it before enabling the firewall so the rule is in place when the policy takes effect. Keep your current SSH session open throughout. Confirm the range with the team that manages your network, because a wrong source range can lock out every administrator. The check isufw show added, which should list the SSH rule with the admin range as its source.Allow the web and media ports
Add rules for TCP 80 and 443 and for the UDP range 16384 to 32768, which the BigBlueButton install documentation lists as required to be reachable. Ports 80 and 443 serve the web front end, and the UDP range carries media traffic, so do not narrow the UDP range without confirming that your release still uses it. Compare your rule set with the BigBlueButton install docs for your release. The check is
ufw show added, which should list three new rules, including one written as16384:32768/udp.Apply the rules through apply-config.sh
Locate the apply-config.sh script that ships with your installed BigBlueButton release and read it before running it. Confirm its name, the arguments it expects, whether it adds rules to the existing set or replaces them, and whether it needs the admin range as input. Ask your vendor or check the release documentation if the script's behavior is not clear from its contents. Run it only after the inventory, cloud rules and admin range are confirmed. The check is
ufw status numbered, which should match the rule list you approved in the earlier steps with no extra allow rules.Enable UFW and verify from a second session
Run
ufw enableto activate the policy. While the first SSH session is still open, open a second SSH session from an admin address to the same host, and close the first session only after the second one has logged in. The check isufw status verbose, which should show the status as active, the default policy lines, and only the expected allow rules. Then confirm from inside the network that the front end still answers on TCP 443 and that the service behind it is running.Test from outside the admin range
From a host outside the admin address range, and only against addresses you own or have written permission to test, scan the public address for TCP 22, 80, 443 and the UDP media range. Compare the results with the inventory from the first step. Expect TCP 80 and 443 to respond, SSH to be refused or filtered from outside the admin range, and no service on an unplanned port. Port scans are less reliable for UDP, so confirm media reachability with a test call from an outside network. The step is done when the external results match the plan and any gap has a tracked fix.
How the rule set changes by server layout
On a single BigBlueButton server, the firewall only has to serve the browser traffic and media that the host handles itself. This layout is the baseline for the other three tabs. All components run on one host, so no rule has to allow traffic between BigBlueButton servers, and no internal link needs an opening in the firewall.
- Stays the same: TCP 80 and 443 for the web application, UDP 16384 to 32768 for media, and TCP 22 for administration.
- Changes: Nothing is added for a second host, so the server does not accept connections from other BigBlueButton hosts.
- Extra source addresses: Only your administration networks for SSH on TCP 22. No other source address is required by this layout.
- Internal links: None between servers. Confirm that local services used by the install, such as the document conversion sandbox, are not published on a network interface.
- Verification: After the rules are applied, confirm that nothing listens on ports beyond this baseline.
Check the port list against the install documentation for your release before you write the rules, so the baseline matches what the install expects.
When bbb-install.sh installs Greenlight or LTI support on the same server, the browser-facing ports usually stay the same, because users reach the front end through the same web ports. The change is on the outbound side. Greenlight v3 can sign users in through OpenID Connect, which means the server may need to reach an identity provider. Confirm which sign-in method you use before you write any outbound rule.
- Stays the same: TCP 80 and 443 for users, UDP 16384 to 32768 for media, and TCP 22 for administration.
- Changes: Outbound HTTPS from the server to the identity provider is needed for external sign-in. Inbound rules for the front end do not change.
- Extra source addresses: The identity provider endpoints, which you should get from the provider, and the fixed addresses of the LMS platforms if LTI launches come from a known set.
- Internal links: Any local database or service used by the front end should accept connections only from the host itself.
- Hostname match: The callback URLs and LTI tool URLs must use the same hostname as the SSL certificate on the server.
Confirm the sign-in method and the hosts it calls in the Greenlight external authentication documentation before you write the outbound rules.
With TURN on a separate host, the BigBlueButton server and the TURN server each need their own rules. Clients still join through the BigBlueButton host, but users behind restrictive firewalls may send relayed traffic through the TURN host. The TURN listening ports and relay range are set in the TURN configuration, so confirm them there before you write either host's rules.
- Stays the same: TCP 80 and 443 and UDP 16384 to 32768 on the BigBlueButton host, plus TCP 22 for administration.
- Changes: The TURN host opens the ports its configuration uses for client connections and relay traffic. The BigBlueButton host allows the TURN host to reach the ports it needs.
- Extra source addresses: The TURN host address on the BigBlueButton host, and client networks on the TURN listening ports only if clients connect to the TURN host directly.
- Internal links: The BigBlueButton server to the TURN host should be the only internal path. Use the TURN server's peer address restrictions to keep the relay away from your internal networks.
- Relay reach: Confirm that the relay can reach the public internet and cannot reach internal subnets.
Confirm the TURN listening ports and relay range in the TURN server configuration before you write either host's rules.
In a Scalelite pool, the load balancer presents the pool as one server and sends each meeting to the least loaded BigBlueButton backend. Scalelite depends on a PostgreSQL database, a Redis cache and an NFS shared volume for recordings. Each of those is an internal link, and each should open only between the hosts that use it. The Scalelite ports must be confirmed in its configuration before you write these rules.
- Stays the same: On each backend, UDP 16384 to 32768 for media and TCP 22 for administration.
- Changes: The Scalelite host becomes the public entry point for API traffic on TCP 80 and 443. Each backend accepts the connections the Scalelite host sends to it.
- Extra source addresses: The Scalelite host address on each backend, and the backend addresses on the database and cache ports of the Scalelite host.
- Internal links: PostgreSQL, Redis and the NFS share for recordings, each limited to the hosts that use it. Confirm the ports for each in the Scalelite documentation.
- Backend web exposure: Confirm whether clients reach backend web ports directly in your setup, since that decides whether backends need public TCP 80 and 443.
Confirm the Scalelite, PostgreSQL, Redis and NFS ports in the Scalelite project documentation before you write these rules.
Checking that nothing else listens on the host
This check confirms that the host listens only where the build intends. Run ss -tulpn as root, save the output, and compare each line against a written list of expected listeners. For a standard BigBlueButton host, that list should show SSH on TCP 22, nginx on TCP 80 and 443, and the media ports in UDP 16384 to 32768, plus any TURN or SIP listener your design requires. Every other line needs an owner and a reason. Check the bind address as well. PostgreSQL, Redis, metrics exporters and internal APIs should listen on 127.0.0.1 or a private interface, not on 0.0.0.0 or [::], because a service bound to every address is exposed as soon as a second interface appears or a rule changes.
Docker needs its own review. BigBlueButton requires Docker for sandboxed LibreOffice document conversion, and published container ports need a separate review from the host rules you wrote in UFW. Check them with docker ps and docker port for each container, and record what each one publishes and why. Docker writes its own iptables rules for published ports, which can accept traffic that a UFW rule would otherwise block, so confirm this behavior on your Docker and UFW versions before you rely on UFW alone. Ask whether the conversion sandbox needs a published port at all, and remove any publication that has no stated purpose.
Finally, test from outside the network. Run a port scan from a host outside your network, such as with nmap, against the public address, covering TCP and the UDP media range. Do this only with written authorization from the system owner and an agreed scope that names the addresses, port ranges, time window and the person who stops the test if a service is disrupted. Compare the results with the expected list from the first step. An unexpected open port is a finding to fix: identify the process or container behind it, stop it, rebind it or remove the published port, and then retest. Do not respond to a finding by adding a UFW allow rule without review. Any new rule needs a stated reason, an owner, an entry in the change record and a retest after it is applied.
Which BigBlueButton firewall rules lock out admins or expose services
Most lockouts and exposures in BigBlueButton firewall work come from a small set of ordering and drift problems. The six mistakes below each have a symptom you can see and a check you can run on the host or from outside it. Work through them before enabling UFW on a new server and again after any TURN or front-end change.
Lockout from enabling UFW early
Enabling UFW on a host where SSH is not yet allowed from the admin network cuts off the only remote session you have. The symptom is a server that still runs but cannot be reached, and it commonly happens on the first ufw enable after a hardening pass. Before enabling, add a rule that allows TCP 22 only from the admin network, confirm it with ufw show added, and keep a console session from your provider open until you have logged in from a second terminal.
Services listening on every interface
Add-on components can leave internal services listening on every interface, so a service meant for localhost answers on the public address. The symptom is a port UFW never opened showing up in an outside scan, or a database or admin endpoint answering from a network it should not reach. Run ss -tlnp on the host and compare every listener against the ports in your plan. Anything bound to 0.0.0.0 or [::] that is not 22, 80, 443 or an intended media port needs a bind address change or a deny rule.
Cloud firewall out of step
A cloud security group or network ACL sits in front of the host, and it can allow or block traffic independently of UFW. Mismatches fail in two directions: a port that UFW allows is blocked by the provider, so media fails, or a port that UFW denies is open at the provider edge. Check both layers against one written port table. From a machine outside your admin network, test each port in the table, confirm the result matches the plan, and repeat after each change at either layer.
UDP range wider than needed
The install docs require UDP ports 16384 to 32768 to be reachable, so a rule that opens a wider range adds exposed ports that no meeting uses. The symptom is rarely a broken call; it is extra attack surface that a scan or review will flag. Compare each UDP rule with the range your media server and any separate TURN host actually use, and confirm the current requirement for your release. Delete any UDP rule that matches neither role. Trust the port field in ufw status numbered over the comment you wrote when you added the rule.
Docker ports bypassing UFW
Docker writes its own iptables rules when it publishes a container port, and those rules can accept traffic before UFW's INPUT rules are evaluated. The symptom is a container port reachable from outside even though ufw status shows it denied or absent. BigBlueButton requires Docker for sandboxed LibreOffice document conversion, so run docker ps to list published ports and test each one from outside the network. Confirm this behavior for the Docker and UFW versions you run before relying on a deny rule, and bind published ports to 127.0.0.1 where local access is enough.
Stale rules after architecture changes
A TURN host moved to its own server, a retired Greenlight port, or a replaced front end leaves its old UFW rules in place. The symptom is an open port that serves nothing, or a new component that fails because its port was never added. Compare ufw status numbered with the current design, one row per port, and delete rows no running service needs. Put a comment naming the service and owner on each rule, so the next review can tell which rows are stale.
What buyers ask about BigBlueButton firewall rules and cost
What drives the effort of BigBlueButton firewall rule work?
The number of hosts and their layout set most of the effort. One all-in-one server with a public address needs one rule set, while a split layout with separate media, TURN or front-end hosts needs a rule set for each role and a check of every path between them. Four other factors add work:
- An existing cloud firewall or security group, which must match the host rules so the two layers agree.
- Change control, since each rule change may need a ticket, an approval and a record.
- Testing windows, because media ports are only proven under live traffic from user networks.
- The number of networks that must reach the admin path, since each added address range needs a reason and a review.
Ask for a scope that lists each host role and each factor so the effort can be compared.
Can our internal team set up BigBlueButton firewall rules alone?
Yes, an internal team can do it alone if it has the install documentation, a change window and a second admin session open before any rule changes. Keep the existing SSH session connected while you edit rules, and confirm that a new login works before you close it. A wrong SSH rule can lock out the only administrator, so the window should include a fallback such as console access from your hypervisor or cloud provider. Teams without Linux firewall experience, or teams that must test media from outside their network, may find an outside review quicker. Start with the BigBlueButton install docs for the required ports.
What information does a firewall review need from our team?
A review needs four inputs: network diagrams, admin address ranges, the intended public ports and access for external testing. Diagrams should show each host role and every path that crosses a boundary, including TURN and any load balancer. Admin ranges list the networks allowed on SSH and on any admin web path. Intended public ports should name TCP 80 and 443, the UDP media range 16384 to 32768 and any other port you plan to expose. External testing needs a test source outside your network, written permission and an agreed time window. Also share the current UFW status and cloud rule exports so the review starts from what is running.
Is UFW alone enough to lock down a BigBlueButton server?
No. UFW is one layer, and it only protects the host it runs on. A complete setup also uses cloud security groups, upstream network controls and service bind settings, so each service listens only on the addresses it needs. If a service binds to all interfaces, a mistake in one layer can expose it. Plan the layers together, record which layer owns each rule, and test each one from outside your network. Where your setup applies host rules through apply-config.sh, keep the rule source under version control so every change can be reviewed.
Which ports does BigBlueButton need open to the internet?
BigBlueButton needs TCP 80 and 443 and the UDP media range 16384 to 32768 reachable from users. TCP 22 should be limited to admin address ranges and kept off the open internet. A TURN server is recommended for users behind restrictive firewalls, so its ports need planning too. Any SIP or other service port should open only when your layout requires it, and you should confirm each port against the documentation for your installed version. BigBlueButton 4.0 installs on Ubuntu 24.04 64-bit, so check that your host matches before you write the rules.
What recurring work follows after the firewall rules go live?
Three things recur: a rule review after each release, updates when TURN or the layout changes, and periodic listening-port checks. Each release can add or change services, so re-check the rule set after every upgrade before you close the change. Adding a media server or moving TURN changes which paths must be open, and every layer needs the matching update. Periodic checks confirm that nothing new listens on the host. Ongoing support, upgrades and continuous testing are available as retainers, and their scope is agreed in writing like any other engagement.
How do we check that nothing else listens on the server?
List the listening sockets on the host with ss -tulpn, then compare each entry with the expected services and the firewall rules. Any listener without a known owner and reason needs investigation before it is closed or allowed. Run an outside scan as well, because the host view does not show what the internet can reach through cloud or upstream controls. The outside scan should come from a source you have permission to use. Repeat both checks after releases, after rule changes and on a regular schedule, and keep the results with your change records so a reviewer can see the history.
How is a quote formed for BigBlueButton firewall rule work?
A quote follows from a written scope, and DeployOpen does not publish a price list. Most engagements are fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. To make quotes comparable, ask each provider for the same inputs: the host count and roles, the cloud and upstream controls in scope, the number of change windows, the testing and retest included, and the recurring checks. Ask which items are one-time work and which recur, and whether ongoing checks are priced as a retainer. Share your diagrams and rule exports first so the scope reflects your actual layout.
How DeployOpen scopes and verifies BigBlueButton firewall work
DeployOpen plans UFW rules for a BigBlueButton host as part of the server build, so every open port has a stated purpose before the firewall goes live. The written scope fixes the port list, the SSH and SIP source restrictions and the checks that prove nothing else listens. Engagements are fixed-scope, with terms agreed in writing before work starts.
How we scope
- The scope names each open port: TCP 22, 80 and 443, plus the UDP media range 16384 to 32768.
- It records who may reach SSH and SIP, and which source addresses or networks each rule accepts.
- Fixed-scope terms cover the rule set, the verification steps and the handover documents before any change is made.
How we build
- Rules are applied through
apply-config.sh, so the same settings can be reapplied to a rebuilt host. - Before enabling UFW, we keep a second SSH session open and confirm access from the admin network.
- Host listeners are mapped with
ssso each listening service is matched to a rule or closed.
How we hand over
- Handover includes the final rule listing, the
apply-config.shinputs and a map of each open port to its service. - The listening-port inventory from
ssis recorded so your team can compare it against later checks. - Your team receives the steps to add or remove a port, with the change reviewed against the scope.
How we support
- Retainers can cover rule reviews when BigBlueButton versions change, since upgrades may add or move listening services.
- Continuous testing can recheck open ports on a schedule, so drift from changes is caught early.
- Changes to SSH or SIP sources go through the same written change path as the original build.

