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.

  • MalReynolds@piefed.social
    link
    fedilink
    English
    arrow-up
    18
    ·
    13 hours ago

    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.

    • ComradeMiao@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      10 hours ago

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

    • MonkderVierte@lemmy.zip
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      11 hours ago

      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.

    • fubarx@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      10
      ·
      13 hours ago

      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
        link
        fedilink
        English
        arrow-up
        6
        ·
        12 hours 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.

      • MalReynolds@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        12 hours ago

        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.