0

如何将入站 Internet 流量限制到 Subnet1 并允许来自同一 vnet 的 Subnet2 的流量?并启用到 Subnet2 的入站互联网流量。

如何在 Azure 中执行此操作?

                        +-----------------------------------+
                        | +-------------+       VNET        |
                        | |             +------+            |
                        | |   SUBNET2   |      |            |
      +---access ---->----+             |      |            |
                        | |             |      access       |
                        | +-------------+      |            |
  Internet              |         +------------++           |
                        |         |             |           |
                        |         |   SUBNET1   |           |
      +--X no access X------------X             |           |
                        |         |             |           |
                        |         +-------------+           |
                        +-----------------------------------+
4

1 回答 1

0

如果没有 NSG 连接到 VM NIC。您可以在 SUBNET1 nsg 中添加两个入站安全规则:

Priority    Name          Port    Protocol   Source          Destination   Action
101        allowSubnet2   any     any        Subnet1IPlists  any           allow

102        denyAny        any     any        any             any           deny

在 SUBNET2 nsg 中添加一个入站安全规则:

Priority    Name          Port    Protocol   Source          Destination   Action
101         allowInternet any     any        Internet        any           allow
于 2020-09-24T08:00:10.317 回答