具有动态 public IP 的 Azure s2s VPN 连接

Azure s2s VPN connection with dynamic public IP

我们正在本地和 Azure 之间创建 s2s vpn。我们有本地 VPN 设备,public 面向动态 IP。它会工作还是我需要 静态IP?

您需要本地防火墙或路由器的静态 IP。

参考 - Azure VPN

它会起作用,你只需要一个 public 面向 IP 地址,它不应该是 NAT。动态或静态 IP 地址通常与 IP 分配方法不同。部署 S2S VPN 连接时,您将创建一个虚拟网络网关和一个本地网络网关。

The local network gateway typically refers to your on-premises location. You give the site a name by which Azure can refer to it, then specify the IP address of the on-premises VPN device to which you will create a connection.

更多参考资料,想了解的可以Site-to-Site connections and VPN devices

循序渐进:Configuring a site-to-site VPN Gateway between Azure and On-Premise

请参考 this , 您可以使用动态 IP 执行此操作,但需要进行一些调整。