Geo*_*kos 3 networking virtual-machines azure
我无法让运行 Windows Server 2012 的 Azure VM 从其公共静态 IP 提供 IIS 默认网站。
创建了一个运行 Win Server 2012 R2 的 VM 并安装了 Web 服务器角色。
浏览到 localhost 并可以看到默认网站正在运行
在 Azure 中,将 VM 配置为具有公共静态 IP 地址并将 DNS 名称添加到公开解析为静态 IP 的 azure。
在 Azure 中,为 VM 网络接口配置了一个安全组并添加了以下规则:
allow-http source: any source port: 80 dest: any dest port: 80 service: tcp/80 action: allow
allow-https source: any source port: 80 dest: any dest port: 80 service: tcp/443 action: allow
Run Code Online (Sandbox Code Playgroud)在 Windows 防火墙设置中,确保启用了允许 HTTP 和 HTTPS 流量的规则。(我也尝试过完全禁用防火墙)。
在 IIS 中,确保默认网站绑定到任何 IP 地址。
当我尝试连接到 VM 静态 IP 地址时,例如:http://MY.PUBLIC.STATIC.IP
,我根本无法连接。我也无法 PING 服务器。
关于我做错了什么的任何想法?
您将传入连接限制为仅端口 80。客户端浏览器可以使用 1024 和 65536 之间的端口号进行传出连接。
您需要更改安全组设置以允许来自任何端口的传入连接:
allow-http source: any source port: any dest: any dest port: 80 service: tcp/80 action: allow
allow-https source: any source port: any dest: any dest port: 80 service: tcp/443 action: allow
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7026 次 |
最近记录: |