this post was submitted on 24 Nov 2024
10 points (100.0% liked)

Self Hosted - Self-hosting your services.

11599 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

I've been stressing out for some hours now, but I think I know what has happened, although there are still some things that's not quite adding up, and was hoping someone could help me get to the bottom of it. The actual question is at the bottom.

First some background I'm self-hosting Nextcloud on a Linode, and was notified that the public out network traffic exceeded my set threshold. I first assumed that I've had a breach on my server, but could find no trace of someone logging in. The reason I now feel at least somewhat easier is:

  1. No sign of anyone ssh-ing in successfully before the time this happened from /var/logs/auth.log (I guess this is not hard to cover though...)
  2. ssh through root is disabled - they would have to know my username and my password, which should not be brute-forceable, and the way it's stored in my password manager does not immediately allow linking the two (although, if my password manager is compromised I don't know what to do). I have no other signs that this has been compromised, and I think my Nextcloud-server would be a weird place to start if they had access to it all.
  3. I have 2FA on my Linode account, so accessing root (which also has a different and not easily brute-forceable password) through LISH should also be difficult.
  4. The amount of traffic (based on the average network traffic Linode reported) amounts to several times the total data stored on the server. I would expect a malicious actor to grab everything once, and not spend more time than necessary to needlessly duplicate the data.

What I now think happened instead is that my desktop client has resynced everything several times over. The reasons I think this:

  1. The network activity started more or less when I opened my laptop this morning
  2. The desktop client was for some reason entered twice in the autostart, causing two version of the client to be started at the same time. This caused some conflicts today - when I noticed this and resolved these, I quit the second instance, and that is about the time the network activity stopped
  3. The same thing happened later today, which caused a spike in CPU-usage on the server, but did not trigger the same network traffic as the desktop client seems to have crashed quickly after.

The actual question However, the last piece of the puzzle that I can't figure out that still has me somewhat nervous: the maximum outbound transfer speed greatly exceeds my download speed (about 4 times). From the graph, it seems as though it maintains this high speed, but it seems to maybe just log the maximum value every five minutes, so maybe these are just spikes? The reported average over the two hours this occurred more or less matches my maximum download speed however, although I don't really think I can get that from where I am sitting on my WiFi.

Is this the glove that doesn't fit?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 month ago

Thanks, I didn't consider something like that. Would have wanted to see some more detailed graphs from Linode to see how long these max speeds were sustained, but I can't seem to find it.