I recently learned from a colleague about a security breach involving MeshCentral, an open-source remote monitoring and management platform. Attackers had gained control of the management infrastructure and used that access to deploy ransomware to connected systems.
That incident caught my attention because I use MeshCentral in my own home cybersecurity lab.
I’ve spent years working in cybersecurity, and one lesson I’ve learned is that even a well-designed environment can develop weaknesses over time. Services get added, configurations change, and temporary exceptions have a way of becoming permanent.
So I decided to take a closer look at my own environment.
What began as a review of a single remote-management application quickly became a much broader examination of my network. I found myself reviewing Tailscale access policies, Docker container exposure, video surveillance integrations, firewall rules, and the mechanisms that keep everything running after a reboot.
My goal wasn’t to make the lab inaccessible or surround everything with additional security tools. It was something more practical:
Determine which systems genuinely needed to communicate, eliminate unnecessary exposure, and verify that everything still worked afterward.
What followed was an interesting exercise in applying some fundamental cybersecurity principles to a real, working environment.
A lab spread throughout the house #
My home lab isn’t a single rack in one room. It’s distributed throughout the house, with servers, workstations, networking equipment, cameras, and small dedicated devices serving different purposes. Some systems handle remote administration. Others support network visibility, home automation, camera recording, or security experimentation.
That makes the lab useful—and also makes it easy to lose sight of dependencies. A service that looks unnecessary from one machine’s perspective may be the very thing another application depends on.
That became my guiding approach: follow the actual traffic and configuration before deciding what was safe to change. I’ve learned that a system’s dependencies are often more complicated than its documentation suggests.
First, I revisited MeshCentral #
MeshCentral is particularly powerful because it provides administrative access to managed endpoints. That power is also the reason I wanted its control plane to be much harder to reach unnecessarily.
My earlier configuration exposed a management path through a public reverse proxy. I moved remote management behind my Tailscale network, updated the agents to use the private endpoint, and verified that administrator multifactor authentication remained in place.
The first successful connection was encouraging, but it wasn’t enough to tell me the migration was finished. I checked that the managed Windows, Linux, and unRAID endpoints reconnected and remained manageable. All seven agents were online after the migration, including an unRAID agent for which I configured persistent startup.
The lesson: putting authentication on an administrative service is important, but removing an unnecessary public route to that service reduces a different category of risk.
A private network still needs access rules #
That brought me to Tailscale. It’s tempting to think of an encrypted private network as a trusted space. But encryption answers how devices communicate, not which devices should be allowed to reach each service.
My tailnet’s earlier authorization policy was broader than it needed to be. I replaced that general access with narrower permissions matched to actual workflows: administrative access where required, remote-management agents reaching the appropriate service, and mobile devices reaching the home-automation and camera interfaces they actually use.
I tested the policy from more than one device, including mobile access to the interfaces I still needed. Authorized connections continued to work, while attempts to reach services that should no longer have been accessible were denied. That second part mattered: a policy can look restrictive on paper and still behave differently in practice.
This was an important reminder for me: being on the same private network shouldn’t automatically imply permission to use every service on it.
Docker ports revealed a different kind of exposure #
The next step took me to Frigate, my camera-analysis system, and go2rtc, which helps distribute camera streams to other applications.
Docker makes it easy to publish a container port onto the host. That convenience can also make a service reachable more widely than intended, especially when the published interface is used for an API or management function rather than ordinary authenticated viewing.
I reviewed the published services one by one and asked a simple question: does anything outside this container actually need to connect here? For the unauthenticated Frigate API and the go2rtc management API, the answer was no. I removed their host publications while preserving the services inside the container.
But that reasoning didn’t apply to every port. Camera restreaming served multiple applications, and removing it without checking would have broken functionality I wanted to keep. The challenge was to distinguish an unnecessary exposure from a genuine dependency.
I learned more by watching the traffic #
Rather than guess which video protocols were still in use, I looked at packet captures and service diagnostics.
The evidence showed that both my Milestone video-management system and Home Assistant were using the RTSP restream. I could even observe a request associated with the doorbell camera. A go2rtc snapshot showed multiple configured streams and active consumers.
That changed my approach. I retained RTSP restreaming, but limited which systems could reach it. Then I tested from a workstation that should not have access. The connection failed, and the corresponding firewall drop counter increased.
It’s a small detail, but one I consider important. A firewall rule existing isn’t proof that it is enforcing the policy we intended. A denied connection backed by an observed counter is stronger evidence.
Knowing what not to remove #
I also examined the external WebRTC port mappings used by the video stack. During the mobile viewing sessions I tested, packet captures did not show traffic using those published ports, and the inspected protocol snapshots showed no active WebRTC consumers.
That wasn’t proof the feature could never be needed. It was enough to justify a reversible experiment.
I removed the external mappings, recreated the Frigate container, and tested the viewing workflows I actually use. Video remained available through Frigate, Home Assistant, and my video-management platform. Two-way doorbell audio wasn’t part of the test because it isn’t a feature I currently use.
For authenticated Frigate access, I narrowed the host’s listening interfaces to the specific LAN and Tailscale paths that were required. I also backed away from an increasingly complicated source-filtering attempt when Docker and Tailscale forwarding behavior made it harder to reason about what was actually being enforced. That was a useful reminder that more firewall rules do not automatically mean better security.
That distinction matters: binding a service to selected interfaces does not, by itself, mean that every source on those interfaces is restricted. I wanted the final design to be both narrower and understandable.
Security has to survive a reboot #
A lab is never truly finished the moment a configuration change works. It also has to keep working after maintenance, restarts, and ordinary failures.
I created a focused mechanism to restore the custom stream-access firewall rules without blindly replacing all the rules managed by Docker or Tailscale. I also added scheduled checks for the HTTPS certificate and for the required Frigate listening interfaces.
Then I rebooted the Raspberry Pi that runs Frigate.
Afterward, I verified that the container returned healthy, the expected HTTPS bindings were restored, the stream-access rules were present, and the recovery timer had run.
This was one of the most satisfying parts of the project, but I want to be precise about what it proves. The normal reboot path was observed and successful. I have not yet separately tested every deliberately broken-container recovery scenario, nor observed a real certificate replacement through the new renewal mechanism. Those are follow-up checks, not completed findings.
What I took away from the exercise #
Several practical principles stood out:
- Reduce the reachability of privileged tools. A powerful remote-management service shouldn’t be public simply because it can be.
- Treat authorization as a separate problem from encryption. Private network membership isn’t a substitute for least privilege.
- Understand what Docker publishes. An internal container service and a host-reachable service are not the same thing.
- Trace dependencies before removing them. Packet captures and application diagnostics are more reliable than assumptions.
- Test what should fail, too. Successful access tests are only half the evidence; denied connections matter just as much.
- Make hardening operationally durable. Rules, bindings, certificates, and startup behavior need attention after reboot.
- Avoid needless complexity. A control that’s difficult to understand or maintain may create problems of its own.
Not a finish line #
I don’t consider the lab immune to compromise. Authorized devices can still be compromised, applications still require updates, and authenticated services remain reachable to some systems that legitimately need them. Actual certificate renewal and additional recovery checks remain part of the ongoing maintenance work.
The exercise wasn’t a formal penetration test or a guarantee of security. It was an iterative effort to reduce unnecessary exposure, preserve the features I use, and verify that the resulting controls behave as expected.
What started with a colleague’s account of a remote-management breach ended up giving me a useful reminder about my own practice: good security isn’t just adding barriers. It’s understanding what has to communicate, removing what doesn’t, and proving the system still works.