Step 6. Configure Network Settings
[This step applies only if you have selected the Restore to a new location, or with different settings option at the Restore Mode step of the wizard]
At the Network step of the wizard, you can configure specific network settings for the restored Cloud SQL instance. To do that, select the necessary Cloud SQL instance from the list and do the following:
- Click Access, and in the Access Settings window, choose whether you want to configure a private IP and public IP connectivity for the restored Cloud SQL instance.
To connect the restored Cloud SQL instance to a VPC network with a private IP address, select the Assign a private IP address from following Virtual Private Network check box and select a VPC network to which the instance will be connected. For a VPC network to be displayed in the lists of available networks, it must be created for the region specified at step 4 of the wizard as described in Google Cloud documentation.
The specified VPC network must have Private Service Connect configured. For more information, see Google Cloud documentation.
To assign a public IP address to the restored Cloud SQL instance and to accept connections to it from specific IP address ranges, select the Assign a public IP address check box.
- [This step applies only if you have selected the Assign a public IP address check box]
Click Networks, and in the name of restored Cloud SQL instance Authorized Networks window, specify the name of the network, and the IP address or IP address range in CIDR notation (for example, 188.8.131.52/24).
To let all IP addresses access the restored Cloud SQL instance, you can enter 0.0.0.0/0. However, note that allowing access from all IP addresses is unsafe and thus not recommended in production environments.