Skip to content
Remote DB access Expose a database to a specific source IP using a tight allowlist, then revoke it when done.

Remote DB access

By default, every database on a MZPanel server is closed to the public internet. When you need to connect an external client — a BI tool, a local app, another server — you open access for one specific source IP instead of the whole world. Remote DB access is a Pro feature.

Opening remote access does two things, scoped to a single source IP:

  1. Bind the database listener so it accepts connections from that address.
  2. Open the firewall for that source IP only — on the database port.

This keeps the database unreachable from everywhere except the address you allowlisted. You manage the allowlist from the database engine’s Settings drawer (“Manage remote access”).

For MariaDB/MySQL and MongoDB, remote access is enforced through firewall rules. Adding an allowlist entry binds the listener and opens the firewall for that one source IP; the database stays invisible to every other address.

PostgreSQL uses native expose / unexpose controls rather than ad-hoc firewall edits. Exposing the instance to a source IP updates the PostgreSQL listener configuration and the firewall together; un-exposing reverses both. This keeps pg_hba-style access and the firewall in sync.

Open the engine’s Settings drawer and revoke the allowlist entry:

  • MariaDB / MongoDB — remove the firewall rule for that source IP (and the bind) to close access again.
  • PostgreSQLunexpose the instance, which removes both the listener exposure and the firewall opening.