I have an 11-server Enhance cluster and use UFW on each VPS to restrict access to the internal Enhance ports (50000, 50003, 50004) and MySQL (3306). I prefer to keep these ports closed to the public internet.
When I add a 12th server, I have to update the UFW allowlists on the existing nodes with its IPv4 and IPv6 addresses, then add the relevant rules on the new VPS. It works, but the manual updates are getting tedious.
It would be nice if Enhance could keep a cluster-only allowlist in sync automatically. When a server joins, leaves, or changes IP, the control panel could update the relevant rules on each node based on its role.
I’m also wondering if anyone already does this with a small job on the control panel VPS that reads the Enhance server list and pushes changes to UFW.
How are others handling this on larger clusters? Are you syncing UFW rules, using a private network, or doing something else? I’d especially like to hear how you handle IPv4 and IPv6 when onboarding a new node.