为 Azure 点到站点 VPN 网关配置 OpenVPNConfigure OpenVPN for Azure point-to-site VPN Gateway

本文可帮助你在 Azure VPN 网关上设置 OpenVPN® 协议This article helps you set up OpenVPN® Protocol on Azure VPN Gateway. 本文假设你已拥有一个可正常工作的点到站点环境。The article assumes that you already have a working point-to-site environment. 如果并非如此,请按照步骤 1 中的说明来创建点到站点 VPN。If you do not, use the instructions in step 1 to create a point-to-site VPN.

1.创建点到站点 VPN1. Create a point-to-site VPN

如果还没有正常运行的“点到站点”环境,请按照说明创建一个。If you don't already have a functioning point-to-site environment, follow the instruction to create one. 请参阅创建点到站点 VPN,以创建和配置使用本机 Azure 证书身份验证的点到站点 VPN 网关。See Create a point-to-site VPN to create and configure a point-to-site VPN gateway with native Azure certificate authentication.

Important

OpenVPN 不支持基本 SKU。The Basic SKU is not supported for OpenVPN.

2.在网关上启用 OpenVPN2. Enable OpenVPN on the gateway

在网关上启用 OpenVPN。Enable OpenVPN on your gateway. 在运行以下命令之前,请确保已为点到站点(IKEv2 或 SSTP)配置网关:Make sure that the gateway is already configured for point-to-site (IKEv2 or SSTP) before running the following commands:

$gw = Get-AzVirtualNetworkGateway -ResourceGroupName $rgname -name $name
Set-AzVirtualNetworkGateway -VirtualNetworkGateway $gw -VpnClientProtocol OpenVPN

后续步骤Next steps

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

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