[英]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.