Configure a Cisco Meraki Firewall¶
Note
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¶
Usage |
Protocol |
Ports |
Destination |
|---|---|---|---|
Signal server |
TCP |
443 |
|
TURN servers |
TCP/UDP |
443, 3478 |
|
Download server |
TCP |
443 |
|
Reemo P2P - Agent side |
UDP |
1024–65535 (src 58200–58400) |
|
Reemo P2P - Browser side |
UDP |
58200–58400 |
|
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 > Firewall menu.¶
The Firewall page contains all the sections used in this guide: Layer 3 (Outbound rules) and Forwarding rules (Port forwarding).
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 |
|
|
2 |
Reemo TURN (UDP) |
UDP |
Any |
|
|
3 |
Reemo TURN (TCP) |
TCP |
Any |
|
|
4 |
Reemo P2P - Agent side |
UDP |
|
Any |
|
5 |
Reemo P2P - Browser side |
UDP |
Any |
Any |
|
Tip
443,3478) and ranges use a dash (58200-58400).
Editing the Reemo P2P - Agent side rule (UDP, source port 58200-58400, destination port 1024-65535).¶
Note
Rules 4 and 5 target
Anyas 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
Anyin the Source column with the subnet or VLAN of your Reemo computers or users.
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 UDPUplink:
BothProtocol:
UDPPublic port:
58200-58400LAN IP: IP address of the remote computer (e.g.
192.168.128.3, adjust as needed)Local port:
58200-58400Allowed remote IPs:
any(or the public IP addresses of your users)
Port forwarding rule for the Reemo Agent.¶
Note
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.
In the Meraki Dashboard, click the ? icon (top right), then Support Center.
Select the Security & SD-WAN (MX) tile, then your MX appliance.
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.