Help Center/ Cloud Search Service/ User Guide/ Elasticsearch/ Configuring Networking for an Elasticsearch Cluster/ Configuring Public Network Access for an Elasticsearch Cluster
Updated on 2026-01-09 GMT+08:00

Configuring Public Network Access for an Elasticsearch Cluster

For enterprise applications, to make CSS Elasticsearch clusters securely accessible from the Internet, you can enable public network access for them. When public network access is enabled for a cluster, the cluster is automatically assigned a public IP address with dedicated dynamic BGP bandwidth, making it accessible from the Internet via HTTPS. You can configure public network access control by IP addresses or IP address ranges.

To enable public network access for Elasticsearch clusters, a shared load balancer is typically used for load balancing. If your workloads require quicker access, you are advised to use a dedicated load balancer to connect to your clusters. For details about its configuration, see Configuring a Dedicated Load Balancer for an Elasticsearch Cluster.

Impact on Billing

When public network access is enabled for an Elasticsearch cluster, the cluster is automatically assigned an EIP and public network bandwidth, which will both incur expenses.

Constraints

  • Public network access can be enabled for an Elasticsearch cluster only if the cluster version is 6.5.4 or later, and Security Mode and HTTPS Access are both enabled.
  • Public network access and VPC Endpoint share the same shared load balancer. If you configure a whitelist for public network access control, this whitelist is deployed to the shared load balancer. As such, it will control access not only from the public network but also from private IP addresses through VPCEP. In this case, you need to add IP address 198.19.128.0/17 to the public access control whitelist to allow traffic through VPCEP.

Enabling Public Network Access

To enable public network access for an existing cluster, perform the following steps:

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters > Elasticsearch.
  3. In the cluster list, click the name of the target cluster. The cluster information page is displayed.
  4. On the Overview tab, go to the Network Information area, and check whether Security Mode and HTTPS Access are enabled.
    • If they are enabled, go to the next step to enable public network access.
    • If either one is disabled, public network access cannot be enabled for the cluster.
    Figure 1 Checking whether public network access can be enabled for the cluster
  5. Click Enable next to Public Network Access. In the displayed dialog box, configure the necessary settings.
    Table 1 Enabling public network access

    Parameter

    Description

    Bandwidth

    Cluster bandwidth for public network access.

    Value range: 1 Mbit/s to 200 Mbit/s

    Configure Whitelist

    Control public network access to the cluster using a whitelist.
    • If a whitelist is configured, only IP addresses that are on this whitelist can access the cluster over the public network.

      Click +Add. In the displayed text box, enter IP addresses or CIDR blocks that are allowed to access the cluster from the public network. Separate them using commas (,). Each value must be unique. An example of valid values: 192.168.1.1,10.0.0.0/24. Examples of invalid values: 0.0.0.0, xx.xx.xx.xx/0, 172.16.0.0-172.16.255.255, non-standard formats (e.g., 192.168.1), and duplicate values.

    • If no whitelist is configured, all public IP addresses can access the cluster. However, this can be a security risk and should be avoided.
  6. Click OK to enable public network access.

    After public network access is enabled, the Network Information area shows the public IP address, public network access control, and bandwidth information.

Managing Public Network Access

When public network access is enabled, you can check the public IP address, and modify the bandwidth and access control settings.

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters > Elasticsearch.
  3. In the cluster list, click the name of the target cluster. The cluster information page is displayed.
  4. On the Overview tab, manage public network access settings in the Network Information area.
    Figure 2 Managing public network access
    • Checking the public IP address

      Record the IP address and port under Public Network Access for later use.

    • Modifying public network access control settings

      Click Modify under Public Network Access Control. In the displayed dialog box, add or remove IP addresses or CIDR blocks to or from the whitelist. Click OK to save the change.

    • Modifying public network bandwidth

      Click Modify under Bandwidth. In the displayed dialog box, change the bandwidth for optimal network performance. Click OK to save the change.

Disabling Public Network Access

If public network access is no longer required for a cluster, disable it to release resources.

After the public IP address is disassociated, the cluster can no longer be accessed from the Internet through this IP address. If you disable public network access for a cluster and then re-enable it, the public IP address for accessing the cluster may change. Exercise caution.

  1. Log in to the CSS management console.
  2. In the navigation pane on the left, choose Clusters > Elasticsearch.
  3. In the cluster list, click the name of the target cluster. The cluster information page is displayed.
  4. On the Overview tab, find Public Network Access in the Network Information area, and click Disable under it. In the displayed dialog box, enter CONFIRM and click OK.

    After public network access is disabled, the Network Information area no longer shows the public IP address, public network access control, or bandwidth information.

Accessing a Cluster Through the Public IP Address

After public network access is enabled, the cluster is assigned a public IP address. External users can securely access this cluster through this IP address plus a port number.

For example, if the public IP address is 10.62.xxx.xxx and the port number is 9200, run the following cURL command to view indexes in the cluster.
curl -u username:password -k 'https://10.62.xxx.xxx:9200/_cat/indices'

where, username and password indicate the username and password of the HTTPS-enabled security-mode cluster.