简体   繁体   English

允许将 Azure 网络安全组中的 ip 地址列入白名单

[英]Allow whitelist ip address in Azure Network security group

I have a list IP address that I want to allow access to multi VMs.我有一个列表 IP 地址,我想允许访问多个虚拟机。
First, I attach to 1st VM a NSG A which allows my whitelist IPs on port 22.首先,我将一个 NSG A 附加到第一个虚拟机,它允许我的白名单 IP 在端口 22 上。
Second, I attach to 2nd VM a NSG B which allows my whitelist IPs on port 8888.其次,我将一个 NSG B 附加到第二个 VM,它允许我的白名单 IP 在端口 8888 上。
In case I have to update whitelist IP, I need to update both 2 NSG A and NSG B.如果我必须更新白名单 IP,我需要同时更新 2 个 NSG A 和 NSG B。
Are there any way allow me to update only 1 NSG, then other NSG apply it automatically?有什么办法让我只更新 1 个 NSG,然后其他 NSG 自动应用它吗?

in AWS, I can do it by using a SG as Source of other SG.在 AWS 中,我可以通过使用 SG 作为其他 SG 的来源来做到这一点。 But Azure may have different strategy.但是 Azure 可能有不同的策略。

You can attach both VMs to one NSG.您可以将两个 VM 附加到一个 NSG。
Also, you can attach NSG to network level (if both VMs in one network).此外,您可以将 NSG 附加到网络级别(如果两个 VM 在一个网络中)。
I think you will find the answer here: https://docs.microsoft.com/en-us/azure/virtual-machines/network-overview我想你会在这里找到答案: https://docs.microsoft.com/en-us/azure/virtual-machines/network-overview

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 亚马逊AWS安全组 - 允许Microsoft Azure Web App IP地址 - Amazon AWS Security Group - Allow Microsoft Azure Web App IP Address Azure WebApp的白名单入站IP地址? - Whitelist inbound IP address for Azure WebApp? Azure AKS IP 地址到白名单图像注册表 - Azure AKS IP address to whitelist Image Registry Azure Postgres PaaS - 如何将 IP 地址列入白名单? - Azure Postgres PaaS - How to whitelist an IP address? 如何将 Azure WAF 中的 ip 地址列入白名单 - How to whitelist an ip address in Azure WAF Azure 网络安全组 添加源 ip 前缀使用变量 - Azure network security group Add source ip prefixes using variable 如何检查 Azure 网络安全组出站 IP 是否允许? - How to check Azure Network Security Group outbound IP Allowed or not? 如何获取azure function app的所有ip地址以将它们列入白名单? - How to get all ip address of azure function app to whitelist them? Azure 应用服务 - 如何将端点列入白名单(不是 IP 地址) - Azure app service - how do I whitelist an endpoint (not IP address) Azure 存储网络安全组 - Azure Storage Network Security Group
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM