简体   繁体   中英

Securing Elasticsearch on Azure virtual machine

I've created an Azure VM with an ELK stack ( https://docs.bitnami.com/azure/apps/elk ). I've changed configuration to be able to connect to ES from another machine ( https://docs.bitnami.com/azure/apps/elk/administration/connect-remotely ) and opened inbound ports (9200-9300). Tried indexing documents from my localhost- works fine. What i need to do now is to impose a security constraint so that only my Azure AppService application could access ES.

How can I do that? Is there any Azure solution for this? Or do I need to search for ES plugins that handle security?

If you want to restrict access to your Elastic VM and give access only to WebApp, do the following:

  • Get Outbound IP list from Azure WebApp. Properties -> Additional Outbound IP Addresses在此处输入图像描述
  • Go to ELastic VM NSG(Network Security group) and create an Inbound rule that allows access to ports 9200-9300. Add IP addresses from the WebApp "Additional Outbound IP Addresses" list在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM