【问题标题】:Access SonarQube Port 9000 outside (publicly) the Azure VM在 Azure VM 外部(公开)访问 SonarQube 端口 9000
【发布时间】:2021-04-05 23:52:28
【问题描述】:

我在 Azure VM (Windows) 上配置了 SonarQube。一切都按预期工作。唯一的问题是我无法在 Azure VM 之外访问 SonarQube 门户。我将防火墙和子网 NSG 中的端口列入白名单,但没有用。我尝试通过 VM 公共 IP 和 DNS 访问它,但都没有成功。

端口:9000

是否需要任何特定配置?

【问题讨论】:

    标签: azure networking sonarqube virtual-machine azure-virtual-machine


    【解决方案1】:

    如果在 Azure VM (Windows) 上配置 SonarQube 后一切正常。您应该通过打开浏览器并打开 http://localhost:9000/ 来看到声纳主屏幕。

    确保向 Windows 防火墙添加规则。您可以在 Azure VM 上以管理员身份打开命令提示符并运行以下命令。

    netsh advfirewall firewall add rule name=Sonar dir=in action=allow protocol=TCP localport=9000
    

    在 NSG 中添加入站安全规则。

    那么你应该可以通过http://<public IP address of VM>:9000访问它。

    您可以获取更多详细信息here,如果您有任何问题,请告诉我。

    【讨论】:

    • 你成就了我的一天。固件配置只是我的配置中缺少的一部分。对于好奇 - 为什么我们需要额外的防火墙设置,而我们已经通过入站规则允许特定端口?
    • NSG 用于 Azure 子网或网卡级别的防火墙,但默认情况下,Azure VM 内部有一个 Windows 防火墙,除非您禁用它。
    猜你喜欢
    • 2019-02-09
    • 2018-05-26
    • 1970-01-01
    • 2017-05-18
    • 2018-12-27
    • 1970-01-01
    • 1970-01-01
    • 2020-09-11
    • 2021-08-05
    相关资源
    最近更新 更多