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.
Is there a package for OpenWRT that provides this kind of analysis?
Even if there is you will likely find any converted router to be too underpowered to deal with it along with routing duties.
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.
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.
I second this although i’m using pfsense with the ambition to one day move to oprnsense
What did you switch to?
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
Convenience of ready made services packaged and ready to go by anonymous people sometimes have downsides. 🙃
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.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.
How do you think it happened? Had the docker file been tampered with or did the container become infected via a vulnerability or something?
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.
Are you using flaresovlarr again?
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.
If you’re only using it for yourself then you should only be exposed via a VLAN accessible via VPN. Done.
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.
Doors and Corners, paranoid bastards last( because you’re protecting someone)
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.
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.
I believe opnsense with zenarmor can detect and block this sort of thing.
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.
So what was causing the outbound traffic?
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.
Pulled the plug, burning it down, they don’t know. They may find out as they rebuild.
How do you know it’s not just a bunch of false positives?
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.
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
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 20 acronyms.
[Thread #195 for this comm, first seen 30th Nov 2026, 11:00] [FAQ] [Full list] [Contact] [Source code]
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.
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.
Would you regard an http response “outbound”?
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.
@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.
So you’re saying there was 0 inbound traffic the whole time and only outbound? I mean, unless you’re saying you think someone got in via wardriving or something that got into your LAN directly, or someone on your LAN opened some malware, they had to have started the process over the internet. First wave is discovery of vulnerabilities and if you don’t have protection, then yeah they might have found something and exploited it. But simple monitoring and manually reacting still likely wouldn’t have stopped this. It’s very common to attack all valid IPs. That’s why LLM data centers need so much processing power to be constantly scanning for any opening and the requesting all available data for training the LLMs or whatever.
Anyway, it always starts with inbound unless you’re compromised from internal users activities.
They’re talking about this specific post, and OP specifically said his server was contacting outside malware sites.
Yeah, but what triggered that. Likely an inbound connection that installed the malware. Again, unless they installed something locally or their poorly secured WiFi or other non internet service allowed access. Or they could be just seeding torrents which tend to access lots of less left sites. Blocking the inbound before connecting to the internet stops a lot of malware from getting installed in the first place. Of you’re monitoring is showing unexpected traffic, it’s too late.
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.
One reason I invested in this system was because of all the stories of LLMs now able to explore vulnerabilities. Figured I’d better know more about the traffic than a plain consumer router.
But the other was having a lot of third-party devices with full access to a flat network. With OTA updates, it’s possible for malicious material to get downloaded after that first install. Just being able to segment the network and limit the blast radius will let me sleep better. Once the dust settles, I’m going to try to do some traffic capturing on each vLAN and run them through AI models to see if there are any patterns.
differences between corporations and viruses:
You run a VPN?
From individual clients and mobile out, and from the homeserver only when downloading. The homeserver only gets accessed from inside my network.








