如何在 Azure 的 Ubuntu 虚拟机中将 http 端口重定向到 Docker
How to redirect http port to Docker in Azure's Ubuntu virtual machine
我在 Microsoft Azure 的虚拟机上有 Ubuntu 运行。我上面有一个 docker 容器 运行,它有一个网络服务器连接到它。 (运行 在 172.17.0.1:80)
现在我正尝试使用 Azure 的 public IP
使其仅 public 可访问
在网络设置中,我尝试创建入站端口规则
但是没用...
当我尝试连接到 IP 时,我已经尝试使用 tracert 来查看我的 ping 去向,但没有结果。
我过去做过基本的端口路由,但我不明白为什么这个不起作用......
我只想在我的个人连接上输入 13.94.212.10,然后访问该网站。
提前致谢
如果您想访问 Azure VM 上的应用程序 public仅使用其 public IP 地址。
您可以在 NSG 规则中将您的客户端 public IP 列入白名单,例如,在 Source IP addresses
.
中添加客户端 public IP
请注意
If you specify an address for an Azure resource, specify the private
IP address assigned to the resource. Network security groups are
processed after Azure translates a public IP address to a private IP
address for inbound traffic, and before Azure translates a private IP
address to a public IP address for outbound traffic.
我在 Microsoft Azure 的虚拟机上有 Ubuntu 运行。我上面有一个 docker 容器 运行,它有一个网络服务器连接到它。 (运行 在 172.17.0.1:80)
现在我正尝试使用 Azure 的 public IP
在网络设置中,我尝试创建入站端口规则
但是没用...
当我尝试连接到 IP 时,我已经尝试使用 tracert 来查看我的 ping 去向,但没有结果。 我过去做过基本的端口路由,但我不明白为什么这个不起作用...... 我只想在我的个人连接上输入 13.94.212.10,然后访问该网站。
提前致谢
如果您想访问 Azure VM 上的应用程序 public仅使用其 public IP 地址。
您可以在 NSG 规则中将您的客户端 public IP 列入白名单,例如,在 Source IP addresses
.
请注意
If you specify an address for an Azure resource, specify the private IP address assigned to the resource. Network security groups are processed after Azure translates a public IP address to a private IP address for inbound traffic, and before Azure translates a private IP address to a public IP address for outbound traffic.