RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4
https://rns.recipes/forum/general/important-security-notice-media-conversion-in-rngit-and-nomadnet

RNS 1.6.1 Released

Pinned

Started by Mark bc7291552be7a58f... ·

Mark 8dd57a7382268096...
#1

This release brings yet another round of major efficiency, performance and filtering improvements to RNS, and continues the transition towards full network stamp functionality.

 

All network stamp types will now be generated and emitted by default. Expect some CPU load once your applications start up for the first time on 1.6.1, as destination stamps are generated.

 

Changes

  • Enabled network stamp generation by default
  • Added ability to filter destination types by hash
  • Added hop limiter options both globally and per-interface
  • Added super fast announce ingress pre-filtering
  • Added filtered traffic stats to rnstatus
  • Added link traffic stats to rnstatus
  • Added display of remote transport IDs per client interface in rnstatus.
  • Ability to inspect filtered traffic, announces, et cetera in rnstatus per interface
  • Ability to inspect tunnel properties, stamp costs, remote implementation info and more in rnstatus
  • Added ability to set client_limit on BackboneInterface, defaults to 500
  • Added ability to configure the maximum amount of stamp workers and worker niceness
  • Added ability to place a blocked_ips file in your config directory to permanently block IPs
  • Added ability to directly blackhole remote transport nodes
  • Added ability to configure stamp values and costs for rngit
  • Added asynchronous, interleaved held announce queue cleaning across all interfaces based on potential announce usability
  • Added bidirectional tunnel synthesis on non shared-medium interfaces, with stamp cost and version signalling
  • Added announce rate table persistence between instance restarts
  • Added default caps for configured auto-connect interface counts
  • Added path state info to API path table getters
  • Significantly optimized and improved inbound announce filtering and deduplication
  • Significantly optimized and reworked the filtering subsystem for scalability across hundreds of interfaces
  • Improved rnpath display and filtering options
  • Improved traffic counting
  • Improved path responsiveness tracking
  • Improved protocol violation tracking and logging
  • Improved path pool and tunnel table culling
  • Tuned announce validation caches and other parameters
  • Fixed a regression introduced in 1.6.0, that could cause path table culling to temporarily remove an instance's own local destination paths
  • Fixed dataplane egress control state not resetting on BackboneInterface client connection recovery
  • Fixed a potential logging deadlock
  • Fixed a potential exit handler deadlock if a signal arrives mid RPC call
  • Fixed missing wanted destination type for interface discovery when local announce filtering was enabled
  • Fixed split-instance initial known-destinations load not being available on Android
  • Added mitigation for a CPython process fork deadlock dug in stdin handling
Mark 8dd57a7382268096...
#2

As usual, if you find anything weird or broken, let me know!

Mark 8dd57a7382268096...
#3

And also, this should fix some RPC weirdness on macOS. If you have a mac, and have been experiencing RPC failures and hangs, could you please let me know if these issues are gone in 1.6.1? I don't have a mac to test on at the moment, so running a bit blind in that particular regard.

oatmilk! 47829b93a57f1d41...
#4

looks good, will update my devices to the latest version tonight and let you know if i see any issues

aetherlab Moderator 509723a0ccb60610...
#5

Sofia nodes and server are on 1.6.1 now.

Mark 8dd57a7382268096...
#6

Updated Sideband release coming in shortly as well, but might have to postpone that one until I've had some sleep!

 

Will get it done as fast as I can though, there local destination path table culling bug mentioned above (that was fixed in 1.6.1) is also present in the Android and AppImage builds of Sideband, and it's rather annoying, so if you've been seeing sub-optimal path resolution to your LXMF destinations lately, that's the reason. But please bear with me for a night or so, I need some rest ;)

oatmilk! 47829b93a57f1d41...
#7

Mark wrote:

Updated Sideband release coming in shortly as well, but might have to postpone that one until I've had some sleep!

Will get it done as fast as I can though, there local destination path table culling bug mentioned above (that was fixed in 1.6.1) is also present in the Android and AppImage builds of Sideband, and it's rather annoying, so if you've been seeing sub-optimal path resolution to your LXMF destinations lately, that's the reason. But please bear with me for a night or so, I need some rest ;)

 

go get some sleep, the ret` can wait

Mark 8dd57a7382268096...
#8

Yeah, about to :) But just got nomadnet 1.5.1 out now as well, with stamp support so you can configure and see stamp values and costs. That'll be it for today. Have a nice time everyone!

 

Get some nodes updated and let's see how this one rolls. Should be some significant improvements, especially to older and/or slower devices.

Mark 8dd57a7382268096...
#9

Also, if you have been running one of the pre-release 1.6.1 version from source, please upgrade to the release version, or sync the source to the 1.6.1 tag! There were several inconsistencies at points along the development, and a few bugs were fixed right before the final release tag, so very important to get updated fully!

oatmilk! 47829b93a57f1d41...
edited #10

seeing some odd behavior on my server i'm trying to set up (currently on the 1.6.1 and 1.5.1 respectively) image.png
i assume this is still not normal numbers? (ignore the i2p interface, i'm trying to figure out how the fuck to set that up and having issues, and i'll go minorly necro the help thread on that if i can't figure it out)

oatmilk! 47829b93a57f1d41...
edited #11

andddddddd i broke it image.png
last thing i did was trying to set up a Yggdrasil connection (decided to punt on the i2p interface for rn)
going to go to bed for now instead of rage reinstalling

Mark Moderator 8dd57a7382268096...
edited #12

Oatmilk, you need to put these I2P experiments in a separate thread in the Help section or something, this is clogging up the main release thread.

 

You can't set an IFAC size to None, that makes absolutely no sense.

 

Edit:
I forgot to mention, those inbound announce rates are approximately 4.5 announces per second. When connecting to large public backbone nodes directly, that's more or less what I'd expect currently, so all good there.

 

Once more nodes upgrade to 1.6.1, the amount of unnecessary announces should start to decrease, but there will still be a lot of announces going around at this point, since a somewhat significant number of nodes do not have any rate limit controls, and some even outright just repeat everything without any checks. Once a larger fraction of the network is on 1.6.1, that should be enough to filter almost all of it.

 

Then, a bit later, when stamps are enforced, expect to see a very big drop in the announce spam.

j 63061093a3bf6a4d...
#13

Congrats, Mark and everyone involved, with the release! <3

 

I had a bunch of odd behaviours since 1.6.0. mainly not being able to reach people i had been in touch with before... pages not loading that i knew were online etc.

 

Today got message from my friend and my reply wouldnt fly back (i think he is not upgraded yet). Through other channel he suggested i manually delete my path to him to try again, and:

 

$ rnpath -t
Traceback (most recent call last):
  File "/home/jz/.local/bin/rnpath", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/jz/.local/pipx/venvs/rns/lib/python3.13/site-packages/RNS/Utilities/rnpath.py", line 552, in main
    program_setup(configdir=configarg, table=args.table, rates=args.rates, drop=args.drop, destination_hexhash=args.destination,
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  verbosity=args.verbose, timeout=args.w, drop_queues=args.drop_announces, drop_via=args.drop_via, max_hops=args.max, min_value=args.min_value,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
                  remote_blackhole_list_filter=args.list_filter, usage=args.usage, vias=args.vias, active=args.active, expinfo=args.expiry,
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  analyze=args.analyze, capture=args.capture, json=args.json)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jz/.local/pipx/venvs/rns/lib/python3.13/site-packages/RNS/Utilities/rnpath.py", line 303, in program_setup
    if   path["state"] == RNS.Transport.STATE_RESPONSIVE:   state_str = " (R)"
         ~~~~^^^^^^^^^
KeyError: 'state'

 

is there something i should be doing to help further diagnose?

oatmilk! 47829b93a57f1d41...
#14

Mark wrote:

Oatmilk, you need to put these I2P experiments in a separate thread in the Help section or something, this is clogging up the main release thread.

 

will do, sorry

Mark 8dd57a7382268096...
edited #15

No worries @oatmilk, just a bit easier to keep everything organised that way.

 

@j, good info regarding the paths. It could just be he's not upgraded yet, the bug that was in 1.6.0 would produce exactly that kind of behaviour. Also, if he's on Sideband or another app that still has not gotten a 1.6.1-based version built and released, that would explain it.

 

I'll have Sideband 2.3.1 out with RNS 1.6.1 very soon, but this whole day was unexpectedly eaten by that other issue ;)

 

Regarding that error, it looks like the ʼrnsdʼ or shared instance on the system is still running ʼ1.6.0ʼ maybe, but ʼrnpathʼ is ʼ1.6.1ʼ, and it's trying to get the path state data, which it now displays in the table output, but older versions didn't provide. Can you try and ensure all Reticulum software has been restarted after installing 1.6.1? And that you don't have any old versions hanging somewhere? After that, does it still error out on ʼrnpath -tʼ?

j 63061093a3bf6a4d...
edited #16

Thanks for your attention and answer!

 

I was pretty sure it was 1.6.1 that was running.. then realized i knew of no formal way of checking which version is currently running... so i killed the nomadnet instance, that was instanciating rnsd, launched it again (checked that no other rnsd was running) and with nomadnet 1.5.0 and rnsd 1.6.1 the error is still there.

 

Good luck with focus and everything ;)

oatmilk! 47829b93a57f1d41...
edited #17

j wrote:

Thanks for your attention and answer!

I was pretty sure it was 1.6.1 that was running.. then realized i knew of no formal way of checking which version is currently running... so i killed the nomadnet instance, that was instanciating rnsd, launched it again (checked that no other rnsd was running) and with nomadnet 1.5.0 and rnsd 1.6.1 the error is still there.

Good luck with focus and everything ;)

 

 

 

nomadnet 1.5.1 is out, see if updating to that helps

 

btw @mark i fixed it, and i think there might be a bug in nomadnet that caused that crash, will make a thread for it gimme a sec (https://rns.recipes/forum/help/nomadnet-i2p-auto-importdisabled-interface-issues-linux-ubuntu-server)

Mitch 8063324e60eac60b...
#18

Good evening everyone!! First of all thank you Mark for your tireless work!! Version 1.6.1 solved the announce flood problem quite well, in combo with filters and the other optimizations, from the first launch I saw the difference, in a few minutes hundreds of announces usually arrived but now they remain around the ten. Unfortunately I'm the usual spoiler and I noticed the problem of duplication discovery announces with transport off has reappeared. I immediately thought of a regression in v1.6.1 since it was the same thing or effect that happened before the 1.5.7 fix, but actually it doesn't seem the same bug, I couldn't understand where it comes from unfortunately, but the effect is the same, a node with discovery on and transport off uses ephemeral identity and so on maps the rnodes duplicates many times based on how many reboots you do to rnsd, every restart identity is new and i found my node duplicated 8 times on rmap, i think also on recipes map, i'll check now. I fixed my issue by setting static_transport_identity = yes but I think a fix is needed in the next release.

Mitch 8063324e60eac60b...
#19

And there is another phenomenon happening online, this could depend on the various portings without protections circulating online, this is both on-topic and offtopic here maybe, but it's good for me to explain it because it is linked to the previous bug. I am investigating what is happening but it is difficult to understand having only the first visible hop available. Basically, this happens and it also happened to my rnode after the duplication described earlier on the maps: some transport nodes, after my node went offline, broadcasted my old announce from distant hops, that is, my node is off, and let's say I saw it at 2 hops when running. After putting it offline, announces still arrive routed by someone with large hops like 8 , 20 and also 57, and it is not my node announcing, its off, powered off!! I hope I've been clear, I'm finishing investigating and I also have a theoretical solution in mind using the signed timestamp as an idea, unfortunately not at the code level at the moment. this thing is causing a sort of DoS, poisoning the routing table when a node goes offline by resending a fake path on the net, it happens not only after a node goes offline. when is connected the path is correct, but if i have it connected for long time, the path sometime changes because it is suggested by these far away nodes and not the real node that is online but that doesnt announce often like these other nodes. to replicate: create a rnode or a lxmf client, announce it a couple of times, put it offline and watch what happens on the maps or in your announce list or cache, you keep receiving your node announce, but from some remote transport nodes somwhere with huge hop number, so from clients side it seems that a peer has announced but is not true! and this happens on lxmf, nomadnet, rnode and other clients i have tested! i also created a script to discover the unofficial rns portings on the net from discovery announces, if someone is interested i'll share it, and from the results of this script, i see these portings have a high number of hops like the same hops of these announces with wrong path or wrong node online appearence!! one of this result is often: rsRNS 1.5.0 !!

K8 8e4525cda4482720...
#20

Mitch wrote:

And there is another phenomenon happening online, this could depend on the various portings without protections circulating online, this is both on-topic and offtopic here maybe, but it's good for me to explain it because it is linked to the previous bug. I am investigating what is happening but it is difficult to understand having only the first visible hop available. Basically, this happens and it also happened to my rnode after the duplication described earlier on the maps: some transport nodes, after my node went offline, broadcasted my old announce from distant hops, that is, my node is off, and let's say I saw it at 2 hops when running. After putting it offline, announces still arrive routed by someone with large hops like 8 , 20 and also 57, and it is not my node announcing, its off, powered off!! I hope I've been clear, I'm finishing investigating and I also have a theoretical solution in mind using the signed timestamp as an idea, unfortunately not at the code level at the moment. this thing is causing a sort of DoS, poisoning the routing table when a node goes offline by resending a fake path on the net, it happens not only after a node goes offline. when is connected the path is correct, but if i have it connected for long time, the path sometime changes because it is suggested by these far away nodes and not the real node that is online but that doesnt announce often like these other nodes. to replicate: create a rnode or a lxmf client, announce it a couple of times, put it offline and watch what happens on the maps or in your announce list or cache, you keep receiving your node announce, but from some remote transport nodes somwhere with huge hop number, so from clients side it seems that a peer has announced but is not true! and this happens on lxmf, nomadnet, rnode and other clients i have tested! i also created a script to discover the unofficial rns portings on the net from discovery announces, if someone is interested i'll share it, and from the results of this script, i see these portings have a high number of hops like the same hops of these announces with wrong path or wrong node online appearence!! one of this result is often: rsRNS 1.5.0 !!

 

Do you have any raw announce packets like that to analyze? If so, do they have the Packet.PATH_RESPONSE context flag set? As far as I’ve understood it, the thing with seeing offline nodes with high hops counts is generally related to path requests. A client tries to establish a link, fails, the transport nodes along the path notice this and invalidate their path to the destination, and the client makes a recursive path request. A subset of transport nodes already have their path invalidated so they forward the PR, and eventually it reaches a transport node that still thinks it has a path to the destination, which then responds with a higher hop count path. As the cycle repeats the hop counts naturally get higher and higher.

 

A bad implementation could try to just replay the original announce, but correctly behaving nodes should drop it.

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard