RNS Logo

rns.recipes

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

Spam Tsunamis & Filtering Improvements

Pinned

Started by Mark bc7291552be7a58f... ·

Mark 8dd57a7382268096...
#1

So... I've been down a bit of a rabbit hole since that whole 2000+ node cloud infra "joining Reticulum" saga. It provdied some absolutely excellent data and real-life pressure testing.

 

I've been monitoring the situation, not just like Kai Lentit, though ;)

 

In addition to Microsoft Azure suddenly taking a queasy interest in RNS, we're also starting to see a non-trivial amount of these, ahem... "alternative implementations" connecting to the network. I've been staring at dual streams of rnsd log output at level 8 for days now, running all kinds of weird and occult experiments, tracing flow patterns and trying to fingerprint implementation behaviour.

 

I'm fucking exhausted at this point, so if this post becomes a bit of a ramble at times, please excuse me.

 

The long and the short of it is, we've reached a point, where there's a lot of crap out there, that is trying look like Reticulum, but acting like some fever-dream cross between a nineties ethernet hub and a casette deck running at 9000 RPM.

 

The horrors I've seen. Nodes sending endless streams of tunnel synthesis packets at random moments for no apparent reason. Devices just dumb-repeating everything you send to them (and, probably, everything that anyone sends to them). Non-routable PLAIN packets arriving with several hops and transport headers. What appears to be user devices in people's pockets trying to run something akin to transport nodes on LLM-implemented crap-stacks. Protocol violations so obscene that I don't even know if I dare log them. Client apps announcing every sixty seconds (even the default 15 minutes in some apps I found is crazy and completely unnecessary; have you heard about path requests, man?).

 

But worst of all, in terms of the overall network health, are the now sizeable number of nodes that just plain fucking rebroadcast every annouunce they hear; no rate limits, no duplicate checks, no - fucking - nothing. Nada.

 

Even more gravely, this class of devices / nodes / whatever the hell it is, seems hellbent on connecting to as many other nodes as they can. As if having seventyfour interfaces is going to meaningfully increase your connectivity or redundancy. What it is, is simply slop, and a very destructive and wasteful kind.

 

(In a kind recommendation here, if you're running RNS and set your autoconnect interfaces to a wild number, it's really not necessary. On a home node or similar, you'll be plenty fine with 3. Seriously, it will work out much better for you. If you're running a large backbone node that can actually provide meaningful capacity to the networks, you can bump to 12 interfaces in total or so. More is not gonna help. Having a smaller number of high-quality connections is much more helpful to the network as a whole.)

 

Anyway, this is only gonna get worse, so something had to be done, more or less immediately. Which sucks a bit, because I was already completely overworked and immensely exhausted from the insane efforts I put into 1.6.0, and was kinda hoping for a bit of a recovery break before starting work proper on 1.6.1. You know, just a week of downtime or so. Staring at some trees.

 

But either way, here we are. Azure and AWS suddenly falling in love with RNS and a throve of LLM-coded nonsense that wasn't informed we're no longer living in the 80's, and a swarm of slopware abusing a network built and maintained by volunteers, so they can "ship" a shiny UI with lots of buzzwords, while providing no actual benefit to the communities and people that depend on Reticulum. Never mind breaking the open source licenses! Not even a darned link back to Reticulum can be found on most of these projects. Ugh...

 

Fortunately, I'm not just an expert at ranting, so I've been working quite a bit...

 

This has been an insane effort to get right in such a short amount of time, and if I did not get it completely right, I hope you will help by investigating and reporting any weirdness you see. And, this is by no means complete yet, but the foundations are now very, very good, incredibly efficient and ready to further expand on.

 

I've optimized and expanded the filtering system in RNS to a level, where it can now efficiently drop almost all needless traffic, in real-time, across hundreds (even thousands, probably) of interfaces, using less compute than it did before the filtering was implemented.

 

I rarely shine my own halo, but if there was ever a time where I thought an engineering-pat-on-the-back was deserved, it's probably now. Also, if anyone wants to sponsor a week at the beach with a complimentary bottle of rum, eerrr, let me know, okay?

 

There's still plenty of work to do here, plenty of improvements that can be made, but what we now have since 1.6.0 includes:

 

  • An incredibly optimized and efficient filtering subsystem, that drops unneeded traffic (especially announce spam) in real-time. I contemplated calling it [laserwall], but you'll have to live with [filter] in the config, for now.
  • Almost everything is automatic. You don't have to tune or enable it for it to work efficiently, but you can add additional destination type filtering, if you want to.
  • Destination types can now also be filtered directly by hash, if you don't know the aspect names.
  • Super fast announce ingress pre-filtering.
  • Asynchronous, interleaved held announce queue cleaning across all interfaces, based on the now obvious idea of detecting whether a held announce could potentially actually be useful for anyone. Yeah, simple idea baby, hard to get right so it's fast enough to do for thousands of announces every second.
  • Fully bidirectional tunnel synthesis on non shared-medium interfaces (backbone, TCP, et cetera), with stamp cost and version signalling. This will also form the basis for the upcoming auto-encryption of RNS connections that go over public internet links, and provide the possibility for more advanced authentication systems.
  • Many improvements to protocol violation logging, much easier to detect weird nodes.
  • Hop limiter options both globally and per-interface.
  • The blackhole system now also targets remote transport nodes. You can directly blackhole a remote transport ID, and it's gone. Poof.
  • You can now see remote transport IDs per client interface in rnstatus.
  • Improved traffic counting, and exact filtered traffic stats.
  • 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
  • The announce rate table is now persisted and loaded between instance restarts. This significantly speeds up learning the spammy announcers, and cuts overall crap emission by, well, a lot.
  • You can now set a client_limit on BackboneInterface. 500 by default. Raise or lower as you see fit.
  • You can now place a blocked_ips file in your config directory to permanently block IPs.
  • Quite decently improved path pool and tunnel table culling.
  • You can now configure the maximum amount of stamp workers and worker niceness in the config file.

 

All of this is in the source repos. It will be included in 1.6.1 of course, but it will all need to pass a bit more testing and quality checking before I can wrap it up and release it. So grab it from Aleph if you want to help test it out on your own nodes.

Mark 8dd57a7382268096...
#2

As an example, here's a little demo. I opened the floodgates by temporarily lifting the blackhole, and let the 100 or so turbospamming "transport nodes" back in.

 

Take this jolly chap, for instance:

 

 BackboneInterface[Client on Bern IPv4/x.x.x.x]
    Status    : Up
    Mode      : Gateway
    Rate      : 250.00 Mbps, MTU 65536
    Tunnel ID : 41d608343fe403001cff737ad343ce94606cbe9ccab505a2d8c8f5ee2a435236
    Rem.Tr.ID : <215a1bae08e91d3fac657f3009710812>
    Rem.Vers. : Unknown implementation, unknown version
    Rem.Csts. : Dst ?, PR ?
    Held      : 64 announces
    Announces : 139255↓ 11250↑ total, 132944 filtered
                0.7 Hz↑    (↓0% / ↑0% of flow)
                8.2 Hz↓    (t:6h/p:0s/g:1) burst for 5h, 49m and 28.32s
    Traffic   : ↑7.70 MB    0 bps
                ↓787.39 KB  0 bps
    Filtered  : ↑0 B  0 bps
                ↓50.44 MB  0 bps

 

787 KB of traffic that did something. Fifty MEGABYTES filtered. That's 64x more filtered traffic than what was actually deemed even just tangentially useful. And the fun part is, had the node been running software that actually had just the slightest care about how Reticulum works, that filtered count would have been much closer to zero.

 

Yes, there is always going to be some duplication of announces and path requests, and that's a good and intended thing for redundancy and reliability. But this is insane.

 

It's a good demonstration of how well this works now, though. Before, the node would be straining under the announce load at time, especially when ingress hit 2000+ announces per second. Now, it's barely breaking a sweat. Even with all the weirdos allowed in, and all the other legitimate traffic, I can run voice calls perfectly over it without any drops or stutter, which is always a nice stress test for any kind of networked system :)

Mark 8dd57a7382268096...
#3

Also, just to be clear, the new filters are very conservative. They could probably be tightened a lot more, but better safe than sorry at this point. And already, the gains are pretty nice.

Mark 8dd57a7382268096...
#4

Also also, a lot of this will evaporate once stamps are activated and enforced network-wide. But this has been an opportune moment to test and optimize the entire system under much more heavy pressure before that.

 

So, while I currently feel like I've been sat on by a very fat lady for too long, I guess we can call it a success after all.

 

Now, the darned rum please, if anyone could be so kind!

oatmilk! 47829b93a57f1d41...
#5

very nice!

LadyInGreen 46cbf96330601d19...
#6

What you have given us in the past 10+ years, and what you keep on giving, I think is beyond comprehension for most people, myself included.

 

I am deeply grateful for all the time and energy you keep pouring into this network stack. It's something vital, an infrastructure that could genuinely hold up a whole society.

 

Reticulum feels like a beacon in the dark, showing us that true authentic human connection still is and will will continue to be possible, without some third part looking over your shoulder, analyzing/reinterpreting you every word while feeding it into the global surveillance network.

 

I trust that most people will see the absurdity of running these "shiny, finished and audited" LLM generated drop in replacements of RNS, created in just a few months. Some will be swayed by the big words they use ("RUST, AUDITED, FASTER will be examples of these..."), but with your logging of which software a backbone node uses, like the "Rem.Vers. : Unknown implementation, unknown version" in your example, I think it will be clear who is responsible for the spam on the network.

 

Luckily now, with your latest load of work given to us, we can just exclude these bad actors from our own networks and let them spend their tokens in peace.

 

The people addicted to pressing their big red button and copying RNS will not change and they will always be there. Hopefully though, the actual users will soon be able to recognize them in an instant and dismiss their BS for what is is.

 

Again, thank you for all you give so freely to humanity. I hope you will be properly rewarded someday!

c893ed96 a012487a042f8379...
#7

Wow, this is next level incident response for a open source project. Thanks for this and the Reticulum stack!

#8

Well damn so that wasn't normal traffic on my local gateway. Well when 1.6.1 comes I'll update everything all at once.

Mees electronics bc848925e9890536...
#9

This morning, I've installed rns 1.6.1. Although my node was not heavily attacked this weekend, I still thought it was a good idea to give the new version a go. And I must say, I can see the changes on my dashboard: announces now come in at a steady flow, no more spikes. Traffic over all is down as well. My little node never had many clients connected to it, but now the number of clients is more stable than before. And everything is working perfectly. CPU load is low, as is memory usage. And even when I thought my node wasn't affected: about 60% of the traffic is now being filtered. Hats off to you, Mark.

LinuxinaBit 2b4116b574e3a4f3...
#10

Now this is how you deal with junk on the network. Heck yeah!

kujeger ab1f161e088beeb9...
#11

Thank you so much for your work!

Mark 8dd57a7382268096...
#12

Thanks so much everyone :)

 

Well damn so that wasn't normal traffic on my local gateway

 

Lol, no it definitely wasn't :P

 

Things are shaping up, and RNS 1.6.1 is probably more or less ready for release by now. It will probably still be a day or two at least, but all the latest changes are now in the repos.

NONGKHAEM_BKK_TH e23e9a470d42f05d...
#13

This is amazing work - thank you so much Mark. While it is called filter, I'll remember it as the "Lazerwall" initiative :) Very very cool, and very very much needed indeed!

burger ace748e1c4e3fd4e...
#14

inserting my 15 rubles
it would be cool for an alternative implementation to exist, and be fully compatible with the reference implementation
because all i see is just. vibe-sharted. shit. straight out of ass.
and like microReticulum and the rust thing dude.eth is making

Post a Reply

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

Log in to upload images

Quote
Copied to clipboard