Configure a Cisco Meraki Firewall

This guide explains how to configure a Cisco Meraki firewall (MX Series) to allow Reemo to use an optimal connection (direct/udp) and avoid unnecessary fallback to relays.
A correct configuration reduces latency and improves the audio/video quality of sessions.
Without this configuration, Reemo can still work, but connections will fall back to relays (relay/tcp, relay/udp, websocket) with reduced performance.
Before starting, make sure your Meraki MX appliance is online and attached to a network in the Meraki Dashboard (dashboard.meraki.com).
Then log in to the Dashboard with an account that has write access to this network.

Note

This configuration is provided as an example.
Screens and labels may vary slightly depending on your MX firmware version and the Dashboard release.
The proposed rule descriptions (Reemo Signal / Download, Reemo P2P - Agent side, etc.) are indicative: you may use your own naming conventions.
In this example, the LAN is 192.168.128.0/24 and the remote computer running the Reemo Agent is 192.168.128.3: adjust these values to your network.

Summary: Ports and addresses to open

For quick reference, here is a summary table of the required flows for Reemo to work properly in direct/udp mode:

Usage

Protocol

Ports

Destination

Signal server

TCP

443

signal.reemo.io

TURN servers

TCP/UDP

443, 3478

turn.cloudflare.com, turn1.reemo.io, turn2.reemo.io

Download server

TCP

443

download.reemo.io

Reemo P2P - Agent side

UDP

1024–65535 (src 58200–58400)

Any (peer-to-peer connection)

Reemo P2P - Browser side

UDP

58200–58400

Any (peer-to-peer connection)

Port forwarding (agent site)

UDP

58200–58400

LAN IP address of the remote computer

Step 1: Open the firewall settings

In the Dashboard, select the network of your MX appliance, then go to Security & SD-WAN > Firewall (in the Configure section of the menu).

Security & SD-WAN menu of the Meraki Dashboard

Security & SD-WAN > Firewall menu.

The Firewall page contains all the sections used in this guide: Layer 3 (Outbound rules) and Forwarding rules (Port forwarding).

Meraki Firewall page before configuration

Firewall page before configuration.

Step 2: Create the outbound rules

These rules are required if your outbound rules end with a Deny rule (the default Meraki outbound policy ends with an Allow default rule). In that case, place them above it.

Rules 1 to 3 apply to the MX of every site where Reemo is used. Rule 4 (Agent side) applies to the MX of the site of the remote computer, and rule 5 (Browser side) to the MX of the site of your users.

In Layer 3 > Outbound rules, click Add new for each of the following rules, then click Finish editing. For each rule, set Policy to Allow and leave Source set to Any.

#

Rule description

Protocol

Src port

Destination

Dst port

1

Reemo Signal / Download

TCP

Any

signal.reemo.io, download.reemo.io

443

2

Reemo TURN (UDP)

UDP

Any

turn.cloudflare.com, turn1.reemo.io, turn2.reemo.io

443,3478

3

Reemo TURN (TCP)

TCP

Any

turn.cloudflare.com, turn1.reemo.io, turn2.reemo.io

443,3478

4

Reemo P2P - Agent side

UDP

58200-58400

Any

1024-65535

5

Reemo P2P - Browser side

UDP

Any

Any

58200-58400

Tip

The Destination field accepts domain names (FQDN). Type the domain name, then select it in the suggestion list (type Domain) before typing the next one.
Several values can be entered in the same rule: ports are separated by a comma (443,3478) and ranges use a dash (58200-58400).
Editing the Reemo P2P - Agent side outbound rule

Editing the Reemo P2P - Agent side rule (UDP, source port 58200-58400, destination port 1024-65535).

Note

  • Rules 4 and 5 target Any as the destination: the peer-to-peer WebRTC connection can reach a browser or an agent located anywhere on the internet, not just the Reemo infrastructure.

  • The wide range (1024-65535) is required by WebRTC to establish peer-to-peer connections. Traffic remains end-to-end encrypted and restricted to Reemo communications.

  • You can replace Any in the Source column with the subnet or VLAN of your Reemo computers or users.

Overview of the Reemo outbound rules

Overview of the configured outbound rules.

Step 3: Allow incoming traffic to the agent (Reemo Side)

Make the agent’s UDP ports reachable through the MX, so that the browser can reach the agent directly. This step concerns the site where the remote computer running the Reemo Agent is located.

In the Forwarding rules section, next to Port forwarding, click Add a port forwarding rule and configure it as follows:

  • Description: Reemo Agent - Direct UDP

  • Uplink: Both

  • Protocol: UDP

  • Public port: 58200-58400

  • LAN IP: IP address of the remote computer (e.g. 192.168.128.3, adjust as needed)

  • Local port: 58200-58400

  • Allowed remote IPs: any (or the public IP addresses of your users)

Meraki port forwarding rule for the Reemo Agent

Port forwarding rule for the Reemo Agent.

Note

The Meraki Dashboard does not offer a static port or preserve source port option for outbound NAT.
If the direct/udp connection is not established every time, see Troubleshooting: intermittent direct/udp connection.

Step 4: Save the configuration

Click Save at the bottom of the page. A Changes saved message is displayed.

Note

Allow 1 to 2 minutes for the changes to take effect on the MX appliance.

Troubleshooting: intermittent direct/udp connection

Symptom:

Behind some Cisco Meraki MX firewalls, part of the Reemo sessions fall back to a relay connection instead of a direct/udp connection.

Root Cause:

Dual-core MX models (e.g. MX105) change the source port of outgoing connections depending on the destination, to make sure that return traffic reaches the right core. The public port seen by the STUN server is therefore different from the one used toward the remote user, and the direct connection fails. Single-core models (e.g. MX67) keep the original port and are not affected.

Solution:

Ask Meraki support to enable the “best-effort port preservation” backend feature on your network. This feature tries to keep the original source port toward every destination, and only changes it if another device already uses that port.

  1. In the Meraki Dashboard, click the ? icon (top right), then Support Center.

  2. Select the Security & SD-WAN (MX) tile, then your MX appliance.

  3. Open a case (Severity 3) asking to enable “best-effort port preservation”.

For more information on opening a case, see the Meraki documentation: Ways to Contact Meraki Support.

Note

  • The feature applies to the whole network: it cannot be limited to one computer or port range.

  • It may slightly increase the CPU load and slightly reduce the maximum throughput.

  • Meraki support can disable it at any time.