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.


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.
@irotsoma @fubarx It was outbound traffic, you are telling about inbound traffic.
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.
Monitoring the outbound connections is what’s relevant to identify if you’ve been compromised and in some cases prevent it. A flaw in software exposed to the internet might allow remote code execution but what that code does most of the time is connect outbound to a C&C server on the Internet to download malware. If that’s detected and blocked, you avoid the malware download in the first place.
You can also sometimes be a victim of a supply chain attack which would render all of your preventative measures like VPN only access, Anubis, WAFs moot.
Point is outbound monitoring find the issue after it’s too late and it’s also hard to determine what’s malicious be expected (for example if they use tormenting it might not be malicious).
The threat is from inbound unless you are internally compromised. So paying attention and blocking the extremely common inbound threats before even connecting to the internet is more important and should be standard practice. Simple unused port blocking firewalls aren’t enough anymore which is what OP said they were relying on. There are very few exploits that target unused ports (assuming you’re using a reasonably secure operating system). You need adaptive response to inbound traffic on purposely open ports. These have become easier and easier to implement over time.
Again, monitoring is important to determine I’d you’re already compromised, but won’t help much to prevent compromise and most of that is from inbound requests. Plus most outbound traffic is actually responses to inbound requests assuming you’re using a decently secure and simple OS.
It’s never too late. If you get compromised it’s kinda important that you become aware of that and take steps to remediate that. Otherwise what you’re suggesting is that once one thing on your network is exploited in some way, who cares. Let them have it all. It’s not 1999 anymore and defense in depth has been the name of the game for 20 years.
This is like saying “The threat is from inbound except for when it’s not”. You cannot guarantee that you will never be vulnerable to an exploit at your edge or a supply chain attack. And in both cases, monitoring and remediating outbound traffic can mean the difference between a minor remediation job and a catastrophe.
Outbound in this context means outbound sessions. Responses to inbound requests are inbound. What matters is the initiating direction, not the flow of individual packets.
Okay and fire sprinklers only work after the fire already started but they’re still really helpful and important.
Yep good analogy actually, they stop the damage from spreading by essentially destroying everything with rancid water damage. Not a good plan for protection like building with fire retardant materials, using appropriate GFCI, AFCI, and other more expensive breakers than simple thermal magnetics, etc. Sprinklers are only good for sacrificing yourself to prevent destroying your neighborhood and maybe saving a few things here and there. It’s why most single family homes don’t have them, only buildings where fire spreads fast. But if you live on a world where people are constantly throwing motlov cocktails in your windows…
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.
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.
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.