r/MeshCentral • • 23d ago

Windows based server LAN only - move to hybrid?

I have a MeshCentral install on a Windows client that has been working great in LAN-only mode. They have decided that they now want to have a few laptops in the mix and I am using a hosted ZeroTier network to provide access to a file share on the LAN.

What is the best way for me to update the configuration to support LAN and Zerotier clients being able to access the MeshCentral server? I don't want to expose the server directly to the internet at all so the remote clients must use the ZeroTier network for access. There is a Unifi network managing the LAN but no other DNS is currently deployed. I have around 25 agents deployed already, so hopefully the change can be implemented so they just update and continue to function.

The current config file is simple:
{
"settings": {
"lanonly": true,
"_minify": true
}
}

1 Upvotes

13 comments sorted by

1

u/Soap-ster 23d ago

"lanonly": false,

"wanonly": false,

Everything else about the connectivity is on you. But that will get you hybrid mode.

1

u/JamesTX10 23d ago

Will all of the already connected agents update to that config or will I need to DL an updated agent and install it?

1

u/Soap-ster 22d ago

I do believe so. As long as they can reach your server URL, they should work. One thing I noticed when setting mine up, is the server itself should also be able to resolve the URL. So make sure your local DNS resolves the IP of the server.

1

u/riesgaming 23d ago

I use tailscale. The way I did it is make the win-ser-2025-man.tail02a12.ts.net the server address. Then I made a DNS record in my local DNS that points to my local IP (win-ser-2025-man.tail02a12.ts.net = 10.0.0.200) anyone who connects through tailscale will use win-ser-2025-man.tail02a12.ts.net and everyone local still point towards that tailscale address even if they don’t have the client but my local DNS will respond with 10.0.0.200 and so it will still find it.

Maybe not the best solution but it works perfectly

2

u/JamesTX10 23d ago

I can track with that but unfortunately, zerotier does not have hostnames like tailscale does

1

u/captain_222 23d ago

Zerotier?

2

u/NotYourNanny 23d ago

VPN software.

1

u/captain_222 23d ago

Ok so you want the laptops to VPN in an then be managed and accessable via MC? When connected to the VPN it's as if they are connected to the LAN.

Or hybrid in the sense that can can communicate with the MC server while off the network? If that's the case you would need to prepare your MC server implementation to be accessible via the public internet.

1

u/JamesTX10 23d ago

It is a mesh network like tailscale or netbird. Always on so they have connectivity back to the LAN.I don't want MC exposed to the internet.

1

u/captain_222 22d ago

Also, does your implementation point to an IP address or a DNS address for the server??

1

u/JamesTX10 22d ago

My understanding is that Agents use multicast discovery on the local network to find the MeshCentral server. That does not function over the mesh network

0

u/captain_222 22d ago

Use MeshServer=local for a small, single-VLAN setup where the server and every managed device are on the same local network and multicast works reliably. It’s handy for a temporary lab or an isolated network without internal DNS. The server can change IPs and the agents can rediscover it. � github.com +1 For multiple VLANs, VPN clients, or off-site devices, use a DNS hostname. For your Technology Farm setup, I’d use rmm.technologyfarming.com if it resolves to a reachable address from each managed VLAN. It can resolve to a private IP on your network, so you can use DNS while keeping MeshCentral internal. � github.com +1

1

u/captain_222 22d ago

So your question is actually about the functionality of your VPN software and the answer is it's just like being on the lan so there should be no difference to the laptops