this post was submitted on 30 Nov 2026
206 points (98.1% liked)

Selfhosted

64159 readers
1042 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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I've run a bunch of self-hosted services for quite some time now. Mostly, the usual media and file storage suspects.

Last week, I switched my network over to Firewalla boxes for routing, network monitoring, and mesh wifi. I went with them instead of a self-hosted solution because of the push alerts you get on mobile, plus setting up vLAN and vqLANs to separate family, IOT, work, and guest networks.

Slowly started moving over different devices. Within 5 minutes of putting the server on the network segment, started getting warning alerts that the server was contacting potential malware sites. In Japan, Africa, then Pakistan! The mobile app let me block this outbound traffic, but it kept changing. Russia, South America, Canada, etc. Definitely a botnet, and the volume of outbound data kept going up.

After a few minutes of this, I just went over and pulled the power plug. This server is mainly running media hosting stack via Docker on top of Ubuntu. Pretty stock, with no manually installed plugins or anything. I'm likely going to nuke the whole thing and manually install only the bits that I need.

Anyway, as a PSA, recommend everyone set up an active network monitoring system, ideally separate from the host itself. I thought I was pretty careful with my ports, regular virus scans, and firewall rules. Have learned my lesson.

No affiliation with any vendor. Just passing it forward.

top 50 comments
sorted by: hot top controversial new old
[–] GameGod@lemmy.ca 11 points 17 hours ago (1 children)

Is there a package for OpenWRT that provides this kind of analysis?

[–] MuttMutt@lemmy.world 3 points 16 hours ago (1 children)

Even if there is you will likely find any converted router to be too underpowered to deal with it along with routing duties.

[–] GameGod@lemmy.ca 2 points 12 hours ago

I'm not running it on a converted router. 🫠 But writing some code to do this performantly sounds like a fun challenge!

[–] MuttMutt@lemmy.world 11 points 18 hours ago (3 children)

The first upgrade on the self hosting journey IMHO is switching from a craptastic hardware router to a firewall. I've used OpnSense for a long time and switching was one of the best decisions I made.

[–] hexagonwin@lemmy.today 1 points 6 hours ago

is it easy to do such in/outbound analytics in opnsense? i've never used opnsense. it would be nice if it works from a pretty webui since i'm not a network guru.

[–] trilobite@lemmy.ml 4 points 16 hours ago

I second this although i'm using pfsense with the ambition to one day move to oprnsense

[–] neo2478@sh.itjust.works 2 points 17 hours ago (1 children)
[–] MuttMutt@lemmy.world 11 points 16 hours ago

OpnSense running on a E3-1226 v3 with 16GB of RAM currently. Firewall with multiple vLAN's, CrowdSec, and Intrusion Detection.

If you want details head over here https://lemmy.world/post/48913927/24549697

[–] Onsotumenh@discuss.tchncs.de 18 points 22 hours ago (2 children)

Do you have Flaresolvarr in your stack by chance?
Had some weird CPU spikes on my NAS for a while and then noticed suspicious blocked DNS requests. After diagnostics I could single out my ARR stack and after some further research found out that my Flaresolvarr container was running a crypto miner and trying to download more malware.
After eradicating the container and some extensive scans (which came out negative) everything was back to normal.

[–] MouldyCat@feddit.uk 9 points 22 hours ago (1 children)

How do you think it happened? Had the docker file been tampered with or did the container become infected via a vulnerability or something?

[–] Onsotumenh@discuss.tchncs.de 14 points 22 hours ago (1 children)

I suspect it was a vulnerability in the integrated browser that caught the malware. And I strongly suspect it explicitly targeted Flaresolvarr as the malware knew how to phone home through containerization. I've checked the repository and the issues/discussions and didn't really find any complaints there.

[–] Reannlegge@lemmy.ca 3 points 17 hours ago (1 children)

Are you using flaresovlarr again?

[–] Onsotumenh@discuss.tchncs.de 1 points 43 minutes ago

Not since.
I wasn't really happy with the success rate anyway. I've looked at a few alternatives, mainly for SearXNG/Degoog, but haven't really implemented anything yet.

[–] fubarx@lemmy.world 3 points 18 hours ago (1 children)

I don't, but thank you for the idea that it might be a cryptominer. I just assumed it was a botnet, but a miner would also fit the profile.

[–] Onsotumenh@discuss.tchncs.de 1 points 38 minutes ago

I was quite a bit panicky till I saw that it was a miner and that Technitium had blocked all attempts of the malware downloader.

[–] esc@piefed.social 13 points 21 hours ago

Convenience of ready made services packaged and ready to go by anonymous people sometimes have downsides. 🙃

[–] solrize@lemmy.ml 57 points 1 day ago (2 children)

So what was causing the outbound traffic?

[–] fubarx@lemmy.world 15 points 1 day ago (1 children)

I'll try to diagnose it once I've put it on its own isolated network. My guess is something embedded in one of the servers. Maybe a supply-chain attack let someone sneak something in. Firewalla marked each destination host as potential malware.

[–] Fmstrat@lemmy.world 2 points 6 hours ago (1 children)

Would love to follow this, but unfortunately on Lemmy I can't subscribe to a post. Would you mind commenting here after diagnosis?

[–] fubarx@lemmy.world 1 points 2 hours ago

TBH, I was just going to zap the whole server and start all over. But the router lets me create an isolated segment. I'll see if I can track down the guilty process.

[–] MalReynolds@piefed.social 6 points 1 day ago

Pulled the plug, burning it down, they don't know. They may find out as they rebuild.

[–] MalReynolds@piefed.social 24 points 1 day ago (6 children)

It's good advice, but not a selfhosted solution. Other than the usual suspects (crowdsec, fail2ban, pihole, Technitium, and their logs) anyone got any good solutions? In the current environment of LLM assisted cyberattacks it sure would be nice to step up our game.

[–] Fmstrat@lemmy.world 1 points 6 hours ago

Opnsense with SNORT

[–] zarathustrad@lemmy.world 1 points 11 hours ago (1 children)

With only 2 users, I don't expose anything to the net, use only tailscale (for now, netbird is on the horizon) to connect remotely for each device/service.

Even so, my next big push is setting up more hardening, monitoring and general security stuff. (I already run a few proxmox hosts on mini PCs. One of those mini PCs is the physical router with VMs for Opnscence , monitoring, adblock. (VMs over containers for this host, I don't want some container causing kernel issues on the rounter). As you know, this solution is no longer cheap (salvaged the 2015-20 era PCs from the corporate trash heap, and bought extra ram in '25. Good luck now lol).

Unfortunately the weapon vs hostile LLMs is likely going to be smaller local read only LLMs to help monitor everything, recognize patterns and a kill switch to lock it all down until us slow humans can respond later. Of course that comes with other risks that have to be mitigated... Like knowing how to run local LLMs securely, offline, and locked down to only know and do very specific things.

[–] MalReynolds@piefed.social 2 points 11 hours ago (1 children)

Yeah, same. VMs are likely more hardenable (but rootless podman is likely better than docker, and perhaps VMs given SELinux) with what I have. If WireGuard gets broken we're all fucked (for a brief while). And yeah, it'll likely be Spy Vs Spy (LLM on LLM) as per Mad magazine for a while, but we'll likely come out the other side with much more robust systems. The meantime will likely be rough.

[–] zarathustrad@lemmy.world 1 points 10 hours ago (1 children)

Lol. I love any community where spy vs spy references are still alive. (But.. Yea dark days ahead on the security front IMHO. Security though obscurity is officially dead. Time to harden up and limit those attack surfaces.)

You just gave me a flash back to my Apple ][c. https://en.wikipedia.org/wiki/Spy_vs._Spy_II:_The_Island_Caper

Time to fire up the emulator!

[–] MalReynolds@piefed.social 1 points 10 hours ago

Nice to be known, but buckle up buttercup, best surface is none, next couple of years all the technical debt is coming home to roost. TBF I like the new games better.

[–] ComradeMiao@lemmy.world 9 points 22 hours ago

If you’re only using it for yourself then you should only be exposed via a VLAN accessible via VPN. Done.

[–] fubarx@lemmy.world 11 points 1 day ago (1 children)

I did look into self-hosting alternatives like Portmaster, OPNSense, IPFire, NethSecurity, and Zabbix.

I ultimately landed on a standalone device instead of a sidecar process. Main reason I posted the cautionary tale here was that it quickly let me discover malicious traffic on a selfhosted network that I was certain was safe and secure.

[–] MalReynolds@piefed.social 7 points 1 day ago* (last edited 1 day ago)

Fair enough, there's some value in an independent device (or more usefully, for more people, but more difficult, a VM or container) for this usecase. Minimal dependencies is important with the supply chain rampancy as an issue (even more than it always was). Thanks for raising it, no criticism implied, and it needs focus, just trying to raise the tide for all boats.

[–] MonkderVierte@lemmy.zip 7 points 23 hours ago* (last edited 23 hours ago) (1 children)

Defensive first and always have a second door. SSH only over VPN and no direct login to root, run services rootless and in a container and acl-restricted, stuff like that. Group them by usecase and how exposed they need to be. Exposed to the net means exposed to the enemy.

[–] MalReynolds@piefed.social 3 points 23 hours ago

Doors and Corners, paranoid bastards last( because you're protecting someone)

[–] CorrectAlias@piefed.blahaj.zone 6 points 1 day ago (1 children)

I believe opnsense with zenarmor can detect and block this sort of thing.

[–] MalReynolds@piefed.social 3 points 1 day ago (1 children)

Interesting, personally sort of waiting for a compelling (and cheap, sigh) piece of hardware for the router before implementing opnsense or equivalent. Still, seems like where it belongs, sure would be nice if there was a simple container solution instead though.

[–] lka1988@lemmy.dbzer0.com 1 points 9 hours ago

Once my UDM becomes unusable, I'm going full OPNSense with an Optiplex.

[–] Reannlegge@lemmy.ca 2 points 16 hours ago

Tl;Dr: do not use port 22 for anything, unless you are running crowdsec. Passwordless login with SSH keys is a good idea but use a different port than 22 for the love of Glob. VLANS, and multiple APs. HA blocking IoT things from the WAN. Pihole, unbound, and DoT. Always look for more security.

When I first started to try home labbing I had pihole and CUPS. Like an idiot I wanted to be able to ssh into my things away from home, in hopes of being able to use things when away from home, so I opened port 22 on my ISPs joke of a firewall. Before I really had an oppertunity to try ssh with DuckDNS my network became very slow, I did not think much about it but after a failed attempt with ssh and DuckDNS I decided to call my ISP and see what was up. That is when I found out if you want your ISP to update the software on the modem all you need to do is open port 22 and call and ask why your internet is slow. After realizing what I had done I went through all of my computers and things seeing what needed to be reformated and what not.

This put me off of home labbing for several years and something happened in 2020, can’t remember what it could have possibly been? /s

This time it was going to be different I was still using pihole and CUPS but I wanted to do so much more so I stayed behind my ISPs firewall opening other ports that are not 22, I did not get knowingly attacked so I was fine. The more and more services I added the more and more ports got opened, because I am an idiot who followed guides without thinking about my lab as a whole, internet got slow again so ISP flashed the firewall and I spent some time learning about internet security. I was sure it was not SSH because I had not opened port 22 so I wrote down everything I was using and flashed the pi SD cards (at this point all I had were SBC’s my iPad and iPhone) and started again. First things I did was change the SSH port, turn passwordless login on, and create keys. Than I went back into homelabbing when I got back into adding more of services back other than CUPS and pihole I thought about which ports where being used and started tip toeing into docker. Come to this year and half of my place flooded so having nothing better to do I jumped into the deep end of home labbing but I was going to be more secure so I got a Flint 2 firewall so I could flash it with a vanilla install of OpenWRT, set up rules and vLANs, made sure all of my IoT thingies where on their own vLAN and talked to HA rather than the WAN, created multiple APs, being very scared I kept port 22 open on my firewall but forwarded it to a pi running crowdsec, and swore I would continue looking for more security things. I came across someone talking about DoH probably in a community on Lemmy so I went searching if pihole and unbound could do DoH, saddly it cannot however it can do DoT so I jumped on that forcing all the DNS through 853 so if whatever gets on my system cannot do 853 for DNS it cannot get out.

[–] ExLisper@lemmy.curiana.net 16 points 1 day ago (1 children)

How do you know it's not just a bunch of false positives?

[–] fubarx@lemmy.world 12 points 1 day ago (1 children)

I guess I don't. The alerts came fast and heavy, each pointing at different sites in different countries, all tagged as 'potential malware.' I panicked and yanked the plug.

I was really surprised my carefully put-together network was dialing out like this. I mainly thought any issue would be from external port-scanners, but I was wrong.

Anyone running a self-hosted network may want to put in a live observation mechanism at the router level to make sure both incoming and outgoing traffic are monitored.

[–] Archer@lemmy.world 8 points 1 day ago

I just don’t run anything open to the Internet except WireGuard over UDP. No one knows anything is even there unless they have access

[–] irotsoma@piefed.blahaj.zone 14 points 1 day ago (4 children)

That's standard these days. Whether LLM training, vulnerability exploitation scanning, or an actually compromised system, there is a lot of automated traffic to any open endpoint on the internet. All you can do is run systems to mitigate it like crowdsec, fail2ban, Anubis, etc. Just monitoring isn't going to do much, but monitoring is also important.

[–] pdl@social.tchncs.de 20 points 1 day ago (4 children)

@irotsoma @fubarx It was outbound traffic, you are telling about inbound traffic.

[–] Zwuzelmaus@feddit.org 5 points 1 day ago (2 children)

Would you regard an http response "outbound"?

[–] keisatsu@infosec.pub 13 points 1 day ago

If the traffic is initiated from the inside you typically consider any responses as belonging to the session as also "outbound" for firewall policy purposes. If we're talking packet routing then a response to a http request originating from the inside is inbound traffic.

[–] pdl@social.tchncs.de 2 points 1 day ago

@Zwuzelmaus Not really. The session is inbound. If you are seeing answers from inside to outside, you should see inbound sessions, initiated from outside to inside.

load more comments (3 replies)
[–] curbstickle_lw@lemmy.world 4 points 20 hours ago

All you can do is run systems to mitigate it like crowdsec, fail2ban, Anubis, etc.

Which should be the first things brought up after the router/firewall would be my recommendation.

I'm also doing DPI at the firewall, and have alerts set to trigger for odd activity, which I prefer over actively watching anything.

[–] fonix232@fedia.io 13 points 1 day ago

Also, an excellent use of LLMs is diagnosing such traffic and the software you use.

LLMs excel at ingesting information and analysing it, especially in fixed formats like logs, or open source software. They can track down exactly which line of code is resulting in the suspicious looking network calls, why that happens (what configuration combination + code makes it do that call), and analyse if it's normal traffic or if your stack has been somehow exploited.

load more comments (1 replies)
[–] Decronym@lemmy.decronym.xyz 4 points 22 hours ago* (last edited 37 minutes ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
AP WiFi Access Point
DNS Domain Name Service/System
ISP Internet Service Provider
IoT Internet of Things for device controllers
NAS Network-Attached Storage
SBC Single-Board Computer
SSH Secure Shell for remote terminal access
UDP User Datagram Protocol, for real-time communications
VPN Virtual Private Network

9 acronyms in this thread; the most compressed thread commented on today has 12 acronyms.

[Thread #195 for this comm, first seen 30th Nov 2026, 11:00] [FAQ] [Full list] [Contact] [Source code]

[–] newuserwhodis@quokk.au 5 points 1 day ago

differences between corporations and viruses:

load more comments
view more: next ›