ungovernable.tech

Field guide[ GUIDE ][ OFF-GRID AND MESH NETWORKS ]

LoRa Mesh Field Guide

Also lora-mesh-field-guide, LoRa mesh field setup.

How to stand up a Meshtastic or MeshCore LoRa mesh without shipping your position, your channel key, or your repeater site to the internet. Not legal advice. Sub-GHz ISM use is regulated. A frequency copied from another country's preset can be illegal where you are, and overriding a duty-cycle limit can be too.

updated 2026-11-06 20 min read [ INTERMEDIATE ]
Contents

Meshtastic and MeshCore are the stack sketches. This note is the operating one. Both are flood-or-path packet radios on unlicensed LoRa, not private networks and not a substitute for Reticulum when you need transport-agnostic cryptographic destinations. A stock Meshtastic node joins a public channel. A stock MeshCore repeater admin password is the word password.

Project Repo Stars What to flash Tag read Published License
Meshtastic firmware meshtastic/firmware 8,539 Newest non-prerelease tag is still named Beta. Do not put an Alpha on a repeater you cannot reach. v2.7.26.54e0d8d (prerelease flag false, name says Beta). Newest tag overall: v2.8.2.d5f1619 Alpha, not marked revoked. The prior 2.8.2 alpha, v2.8.2.4c89b69, is named Revoked. 2026-06-24 / 2026-11-04 GPL-3.0
MeshCore meshcore-dev/MeshCore 4,003 Companion, repeater, and room-server builds of the same version. Security fixes are not backported; SECURITY.md supports 1.15+ only. companion / repeater / room-server v1.18.0 2026-10-15 MIT

Docs pages cited below are the site labeled Version 2.8. Features the encryption page dates to firmware 2.8 or 2.8.1 (AES-CCM channel mode, XEdDSA broadcast signatures, DM ack proofs) are not in the 2.7.26 tag. Firmware pushed_at was 2026-11-05. MeshCore pushed_at was 2026-11-04.

Summary

Choice What you actually get What you do not get
Default Meshtastic primary channel A hailing channel. Name defaults to LongFast. Key is AQ==, which the channel page defines as hex byte 0x01 and the tips page calls the Base64 form of that byte. Anyone with the firmware can read it. A private group. Forward secrecy. Hidden headers.
Random 32-byte channel PSK AES-256-CTR on that channel (AES-CCM if every node has Use AEAD on, firmware 2.8.1+). Nodes without the key cannot read the payload. Metadata privacy. The header is never encrypted. A stolen node yields the key, and recorded traffic decrypts later.
Meshtastic direct message X25519 shared secret, AES-256-CCM, firmware path documented since v2.5 PKC. Other nodes can relay it and cannot read it. A signed packet. An encrypted traceroute, NodeInfo, position, or ordinary ack. Those normally use the channel key even when addressed to one node.
MQTT uplink A bridge from the local radio mesh to mqtt.meshtastic.org unless you set another broker. An off-grid network. Encryption on the broker, unless you turn mqtt.encryption_enabled on. It defaults to false.
MeshCore companion A client that does not repeat. Paths are learned, then embedded, so later messages are not flooded by every node. A rooftop. Coverage comes from repeaters you site on purpose.
MeshCore repeater A fixed forwarder. It does not retransmit every packet. Default flood advert every 12 hours. A safe default. Admin password starts as password. USB serial can print the private key.

Before the radios leave the bench

  1. Set the region to the country you are actually in. Meshtastic LoRa config says override frequency must respect local rules. MeshCore's radio-presets doc says the app presets are community suggestions, not a permit. The FAQ's October 2025 example for "USA/Canada (Recommended)" is 910.525 MHz, SF7, BW 62.5 kHz, CR5. That is an example for that preset, not a setting to copy into the EU 868 MHz band.
  2. Leave lora.override_duty_cycle false. The LoRa page: setting it true makes the device ignore the hourly duty-cycle limit in Europe, and you might violate regulations. Default is false, which stops transmission at the hourly limit and resumes when allowed.
  3. Every node that must hear each other needs the same region, modem preset, and frequency slot. The channel page: a hash of the primary channel name sets the frequency slot when the slot is left at 0. Two groups with different primary names are on different frequencies unless both set the slot explicitly. Mismatched presets are a silent mesh.
  4. Leave hop limit at 3 unless a measured path needs more. Default in the LoRa config table is 3. The tips page says unnecessarily high hop counts often cause network problems.
  5. Test on the ground before you climb. The tips page says to test settings and hardware before a hard-to-reach install.
  6. Back up keys before any erase. On Meshtastic, a node's number is a CRC-32 of its public key. A new key is a new node. meshtastic --export-config writes the public and private keys. On MeshCore, get prv.key over USB serial prints the repeater private key; set prv.key replaces it and needs a reboot. Treat that serial console as the key.

Meshtastic private channels

Eight channel slots. Index 0 is PRIMARY and cannot be disabled. Indexes 1–7 start DISABLED. Active channels must be consecutive. Periodic broadcasts the device sends itself (position, telemetry, traceroute) go on the primary channel and use that channel's key. That sentence is from the encryption page, and it is why a "private secondary" does not hide you if the primary key is still AQ== and position is still on.

PSK length, from the channel page:

PSK What the firmware does
none (0 bytes) No encryption.
default The published key. Hex 0x01, Base64 AQ==.
simple0–simple254 A single public byte. The channel page says these keys ship in the source, so anyone can read them.
random A fresh 256-bit key. This is the setting the channel page tells you to use if other people should not read the channel.
16 bytes AES-128.
32 bytes AES-256.

Channel payload mode is AES-CTR. AES-CTR does not detect a modified packet. On firmware 2.8.1 and later, use_aead switches that channel to AES-CCM and adds a 12-byte tag. Every node on the channel must match. Mixed on/off nodes cannot read each other even with the same name and PSK.

Uplink and downlink are per channel and default to false. Uplink, if enabled, sends mesh messages to the public internet through any node's configured gateway. Downlink, if enabled, forwards messages captured from a public internet gateway onto the local mesh. A private channel should have both off unless that channel is the one you mean to publish.

The name admin on a secondary channel is the legacy admin channel. It works only when Admin Channel Enabled is on. The encryption page calls that path the older, less secure admin channel. Leave it off. Remote admin on 2.5+ uses the same encryption as direct messages, accepts at most three admin public keys, and requires a session passkey the node issued within the last 5 minutes.

Managed Mode blocks client apps from writing config. Turn it on only after remote admin already works, or you lock yourself out.

Do not put a private channel key on an unattended router. The encryption page is explicit: nodes relay traffic they cannot decrypt, so a router does not need the key, and physical access makes the key easy to extract.

Direct messages are not "encrypted position"

A direct message uses a key only the sender and recipient can compute. Each node has a key pair. The sender combines its private key with the recipient's public key using X25519. The message is AES-256-CCM. The node will not send a DM to a node whose public key it does not already have. Keys arrive in the NodeInfo broadcast. There is no central authority. The encryption page: nodes trust the first public key they hear for a node number. Confirm the recipient's public key out of band before anything sensitive. DMs are not separately signed; the shared key is the authentication.

What still uses the channel key, even when the packet is addressed to one node: traceroute, NodeInfo, position, and ordinary acknowledgements. A DM does not hide the fact that those radios are talking. The packet header is never encrypted, because relays need it, including relays that cannot decrypt the payload.

On firmware 2.8 and later, broadcasts can be signed with XEdDSA using the same key pair, adding 66 bytes. A broadcast that does not fit is sent unsigned. STM32WL nodes do not sign or check signatures. The default Packet Signature Policy accepts unsigned packets so older nodes still work. Anyone with the channel key can send an unsigned packet that claims to come from any node, and the default policy still accepts it. BALANCED and STRICT reject unsigned broadcasts from nodes known to sign. Treat an unsigned channel sender as a claim.

On firmware 2.8.1 and later, a DM acknowledgement can carry a short proof made with the shared key, and only when both nodes have each other's public keys. Without that proof, anyone holding the channel key could forge an acknowledgement.

There is no forward secrecy. The encryption page states the harvest-now-decrypt-later consequence in one line: anyone who records channel traffic and later obtains the key can decrypt what they recorded. The same page says AES-256 is considered resistant to a quantum attack, citing the NIST PQC FAQ, and that the X25519 exchange used for DMs is not, because the post-quantum schemes do not fit these packets or these boards. That is the project's own limit statement, not an audit.

Position precision

Two different knobs. Do not confuse them.

Channel position_precision controls how much location is sent on that channel. Integer 0–32. 0 means location is never sent on that channel. 32 means full precision. On a public key (no key, the default key, or any single-byte key) the firmware caps precision at 15 bits even if you ask for more. The published table, from the channel page:

Bits Metric Imperial
10 23.3 km 14.5 miles
11 11.7 km 7.3 miles
12 5.8 km 3.6 miles
13 2.9 km 1.8 miles
14 1.5 km 4,787 feet
15 729 m 2,392 feet
16 364 m 1,194 feet
17 182 m 597 feet
18 91 m 299 feet
19 45 m 148 feet

The table stops at 19. The page says clients expose a practical subset and the CLI can set any integer in 0–32. The CLI example calls 13 bits "approx ±3 km"; the table says 2.9 km. Use the table. Do not invent meter values for bits 20–31; they are not in the page.

15 bits is the public-channel cap, and 729 m is still a neighborhood. It is not anonymity. The radio emission is locatable whether or not a GPS sentence is in the packet.

Sharing location only on a private secondary is documented as a 2.7.1+ feature. Turn location off on channel 0. Enable it on the private secondary. Only the lowest-indexed secondary with location sharing gets automatic live updates. Higher channels can still answer a manual position request. If channel 0 still has the default key and location left on, the private secondary does not matter.

GPS defaults, from the position config table. A value of 0 means the documented default, not "off":

Setting Default
GPS mode ENABLED or NOT_PRESENT, depending on the board
GPS update interval 0 means every 2 minutes
Fixed position false
Smart broadcast true
Smart minimum distance 0 means 100 meters
Smart minimum interval 0 means 15 minutes
Broadcast interval 0 means 15 minutes

A GPS node on the default primary channel is a periodic beacon on a published key, at whatever precision the 15-bit cap allows. LOST_AND_FOUND makes that worse on purpose: it broadcasts location as a message to the default channel to help find a lost device. Do not use that role for a radio you do not want found.

CLIENT_HIDDEN only broadcasts as needed and is not shown in the nodes list. CLIENT_MUTE sends and receives but does not forward. Use mute for a handheld sitting next to a better-sited node, so the handheld does not burn airtime repeating.

MQTT is how a local mesh becomes a public map

MQTT is off until you enable the module (mqtt.enabled defaults false). One enabled gateway is enough. Channel uplink or downlink must also be on for mesh packets to cross. The tips page: connecting a node to the public MQTT server may publish the locations of all nodes in your mesh to the internet.

Defaults from the MQTT module CLI table, docs version 2.8:

Field Default Field meaning
mqtt.enabled false Module off.
mqtt.address mqtt.meshtastic.org Used when address is unset.
mqtt.encryption_enabled false If false, packets are uploaded decrypted even when the channel has a key. The module page states that directly.
mqtt.json_enabled false JSON packets are not encrypted. Not available on nRF52.
mqtt.tls_enabled false No TLS unless set.
mqtt.proxy_to_client_enabled false If true, the phone's network connection is the MQTT client.
mqtt.map_reporting_enabled false If true, an unencrypted map report.

The configuration reference also publishes a default username and password for that public broker. They are not a private credential. Do not treat the public broker as a closed group. This note does not repeat the password.

Map reporting, if enabled, has been available since firmware 2.3.2. The report is unencrypted and includes long and short name, node ID, position and altitude, hardware model, role, firmware version, LoRa region, modem preset, primary channel name, whether the node is reachable on the default channel with the known key, and the count of local nodes heard in the last two hours excluding nodes heard only via MQTT. Position precision in that report defaults to a maximum deviation of about 1,459 m. Publish interval defaults to 3,600 seconds, which is also the minimum.

OK to MQTT (lora.config_ok_to_mqtt) defaults to false. True means this user approves uplink of their packets. False asks other nodes not to forward those packets to MQTT. The LoRa page says this is not cryptographic. It is a polite request enforced in the official firmware, and it applies only to channels using the firmware's defaultpsk and eventpsk. Channels with a custom key ignore the flag. A private PSK does not need this flag. It needs uplink_enabled left false, and it needs no gateway that already has the key.

Ignore MQTT (lora.ignore_mqtt) defaults to false. True means the device ignores LoRa messages that came via MQTT somewhere on the path. Turn it on for a radio mesh that should not be driven by the internet.

A node decrypts before it hands packets to a phone over Bluetooth, serial, Wi-Fi, or Ethernet. The paired phone is inside the confidentiality boundary. A field phone should be treated as a key holder, not as a dumb screen.

If a gateway is actually required: a separate node, no private channel key on it, mqtt.encryption_enabled true, TLS on, your own broker, uplink only on the channel you intend to publish, map reporting off, and ignore_mqtt on the radios that should stay local. Rebroadcast mode LOCAL_ONLY ignores observed messages from foreign meshes that are open or that this node cannot decrypt. The default rebroadcast mode is ALL, which rebroadcasts messages from other meshes with the same modem settings, including when encryption differs. A rooftop left on ALL spends airtime on every mesh that shares the preset.

Roles, and where a repeater should not be

Meshtastic device roles, docs version 2.8. ROUTER_CLIENT was removed in firmware 2.3.15.

Role Forwards? Visible in nodes list Use in a field net
CLIENT When no other node has Yes Ordinary handheld.
CLIENT_MUTE No Yes Handheld next to a better node.
CLIENT_HIDDEN Local only No Radio that should not advertise itself.
CLIENT_BASE Always for favorited nodes; otherwise like CLIENT Yes Attic or roof node serving your own weaker radios. Not a general router.
ROUTER Always, once Yes Fixed, high, strategic. Not a pocket radio.
ROUTER_LATE Always, once, after other modes Yes A dead spot. The docs say it is for a cluster whose placement does not help the wider mesh.
REPEATER Always, once, minimal overhead No Same siting as ROUTER, hidden from the topology list. ALL_SKIP_DECODING is only available on this role.
TRACKER / SENSOR / TAK / TAK_TRACKER Role-specific; NONE rebroadcast is only legal on SENSOR, TRACKER, TAK_TRACKER Yes They prioritize position or telemetry. They are beacons.
LOST_AND_FOUND Yes Yes Broadcasts location to the default channel so the device can be found. Wrong role for a radio you intend to keep.

Power draw of ROUTER and REPEATER is marked high. A solar or battery site that dies is a hole in the mesh, not a privacy feature. Power budgets are a separate gap; this note only says: do not site a router you cannot power through the window you care about.

MeshCore repeater siting

MeshCore's design difference is the role split, and the FAQ states it as the point of the protocol. Companions do not repeat. Only repeater firmware repeats, plus a room server if someone runs set repeat on. The FAQ says not to do that. A room server with repeat on lacks the repeater's remote-admin features. Run them on separate devices.

Siting, from the FAQ, not from a range claim:

  • Place the repeater high above ground. The FAQ's own start is: if other MeshCore users are nearby, flash one device as companion and one as repeater, and put the repeater high.
  • Keep it fixed. If a node learned a path through a repeater and that repeater leaves, the client tries the broken path, fails after 3 retries, and on the last retry floods unless that fallback is turned off. A repeater in a vehicle teaches the mesh a path that will not be there tomorrow.
  • Set the legal frequency before it leaves USB. set freq {frequency} on the flasher console, or the repeater setup on the web flasher, or https://config.meshcore.io. A repeater on the wrong preset is not part of the mesh you think you joined.
  • Change the admin password before install. Default is password. Command: password {new-password}. Room-server guest password defaults to hello (set guest.password).
  • Location is optional. set lat and set lon make it eligible for the internet map. Uploading is a separate step in the app (Share, then Upload to Internet Map), and the same companion key can remove it. Do not upload a site you do not want on https://map.meshcore.io.
  • A repeater flood-adverts every 12 hours by default (set flood.advert.interval {hours}). Zero-hop adverts are a different timer (set advert.interval {minutes}). An advert is name, position, and public key, signed. v1.18.0 added a hidden-repeater behavior: not discoverable if adverts are turned off (release note for that build, 2026-10-15).
  • Repeaters may refuse flood traffic past a hop limit (set flood.max). Group channels have no path, so they flood. That is the FAQ's answer, not a bug.
  • Path hashes: firmware 1.14+ repeats 1-, 2-, and 3-byte path hashes. Older repeaters silently drop 2- and 3-byte packets. Until a region is almost all on 1.14+, the FAQ says leave companions on the default 1-byte hash. 1-byte paths have 254 usable repeater IDs (first byte of the public key, excluding 00 and FF). Collisions do not stop forwarding. They make path analysis ambiguous. get prv.key / set prv.key exist because of that collision case. Doing it over USB serial also means the private key is available to anyone at the serial port.
  • Transmit power is board-specific. FAQ 7.7 says incorrect settings can permanently damage the radio, and that local law governs the 1 W rows. The in-app number is not the watts at the antenna. Read that table for the board in your hand. Do not use the maximum row as the field setting.
  • v1.18.0 also made minimal loop-detect the repeater default, and MACThenDecrypt rejects ciphertext that is not block-aligned. Those are bugfix-level, not a new threat model. SECURITY.md: fixes land on the latest release only.

Coverage still fails the same way every LoRa mesh fails: no line of sight, a dead battery, a wrong preset, or a companion left indoors talking only to itself. This note does not quote a kilometer range. The project docs used here do not publish one.

What MeshCore actually encrypts

Read from main on 2026-11-06, not from a comparison blog.

Identity is Ed25519 (PUB_KEY_SIZE 32, signature 64). LocalIdentity::calcSharedSecret is ed25519_key_exchange. Mesh::onRecvPacket computes that secret and calls Utils::MACThenDecrypt. Utils::encrypt is AES-128 in ECB mode (SASI_AES_MODE_ECB on the hardware path, encryptBlock on the software path), key length CIPHER_KEY_SIZE 16, so the first 16 bytes of the shared secret, zero-padded final block. encryptThenMAC then HMACs the ciphertext with SHA-256, key length PUB_KEY_SIZE (32 bytes of the same secret), and copies CIPHER_MAC_SIZE bytes of the HMAC. That constant is 2. A 2-byte MAC is 16 bits. The check rejects a mismatch. It does not make a 16-bit tag a strong authenticator.

Group packets call encryptThenMAC with channel.secret, not with a per-message ephemeral key. The payload doc marks group text unverified: any holder of the channel key can choose the sender name. The default public channel key is published in the FAQ, smartphone hex 8b3387e9c5cdea6ac9e5edbaa115cd72, T-Deck Base64 izOH6cXN6mrJ5e26oRXNcg<mark> (the third character is capital O, not zero). A public channel is a hailing channel, same role as Meshtastic AQ</mark>.

Direct payloads use the long-term ECDH secret. Nothing in this path is an ephemeral session key, so there is no forward secrecy here. Adverts are signed. Control packets are documented as typically unencrypted. SECURITY.md puts physical extraction (JTAG, UART) out of scope, which matches the fact that get prv.key prints the key on the serial console. No independent audit is claimed in that file.

The claim that MeshCore examples use Noise was not true of this tree. Do not configure a deployment from that sentence.

Trade-offs

Meshtastic is the mesh other people already run. That is the advantage and the leak. The default key, the default preset, and the public broker are how a stranger's node becomes useful in a disaster, and how a stranger reads your primary channel. Private use is a second channel with a random 32-byte key, uplink off, position off or coarsened, and a router that does not hold the key.

MeshCore spends less airtime once a path exists, because companions do not repeat and repeaters forward on a path instead of every packet. You pay for that with infrastructure you must site, password, and keep powered. A region still on 1-byte hashes and pre-1.14 repeaters will silently drop newer path sizes. The crypto is real and narrow: AES-128-ECB under a long-term secret, with a 2-byte MAC, and a published key on the default channel.

Neither stack hides the transmitter. Direction finding does not need the payload. Neither is a mixnet. For a destination that is a key rather than a channel, use Reticulum and Reticulum in Practice. For a phone that must work with no extra radio, this note is the wrong tool; see Briar and Bitchat.

Attack surface

What an observer gets Why What changes it
Default-channel plaintext AQ== and the MeshCore public channel key are in the source and the docs Random 32-byte PSK, shared out of band. Keep one default channel only if you want a public hailing channel.
Node IDs, hops, channel index Meshtastic header is never encrypted Nothing in this protocol. Short transmissions, mobility, and not beaconing are the only reductions.
Position on the primary channel Periodic position uses the primary key. Public keys are capped at 15 bits (729 m), not at zero position_precision 0 on channel 0. GPS mode DISABLED or NOT_PRESENT when you do not need it.
Internet copy of the mesh Uplink, a gateway that shares the default key, map reporting, or a phone proxy Leave MQTT off. ignore_mqtt true on radios that must stay local. Do not upload a MeshCore repeater to the internet map.
Later decryption of recorded channel traffic No forward secrecy on either stack Rotate channel keys. Do not store the private key on an unattended node.
Forged channel sender Default Meshtastic signature policy accepts unsigned packets. MeshCore group text is unverified. MeshCore's MAC is 2 bytes 2.8+ signatures plus BALANCED or STRICT, knowing STM32WL and oversized packets still go unsigned. Out-of-band key confirm for DMs.
First public key wins Meshtastic trusts the first key heard for a node number Confirm keys out of band before a sensitive DM.
Repeater takeover MeshCore admin password defaults to password. Private key is printable on USB serial Change the password at the bench. Physical access to the serial port is key access.
Wrong-role airtime collapse ROUTER in a pocket, ALL rebroadcast, hop limit above 3, a moving MeshCore repeater CLIENT or CLIENT_MUTE for handhelds. Fixed repeaters only.
Duty-cycle or power violation override_duty_cycle, or a PA setting past the board's safe in-app value Leave the override false. Use FAQ 7.7 for that board, then the local limit, not the maximum row.
Alpha firmware on a mast v2.8.2.4c89b69 was revoked two days before the next alpha Non-prerelease tag for anything you cannot physically recover. MeshCore: stay on 1.18.0; older than 1.15 is outside the security policy.

Evidence at a glance

Claim Source Date read
Default primary key is AQ== / hex 0x01; random generates a 256-bit key; public keys cap position at 15 bits Channel configuration 2026-11-06
Header never encrypted; DMs are X25519 + AES-256-CCM; no forward secrecy; do not put private keys on unattended nodes Encryption 2026-11-06
Primary name defaults to LongFast with key AQ==; hop limit should stay 3; public MQTT may publish every node's location Configuration tips 2026-11-06
mqtt.encryption_enabled defaults false and then the broker receives decrypted packets; map report is unencrypted, about 1,459 m, interval 3,600 s MQTT module 2026-11-06
config_ok_to_mqtt defaults false, is a polite request, and does not apply to custom channel keys LoRa configuration 2026-11-06
Smart broadcast on; broadcast interval default 15 minutes; GPS update default 2 minutes Position configuration 2026-11-06
Role list; ALL rebroadcasts across encryption boundaries; REPEATER is invisible in the nodes list Device configuration 2026-11-06
v2.7.26.54e0d8d is the newest non-prerelease tag (2026-06-24, named Beta). v2.8.2.d5f1619 Alpha published 2026-11-04. v2.8.2.4c89b69 named Revoked firmware releases 2026-11-06
Repeater goes high; admin password password; guest password hello; clients do not repeat; public channel key published; 12-hour flood advert MeshCore FAQ 2026-11-06
AES-128-ECB, 16-byte key from the ECDH secret, HMAC-SHA256 truncated to 2 bytes src/Utils.cpp, src/MeshCore.h, src/Mesh.cpp on main 2026-11-06
v1.18.0 repeater, companion, and room-server builds, 2026-10-15. Security fixes only on latest; 1.15+ supported GitHub releases and SECURITY.md 2026-11-06

Primary sources

Page history

Updated
2026-11-06
Origin
Compiled from the ungovernable.tech research notes.
Improve this page
Suggest an edit — issues and pull requests are welcome.