为点到站点 VPN 网关配置 OpenVPNConfigure OpenVPN for Point-to-Site VPN gateways

本文可帮助你在 Azure VPN 网关上设置 OpenVPN® 协议This article helps you set up OpenVPN® Protocol on Azure VPN Gateway. 可以使用门户或 PowerShell 说明。You can use either the portal, or the PowerShell instructions.

先决条件Prerequisites

门户Portal

  1. 在门户中,导航至“虚拟网络网关”->“点到站点配置”。In the portal, navigate to your Virtual network gateway -> Point-to-site configuration.

  2. 对于“隧道类型”,请从下拉列表中选择“OpenVPN (SSL)” 。For Tunnel type, select OpenVPN (SSL) from the dropdown.

    从下拉列表中选择“OpenVPN SSL”

  3. 保存所做的更改,然后执行后续步骤。Save your changes and continue with Next steps.

PowerShellPowerShell

  1. 使用以下示例在网关上启用 OpenVPN:Enable OpenVPN on your gateway using the following example:

    $gw = Get-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $name
    Set-AzVirtualNetworkGateway -VirtualNetworkGateway $gw -VpnClientProtocol OpenVPN
    
  2. 继续执行后续步骤。Continue with Next steps.

后续步骤Next steps

若要为 OpenVPN 配置客户端,请参阅配置 OpenVPN 客户端To configure clients for OpenVPN, see Configure OpenVPN clients.

“OpenVPN”是 OpenVPN Inc. 的商标。"OpenVPN" is a trademark of OpenVPN Inc.