After whitelisting the RMS DNS in our firewall, the RMS is still not functioning properly

I am working on a Teltonika router RUT240, where the internet source connects to the WAN port and provides output through the LAN port. I am facing an issue where the RMS is not connecting after I whitelisted the RMS IP 18.196.62.30.
Its correct direction I working on the connect the RMS with firewall internet.

Hello,

Not only the IP addresses, but also the ports must be whitelisted to avoid issues connecting to the RMS. Make sure you’ve added all the ports and all of the IPs found in the list here: What IP addresses and ports are used by RMS? - Teltonika Networks Wiki

Regards,
M.

Thank you for the reply.

I have noted the IP details from the Teltonika Wiki, which I need to whitelist all IPs with the ports specified in the document.

Note: i am getting the error also

Wed Jul 2 18:53:46 2025 daemon.err rms_mqtt[26078]: Mosquitto disconnected: Unknown error.
Wed Jul 2 18:54:51 2025 daemon.err rms_mqtt[26078]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 18:55:56 2025 daemon.err rms_mqtt[26078]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 18:57:00 2025 daemon.err rms_mqtt[26078]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 18:58:03 2025 daemon.err rms_mqtt[26078]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 18:59:05 2025 daemon.err rms_mqtt[26078]: [handle_mosquitto:184] error: Reached max connection attempts (5), exiting
Wed Jul 2 19:01:08 2025 daemon.err rms_mqtt[27213]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 19:01:08 2025 daemon.err rms_mqtt[27213]: Mosquitto disconnected: Unknown error.
Wed Jul 2 19:02:11 2025 daemon.err rms_mqtt[27213]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 19:03:14 2025 daemon.err rms_mqtt[27213]: [handle_mosquitto:188] error: Connection timeout (60), retrying
Wed Jul 2 19:04:14 2025 daemon.err rms_mqtt[27213]: [handle_mosquitto:188] error: Connection timeout (60), retrying

Hello,

Let me know if these errors still appear even after whitelisting the IPs and ports.

Regards,
M.

After whitelisting, the error still occurs. I checked online and found that we also need to enable the MQTT port.

Here are the ports that need to be opened:

  • TCP 443 – RMS Web Interface/API
  • TCP 8883 – MQTT over TLS (device synchronization)
  • UDP/TCP 53 – DNS
  • UDP 123 – NTP (optional)

Please advise if I need to open ports 53 and 8883 to connect to RMS.

This topic was automatically closed after 60 days. New replies are no longer allowed.