新的Azure虚拟机连接超时80端口与NSG规则配置 [英] Connection timeout port 80 on new Azure VM with NSG rules configured

查看:1618
本文介绍了新的Azure虚拟机连接超时80端口与NSG规则配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是用(推荐)资源管理器的部署模式创造了一个新的Ubuntu 14.04虚拟机在微软Azure。下面的截图显示了部署配置以及由此带来的资源:

I just created a new Ubuntu 14.04 virtual machine in Microsoft Azure using the (recommended) resource manager deployment model. The following screenshots show the deployment configuration and the resulting resources:

在这里输入的形象描述

一旦它被部署,我通过公共IP访问的虚拟机使用SSH,登录并安装nginx的。我使用默认配置离开它,做了本地主机卷曲,以确保网络服务器正在运行。

Once it was deployed, I accessed the VM using SSH through the public IP, logged in and installed nginx. I left it with the default configuration and did a 'curl localhost' to ensure the webserver was running.

然后我去了网络安全组资源,增加了对80端口的入站规则的允许规则:

Then I went to the Network Security Group resource and added an Allow rule for port 80 to the Inbound rules:

在这里输入的形象描述

然后我打开一个浏览器,并试图请求与网卡有关的公网IP​​,并得到了连接超时。

I then opened a browser and tried to request the public IP associated with the NIC and got a connection timeout.

编辑:我可以从解除关联网卡的NSG可以访问,但如果我把它重新关联,我会再次获得在几分钟内阻塞

我已经用同样的方法来设置Windows服务器VM,与IIS试过,但我得到了相同的结果。

I have tried using the same process to set up a Windows Server VM, with IIS, but I'm getting the same result.

我是什么在这里失踪?

采用了经典的部署模型做同样的设置,当我得到任何错误,这只是想推荐的资源管理器模式时出现。

I get no errors when doing the same setup using the classic deployment model, this only occurs when trying the recommended resource manager model.

推荐答案

什么是你的源端口上NSG?你离开它的任何/ *?如果不是你把自己局限于交通只能从一个端口来了。

What is your source port on your NSG? Did you leave it Any/*? If not you are limiting yourself to traffic coming only from that one port.

这篇关于新的Azure虚拟机连接超时80端口与NSG规则配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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