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.


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.