Firewall configuration for Microsoft Teams recording deployments

Firewall configuration for Microsoft Teams recording deployments

This chapter summarizes the required firewall configuration for Microsoft Teams recording deployments.

Inbound rules

Server

Server Role

Service name

Source

Port

Protocol

Notes

Server

Server Role

Service name

Source

Port

Protocol

Notes

SQL Server

-

-

All Verba Servers

1433

TCP

SQL connection

All Verba Servers

-

Verba Node Manager Agent

Verba Media Repository

4433

TCP

Central configuration from Verba Web Application

Verba Media Repository Server

Media Repository 

  

Verba Web Application

Any

80

TCP

Used for HTTP-based web access

Verba Web Application

Any

443

TCP

Used for HTTPS-based web access

Verba Media Streamer and Content Server Service

Any

10105

 

TCP

DEPRECATED Media port for playback via HTTP

Verba Media Streamer and Content Server Service

Any

10106

TCP

DEPRECATED Media port for playback via HTTPS

Verba Storage Management Service

Verba Recording Server

20111

TCP

Communication with Verba Storage Management services, used for secure file upload.

Only required for legacy, non-policy based uploads.

SQL Server (if co-located on Verba Media Repository)

All Verba Servers

1433

TCP

SQL connection

Verba Recording Server

Recording Server

Verba Microsoft Teams Bot Service

Teams IP range as defined by Microsoft: https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#microsoft-teams

8445

TCP

Media control port for Teams.

Ensure that the IP addresses of the VMs running the bot service are allowed.

Recording Server

Verba Microsoft Teams Bot Service

Teams IP range as defined by Microsoft: https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#microsoft-teams

9440

TCP

  • Call invite from Teams

  • HTTPS health probe for Azure Traffic Manager and Application Gateway

Ensure that the IP addresses of the VMs running the bot service are allowed.

Recording Server

Verba Microsoft Teams Bot Service

Teams IP range as defined by Microsoft: https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#microsoft-teams

10100

TCP

Call control port for Teams

Ensure that the IP addresses of the VMs running the bot service are allowed.

Recording Server

Verba Microsoft Teams Bot Service

Verba Recording Server / Verba Unified Call Recorder Service

10501

TCP

Recording Director connection (it is recommended to deploy the bot and the recording service on the same VM)

Recording Server

Verba Microsoft Teams Bot Service

Verba Recording Server / Verba Unified Call Recorder Service

10502

TCP

Media Recorder connection (it is recommended to deploy the bot and the recording service on the same VM)

Recording Server

Verba Microsoft Teams Bot Service

52.112.0.0/14, 52.122.0.0/15, 2603:1063::/38

These IP ranges can be updated by Microsoft and it is possible that this article lists outdated values. Refer to the Microsoft Documentation for current requirements:
https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#microsoft-teams

See notes

UDP

(Optional) Media port range, recommended for quicker media channel negotiation.

A minimum of 1000 ports has to be opened in the 16384 - 65535 range, but the total number of ports to open depends on the number of calls recorded and media sockets used.

This can be calculated with the equation N*(1+V+S):

  • N: The number of calls to be handled by the virtual machine (VM) running the Teams Bot Service.

  • The number of sockets required for a call:

    • 1 socket for audio

    • V: Between 0 and 10, depending on the number of video participants and the video recording mode. Same value as the Number of Recorded Video Participants option specified in the Teams Bot service configuration.

    • S: If screen share is captured, 1 socket is required. If not, S is 0.

Example:

50 calls with both video and screen share are recorded on one VM, with the default setting (4) for the Number of Recorded Video Participants configuration option. This means that the required number of ports is calculated to be 50*(1+4+1)=300. As this is less than the minimum number of ports required, 1000 ports anywhere in the range of 16384 - 65535 has to be opened.

The ports you open must be specified as the Media Port Range (Begin and End) of the Microsoft Teams service configuration.

Recording Server

Verba Microsoft Teams Bot Service

Any

10038

TCP

Bot service API port

Recording Server

Verba Unified Call Recorder Service

All Verba Servers
All Verba Desktop Agents (if used)
(plus all playback stations if silent monitoring is used)

10031

TCP

Service API port

Outbound rules

The Microsoft Teams Bot Service is considered as a standard Microsoft Teams endpoint and the standard firewall rules can be applied.

The following Microsoft documentation contains all the required endpoints and ports which has to be accessible for a Teams endpoint: Office 365 URLs and IP address ranges (section Skype for Business Online and Microsoft Teams)

The Microsoft Teams Bot Service has to acquire a token from Microsoft Entra to authenticate the outbound requests to the Microsoft Graph API. The following Microsoft documentation contains the Microsoft Entra authentication endpoints: Microsoft Entra authentication endpoints

In addition, the Microsoft Teams Bot Service uses Microsoft Graph API via the https://graph.microsoft.com/v1.0 endpoint for sending requests to Microsoft Teams (e.g.: Call answer, Microsoft Entra (formerly Azure AD) queries)

Considerations for Microsoft Teams Bot service version 9.9.10 or newer

The general recommendation from Microsoft is that servers running the Microsoft Teams Bot service should allow outbound TCP connectivity to all ports within the IP ranges 52.112.0.0/14 and 52.122.0.0/15.

Allowing port 10701 is currently sufficient, but the port number or the recommendations of Microsoft can change in the future.

Certificate Revocation List (CRL) and Online Certificate Status Protocol (OCSP)

Make sure that the Microsoft Teams Bot Service can reach the Certificate Revocation Lists (CRL) and use Online Certificate Status Protocol (OCSP) to validate the certificates issued by a public CA. The used SDKs check the certificate validity from time to time. It is necessary to allow the bot to connect the public certificate services over OCSP.

For a complete list of CRL and OCSP URLs used in Azure, see the Azure Certificate Authority details. The list of CRLs and OCSP endpoints can change in the future please make sure that the firewall configuration is in sync with the Microsoft documentation.