Skip to content

RouterOS LoRa General Properties

Configuration Guidemd-clse6
DateFebruary 13, 2026
RouterOS Version7.x+

The LoRa (Long Range) General Properties menu configures MikroTik devices as LoRaWAN gateways. Every RouterBOARD with a miniPCI-e slot supporting LTE modems can function as a LoRaWAN gateway by installing an R11e-LR8 (863-870 MHz) or R11e-LR9 (902-928 MHz) card.

Both UDP and LNS (LoRaWAN Network Server) protocols are supported.

Requirements:

  • IoT package installed (available in extra packages)
  • R11e-LR8 or R11e-LR9 miniPCIe card
  • RouterOS v7.11+ (LoRa functionality moved to IoT package)

Sub-menu: /iot lora

PropertyDescription
nameName of the LoRaWAN gateway
disabledWhether the gateway is disabled (default: yes)
gateway-idGateway ID/EUI used when registering with the server
serversName of server from /iot lora servers section
PropertyDescription
channel-planFrequency plan: as-923, au-915, custom, eu-868, in-865, kr-920, ru-864, us-915-1, us-915-2 (default: eu-868)
networksync word usage: private or public (default: public)
PropertyDescription
antenna-gainAntenna gain in dBi (-128 to 127, default: 0). Calculate as setup-antenna-gain - cable-loss
lbt-enabledEnable Listen Before Talk protocol (default: no)
listen-timeRSSI tracking time in microseconds before TX (default: 5000us)
rssi-thresholdRSSI threshold for LBT channel usage (default: -65dB)
PropertyDescription
forwardPacket forwarding mode: crc-validation, dev-addr-validation, proprietary-traffic
src-addressUplink packet source address
spoof-gpsCustom GPS location: latitude, longitude, altitude

# Enable LoRa interface
/iot lora set [find] disabled=no
# Or using newer syntax (RouterOS v7.11+)
/iot lora enable [find]
# Set gateway name and ID
/iot lora set name=lora-gw1 gateway-id=50313A1234567890
# Select The Things Network server (EU)
/iot lora set servers="TTN V3 (eu1)"
# Enable the gateway
/iot lora enable [find]
# Set custom frequency plan
/iot lora set channel-plan=custom
# View available channels
/iot lora channels print

Sub-menu: /iot lora servers

Pre-configured servers available:

NameAddressPorts
TTS Cloud (eu1)eu1.cloud.thethings.industries1700/1700
TTS Cloud (nam1)nam1.cloud.thethings.industries1700/1700
TTN V3 (eu1)eu1.cloud.thethings.network1700/1700
PropertyDescription
addressNetwork server domain/IP
protocolUDP, LNS, or CUPS
up-portUplink port (default: 1700)
down-portDownlink port (default: 1700)
portLNS/CUPS WebSocket port (default: 8887)
keyLNS/CUPS authentication key
sslEnable TLS (requires certificate)
# Add custom server with UDP
/iot lora servers add name=my-server address=192.168.1.100 protocol=udp
# Add server with LNS (WebSocket)
/iot lora servers add name=lns-server address=eu1.example.com protocol=lns key=my-auth-key ssl=yes
/iot lora server reset-servers

Sub-menu: /iot lora channels

Channel configuration for custom frequency plans.

PropertyDescription
bandwidth7.8kHz, 15.6kHz, 31.2kHz, 62.5kHz, 125kHz, 250kHz, 500kHz
freq-offFrequency offset against radio center frequency (-400000 to 400000)
radioWhich radio: radio0 or radio1
spread-factorSF7-SF12 (lower = higher data rate)
disabledEnable/disable channel
/iot lora channels print

Example output:

Columns: NAME, TYPE, RADIO, FREQ-OFF, BANDWIDTH, FREQ, SPREAD-FACTOR
# NAME TYPE RADIO FREQ-OFF BANDWIDTH FREQ SPREAD-FACTOR
0 gateway-0 MSF radio1 -400000 125_kHz 868.1
1 gateway-0 MSF radio1 -200000 125_kHz 868.3
2 gateway-0 MSF radio1 0 125_kHz 868.5

Sub-menu: /iot lora joineui

Filter which Join EUIs are forwarded to the server.

PropertyDescription
joineuiRange of Join EUIs (8 octets in HEX, e.g., E0E1E20102030405)
nameFilter name
typeblacklist or whitelist
loggingEnable filter logging
# Block all Join EUIs
/iot lora joineui add name=block_all joineuis=0000000000000000-ffffffffffffffff type=blacklist
# Allow specific node only
/iot lora joineui add name=my_node joineuis=E0E1E20102030405-E0E1E20102030405 type=whitelist
# Apply to server
/iot lora servers set joineui=block_all,my_node [find]

Sub-menu: /iot lora netid

Filter packets by Network ID to only forward payloads from specific operators.

PropertyDescription
netidsNetID range (e.g., 000013-000013)
nameFilter name
typeblacklist or whitelist
loggingEnable filter logging
# Allow only TTN (NetID 000013)
/iot lora netid add name=ttn_only netids=000013-000013 type=whitelist
# Block all other NetIDs
/iot lora netid add name=block_all netids=000000-ffffff type=blacklist
# Apply to server
/iot lora servers set netid=ttn_only,block_all [find]

Sub-menu: /iot lora traffic

View received LoRa payloads from surrounding nodes.

# View traffic
/iot lora traffic print
# Clear traffic log
/iot lora traffic clear

Example output:

Columns: TIME, GWID, MSGTYPE, DEVADDR, MVER, FCNT, CRC, TYPE, JOINEUI
# TIME GWID MSGTYPE DEVADDR MVER FCNT CRC JOINEUI
0 2024-11-08 13:33:28 xxxxxxxxxxxxxxxx Unconfirmed Data Up 6C B9 XX LoRaWAN R1 59434 Error
1 2024-11-08 13:34:55 xxxxxxxxxxxxxxxx Join-request LoRaWAN R1 A1B1C2D3...
# Discard CRC error packets
/iot lora traffic set options=crc-errors
# Limit log entries (10-1024)
/iot lora traffic set options=pckt-limit=100

/system/logging/add topics=debug,lora
# View logs
/log/print
13:50:33 lora,info gateway-0 forwarder started
13:50:38 lora,info [LNS] connecting to wss://eu1.cloud.thethings.network:8887/router-info
13:50:39 lora,info [LNS] eu1.cloud.thethings.network configured
13:50:52 lora,info gateway-0 forwarder is ready
IssueSolution
Gateway not connectingVerify server address and port; check firewall
No traffic appearingEnsure interface is enabled; check antenna connection
CRC errorsCheck cable quality; verify antenna gain settings
LNS connection failsVerify SSL certificate; check key authentication

For raw LoRa payloads (without LoRaWAN):

  1. Remove server configuration from LoRa interface
  2. Create a script to capture traffic:
# Capture traffic to variable
:global traffic;
:set traffic [/iot lora traffic print as-value];
# Forward via MQTT or HTTP using /tool/fetch

The script must handle payload decryption server-side - the gateway does not decrypt node data.


  • Hardware: R11e-LR8 (863-870 MHz) or R11e-LR9 (902-928 MHz) miniPCIe card
  • Software: RouterOS 7.x with IoT package
  • Network: Server connectivity (UDP port 1700 or LNS WebSocket port 8887)