LoRa Mesh security and addressing

  • Hi!

    I built a program around the LoRa Mesh example.
    In the example code only direct neighbors which are in range of the sender are addressed and not the devices which are in the mesh, but only over devices in between.

    So i changed the sending process to multicast

    MULTICAST_MESH_ALL = 'ff03::1'

    and except for a few packet losses, it works.

    This brings me to a few general security issues, because everyone with a device running LoRa Mesh on the same settings could sniff my outgoing data!?

    So what is the easiest way to make my system a little more secure.

    Is it possible to address only my known devices inside the mesh (e.g. by MAC Address)? What's the "normal" way to do this.

    Or is it easier to use some kind of encryption...

    Thanks for your help!

  • @catalin Great, what did come out of the meeting ??
    hope you can release soon, let us know when to expect the code


  • hi @rudivd @ricardolima,
    Sorry for the long wait, today we have an internal meeting, to decide on the licensing.

  • @catalin 21 days ago you said that a new release of the mesh code was imminent, where can I find it ?

  • @catalin Any news on this ? I Really want to make a mesh with devices which does not have direct contact and that feature working will be great :D

    @cuca94 Can you tell us what did you to workaround that ? How did you change the sending process to MULTICAST_MESH_ALL = 'ff03::1' ?

    Thank you

  • @catalin Waiting anxiously for the new release.
    I am also facing that issue

  • @cuca94, hi!
    It's safer to tag me directly @catalin, so I am directly notified.
    In the latest code, not yet released, I've added in the Mesh() constructor the 128bits key, which authenticates and encrypts all mesh traffic. Let's call this basic security.
    Secondly, I've prepared scripts examples for both symmetric and asymmetric encryption inside Pymesh, this is above the basic security and allows private communication channels in the Pymesh.

    To address nodes, in the soon to be released (end of this week) pymesh library, I've added a custom IPv6 address for each node, which resembles LoRa MAC address, so by knowing your devices MAC address, you can try to access them in the mesh (sending an UDP message to the known IPv6 and waiting for ACK).

  • @catalin maybe u could help me? ;)

Log in to reply

Pycom on Twitter