Skip to main content
Public IP address
Last update:

Public IP address

A public IP address is a static public IP address that is assigned to a node to set up access to the node on the private network from the Internet. External traffic goes through the public IP address and is handled by the cloud router, which acts as a 1:1 NAT.

The private subnet on which a public IP address can be assigned must correspond to the following demands — before adding a public IP address subnet.

A public IP address can be assigned:

In an OpenSearch cluster, a public IP address is assigned to all nodes in the group at the same time. If you add a node to a group where all nodes already have IP addresses, the new node will also be assigned a public IP address.

If necessary, you can disable public IP address for the entire group of nodes.

Private subnet requirements

  • The subnet should have a cloud router with a connection to an external network;
  • The IP address of the cloud router should be the default gateway on the subnet.

If the subnet does not meet the requirements, prepare it to connect a public IP address.

Prepare a private subnet to connect a public IP address

  1. Create a cloud router with a connection to an external network.
  2. Connect the private network to the cloud router.

1. Create a cloud router with a connection to an external network

A cloud router allows you to route traffic between private networks.

You can use the router to configure access to the Internet from a private network or to access a device on a private subnet from the Internet using a public IP address.

  1. В control panels from the top menu, press Products and select Cloud servers.
  2. Go to the section Network → tab Cloud routers.
  3. Click Create a router.
  4. Select pool in which a cloud router will be created.
  5. Enter the name of the router.
  6. Check the box Connect the router to an external network — an external IP address will be assigned to the router.
  7. Click Create.

2. Connect a private network to the cloud router

  1. В control panels from the top menu, press Products and select Cloud servers.

  2. Go to the section Network → tab Cloud routers.

  3. Open the router card.

  4. Click Add a subnet.

  5. Select a private subnet.

  6. Enter the IP address of the router. The IP address of the cloud router must match the default gateway of the private subnet. You can view the gateway in control panels: from the top menu, press ProductsCloud serversNetwork → tab Private networks → network page → tab Subnetworks → subnet card → block Automatic network settings → field Subnet Gateway.

    If you are connecting a global router subnet, the IP address of the cloud router must match the default gateway of the global router subnet and be different from the global router's IP address, the IP addresses of devices on the network, and service addresses .253 и .254.

  7. Click Add a subnet.

Connect a public IP address

A public IP address is assigned to all nodes in the group at the same time.

  1. Ensure that the cluster is on a private subnet that matches the demands.
  2. В control panels from the top menu, press Products and select Managed databases.
  3. Open the tab Active.
  4. Open the database cluster page → tab Settings.
  5. In the block Cluster open the node group card.
  6. Turn on the toggle switch Public access.

Disable public IP address

The public IP address is disabled on all nodes in the group at the same time.

  1. В control panels from the top menu, press Products and select Managed databases.
  2. Open the tab Active.
  3. Open the database cluster page → tab Settings.
  4. In the block Cluster open the node group card.
  5. Turn off the toggle switch Public access.