Public network access is supported only when Security Mode and HTTPS Access are enabled for a cluster. When Public IP Address is enabled, a public IP address is automatically assigned, which will enable access to the security cluster from the public network. Additionally, you can configure access control from the public network by IP addresses or IP address ranges.
To enable public network access for Elasticsearch or OpenSearch 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.
Parameter |
Description |
|---|---|
Bandwidth |
Bandwidth for accessing Kibana with the public IP address |
Access Control |
If you disable this function, all IP addresses can access the cluster through the public IP address. If you enable access control, only IP addresses in the whitelist can access the cluster through the public IP address. |
Whitelist |
IP address or IP address range allowed to access a cluster. Use commas (,) to separate multiple addresses. This parameter can be configured only when Access Control is enabled. |
You can configure, modify, view the public network access of, or disassociate the public IP address from a cluster.
If you enabled HTTPS but did not configure the public network access during security cluster creation, you can configure it on the Basic Information page after configuring the cluster.
Click Associate next to Public IP Address, set the access bandwidth, and click OK.
If the association fails, wait for a few minutes and try again.
For a cluster for which you have configured public network access, you can click Edit next to Bandwidth to modify the bandwidth, or you can click Set next to Access Control to set the access control function and the whitelist for access.
On the Basic Information page, you can see the public IP address associated with the current cluster.
To disassociate a public IP address, click Disassociate next to Public IP Address.
After the public IP address is disassociated, the cluster can no longer be accessed 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.
After configuring the public IP address, you can use it to access the cluster.
curl -u username:password -k 'https://10.62.179.32:9200/_cat/indices'
where, username and password indicate the username and password of the HTTPS-enabled security-mode cluster.