【问题标题】:Can't PsPing to Azure VM无法 PsPing 到 Azure VM
【发布时间】:2017-05-10 12:10:20
【问题描述】:

我知道对 Azure VM 的 ping 操作已被禁用。以下页面展示了如何使用 Sysinternals 的 PsPing 进行基于 TCP 的 ping:

https://blogs.msdn.microsoft.com/mast/2014/06/22/use-port-pings-instead-of-icmp-to-test-azure-vm-connectivity/

很遗憾,我无法让 PsPing 从我的场所工作到我拥有的 Azure VM。我通过 Azure 门户在网络安全组中创建了入站规则:

我的 Azure VM 是 Windows 2012 Datacenter 服务器。我在其防火墙中添加了以下规则:

尽管如此,当目标端口 80 时,我无法让 PsPing 工作。顺便说一下,对端口 3389(RDP 端口)的 PsPing 工作。

我还应该尝试什么?

【问题讨论】:

  • 你可以在你的虚拟机上安装telnettelnet 127.0.0.1 80,能成功吗?

标签: azure azure-virtual-machine sysinternals


【解决方案1】:

您应该检查您的端口是否正在侦听。根据您的描述,您的虚拟机似乎没有监听端口 80。您可以使用以下命令进行检查。

netstat -ant|findstr 80

请确保 80 端口正在监听 tcp,结果应该如下:

 TCP    0.0.0.0:80           0.0.0.0:0              LISTENING       InHost

另外,您应该检查您的 NSG。 NSG 可以关联到子网或 VM 网卡。

【讨论】:

  • 沃尔特,非常感谢您!正如你猜对的那样,没有监听器,所以我没有摆弄 IIS,而是下载并运行了 Mongoose,它工作了。非常感谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-05-03
  • 1970-01-01
  • 2016-06-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多