我无法打开Azure的VM端口

时间:2016-08-15 07:19:04

标签: azure azure-virtual-machine

到目前为止我的尝试......

  1. 在Classic和ARM上创建了azure VM。
  2. 创建经典和ARM机器(NSG)端口的终点:9000
  3. 在Windows Server R2 Datacenter上的防火墙中打开允许端口9000
  4. 检查check-host.net
  5. 上的端口状态
  6. 默认端口状态(远程桌面)已打开,其他端口已关闭。
  7. 这就是我在azure classic VM& amp;中创造我的终点的方法。制作新的防火墙入站出站规则。

    enter image description here

    我的自定义端口的测试结果(已关闭)&远程桌面端口(打开):

    (我将在评论中添加我的第二张图片作为链接)

    抱歉屏幕截图不正确..实际上我是新来的,所以我只能发布最多两个链接。

1 个答案:

答案 0 :(得分:0)

我写了一篇关于如何在不久前为HTTP和HTTPS流量执行此操作的简短帖子。我认为同样的过程适用于您的情况:

• The Azure Management Console has to be used to setup Inbound and Outbound security rules.
• This is necessary, for example, to allow HTTP and HTTPS traffic thru to the Azure virtual machine.
• NOTE: The Azure virtual machine will likely be configured with the Windows Firewall on. 
    ○ If the Windows Firewall is on, then it also will likely need to be configured with rules to allow HTTP and HTTPS traffic.
    ○ In this sense, Azure has two firewalls:
        § One firewall managed via the Azure Management Console.
        § Another firewall manage via the Windows Firewall.
• For inbound security rules, the following settings were used to allow HTTP and HTTPS traffic:
    ○ HTTP:
        § Name: Port_80_HTTP_Traffic
        § Priority: 100
        § Source: Any
        § Protocol: Any
        § Source Port Range: *
        § Destination: Any
        § Destination Port Range: 80
        § Action: Allow
    ○ HTTPS:
        § Name: Port_443_HTTPS_Traffic
        § Priority: 101
        § Source: Any
        § Protocol: Any
        § Source Port Range: *
        § Destination: Any
        § Destination Port Range: 443
        § Action: Allow
• For outbound security rules:
    ○ HTTP:
        § Name: Port_80_HTTP_Traffic_Outbound
        § Priority: 100
        § Destination: Any
        § Destination Port Range: *
        § Source: Any
        § Protocol: TCP
        § Source Port Range: 80
        § Action Allow
    ○ HTTPS:
        § Name: Port_443_HTTP_Traffic_Outbound
        § Priority: 101
        § Destination: Any
        § Destination Port Range: *
        § Source: Any
        § Protocol: TCP
        § Source Port Range: 443
        § Action Allow