Skip to main content
Configure network access to PostgreSQL cluster
Last update:

Configure network access to PostgreSQL cluster

By default, in clusters with a public subnet, connectivity is allowed for all addresses as long as a username and password are provided.

Connections to the cluster on the private subnet are allowed from the cluster subnet and from those subnets that are connected to the cluster subnet by the cloud router.

You can restrict the list of addresses from which access to the database cluster will be allowed.

  1. In control panel go to Cloud platformDatabases.
  2. Open the Database Cluster page → tab Settings.
  3. In the block Network access control click Modify.
  4. Enter the CIDR of the subnets or IP addresses that should be allowed access to the cluster. Only IPv4 addressing is supported. All addresses other than those specified in the allowed list will not be allowed to connect.
  5. When restoring a cluster from backup, the list of addresses will not be saved — the addresses will have to be re-entered for the new cluster.