如何限制对某些公共网站的访问 [英] How to restrict access to some public websites

查看:119
本文介绍了如何限制对某些公共网站的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是云计算的新手.抱歉,这是一个愚蠢的问题.我已经从azure门户创建了一个VM.我的要求是不允许使用VM的用户访问公共网站.谁能帮我实现此功能?

I am new to cloud computing. Sorry if this is a silly question. I have created a VM from azure portal. My requirement is not to allow the user using the VM to access public website. Can anyone help me how to achieve this functionality?

谢谢

推荐答案

您可能具有在创建VM时创建的网络安全组.您可以在其中指定入站和出站数据流量的规则.

You probably have a Network Security Group that was created when you created the VM. In there you can specify rules for inbound and outbound data traffic.

找到NSG并添加一条规则,以阻止来自VM的所有出站流量.您仍然应该能够连接到VM,只是无法在任何地方连接.如果您仍然希望该规则能够访问同一虚拟网络中的其他计算机,则还可以使该规则仅阻止绑定到Internet的流量.

Find the NSG and add a rule that blocks all outbound traffic from the VM. You should still be able to connect to the VM, it just can't connect anywhere. You can also make the rule only block traffic bound to the internet if you still wish for it to have access to other machines in the same virtual network.

网络安全组文档: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-nsg

这篇关于如何限制对某些公共网站的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆