如何解决如何限制Internet访问某个子网,并仅允许来自同一vnet的另一个子网?
如何限制入站Internet流量到subnet1,并允许来自同一vnet的subnet2的流量?并启用到subnet2的入站Internet通信。
如何在Azure中做到这一点?
+-----------------------------------+
| +-------------+ VNET |
| | +------+ |
| | subnet2 | | |
+---access ---->----+ | | |
| | | access |
| +-------------+ | |
Internet | +------------++ |
| | | |
| | subnet1 | |
+--X no access X------------X | |
| | | |
| +-------------+ |
+-----------------------------------+
解决方法
如果没有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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。