Skip to content

Commit ed11f55

Browse files
Merge pull request #224333 from cherylmc/p2s-ps
Freshness update
2 parents 18e80ec + aaee1e5 commit ed11f55

File tree

2 files changed

+13
-38
lines changed

2 files changed

+13
-38
lines changed

articles/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to configure VPN Gateway server settings for P2S configur
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 01/11/2023
8+
ms.date: 01/18/2023
99
ms.author: cherylmc
1010

1111
---

articles/vpn-gateway/vpn-gateway-howto-point-to-site-rm-ps.md

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: 'Connect to a VNet from a computer - P2S VPN and Azure certificate authentication: PowerShell'
2+
title: 'Configure P2S server configuration - certificate authentication: PowerShell'
33
description: Learn how to connect Windows and macOS clients securely to Azure virtual network using P2S and self-signed or CA issued certificates.
44
titleSuffix: Azure VPN Gateway
55
services: vpn-gateway
66
author: cherylmc
77

88
ms.service: vpn-gateway
99
ms.topic: how-to
10-
ms.date: 05/05/2022
10+
ms.date: 01/18/2023
1111
ms.author: cherylmc
1212
ms.custom: devx-track-azurepowershell
1313

1414
---
15-
# Configure a Point-to-Site VPN connection to a VNet using Azure certificate authentication: PowerShell
15+
# Configure server settings for P2S VPN Gateway connections - certificate authentication - Azure PowerShell
1616

1717
This article helps you securely connect individual clients running Windows, Linux, or macOS to an Azure VNet. Point-to-site VPN connections are useful when you want to connect to your VNet from a remote location, such when you are telecommuting from home or a conference. You can also use P2S instead of a Site-to-Site VPN when you have only a few clients that need to connect to a VNet. Point-to-site connections do not require a VPN device or a public-facing IP address. P2S creates the VPN connection over either SSTP (Secure Socket Tunneling Protocol), or IKEv2.
1818

@@ -105,7 +105,7 @@ $DNS = "10.2.1.4"
105105

106106
## <a name="creategateway"></a>Create the VPN gateway
107107

108-
In this step, you configure and create the virtual network gateway for your VNet.
108+
In this step, you configure and create the virtual network gateway for your VNet. For more complete information about authentication and tunnel type, see [Specify tunnel and authentication type](vpn-gateway-howto-point-to-site-resource-manager-portal.md#type) in the Azure portal version of this article.
109109

110110
* The -GatewayType must be **Vpn** and the -VpnType must be **RouteBased**.
111111
* The -VpnClientProtocol is used to specify the types of tunnels that you would like to enable. The tunnel options are **OpenVPN, SSTP**, and **IKEv2**. You can choose to enable one of them or any supported combination. If you want to enable multiple types, then specify the names separated by a comma. OpenVPN and SSTP cannot be enabled together. The strongSwan client on Android and Linux and the native IKEv2 VPN client on iOS and macOS will use only the IKEv2 tunnel to connect. Windows clients try IKEv2 first and if that doesn’t connect, they fall back to SSTP. You can use the OpenVPN client to connect to OpenVPN tunnel type.
@@ -117,7 +117,7 @@ In this step, you configure and create the virtual network gateway for your VNet
117117
```azurepowershell-interactive
118118
New-AzVirtualNetworkGateway -Name $GWName -ResourceGroupName $RG `
119119
-Location $Location -IpConfigurations $ipconf -GatewayType Vpn `
120-
-VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientProtocol "IKEv2"
120+
-VpnType RouteBased -EnableBgp $false -GatewaySku VpnGw1 -VpnClientProtocol IkeV2,OpenVPN
121121
```
122122

123123
1. Once your gateway is created, you can view it using the following example. If you closed PowerShell or it timed out while your gateway was being created, you can [declare your variables](#declare) again.
@@ -143,7 +143,7 @@ Set-AzVirtualNetworkGateway -VirtualNetworkGateway $Gateway -VpnClientAddressPoo
143143
> You can't generate certificates using Azure Cloud Shell. You must use one of the methods outlined in this section. If you want to use PowerShell, you must install it locally.
144144
>
145145
146-
Certificates are used by Azure to authenticate VPN clients for point-to-site VPNs. You upload the public key information of the root certificate to Azure. The public key is then considered 'trusted'. Client certificates must be generated from the trusted root certificate, and then installed on each client computer in the Certificates-Current User/Personal certificate store. The certificate is used to authenticate the client when it initiates a connection to the VNet.
146+
Certificates are used by Azure to authenticate VPN clients for point-to-site VPNs. You upload the public key information of the root certificate to Azure. The public key is then considered 'trusted'. Client certificates must be generated from the trusted root certificate, and then installed on each client computer in the Certificates-Current User/Personal certificate store. The certificate is used to authenticate the client when it initiates a connection to the VNet.
147147

148148
If you use self-signed certificates, they must be created using specific parameters. You can create a self-signed certificate using the instructions for [PowerShell and Windows 10 or later](vpn-gateway-certificates-point-to-site.md), or, if you don't have Windows 10 or later, you can use [MakeCert](vpn-gateway-certificates-point-to-site-makecert.md). It's important that you follow the steps in the instructions when generating self-signed root certificates and client certificates. Otherwise, the certificates you generate will not be compatible with P2S connections and you receive a connection error.
149149

@@ -195,40 +195,15 @@ The following steps help you install on a Windows client. For additional clients
195195

196196
Make sure the client certificate was exported as a .pfx along with the entire certificate chain (which is the default). Otherwise, the root certificate information isn't present on the client computer and the client won't be able to authenticate properly.
197197

198-
## <a name="clientconfig"></a>Configure the VPN client
198+
## <a name="connect"></a>Configure VPN clients and connect to Azure
199199

200-
To connect to the virtual network gateway using P2S, each computer uses the VPN client that is natively installed as a part of the operating system. For example, when you go to VPN settings on your Windows computer, you can add VPN connections without installing a separate VPN client. You configure each VPN client by using a client configuration package. The client configuration package contains settings that are specific to the VPN gateway that you created.
200+
Each VPN client is configured using the files in a VPN client profile configuration package that you generate and download. The configuration package contains settings that are specific to the VPN gateway that you created. If you make changes to the gateway, such as changing a tunnel type, certificate, or authentication type, you'll need to generate another VPN client profile configuration package and install it on each client. Otherwise, your VPN clients may not be able to connect.
201201

202-
You can use the following quick examples to generate and install the client configuration package. For more information about package contents and additional instructions about to generate and install VPN client configuration files, see [Create and install VPN client configuration files](point-to-site-vpn-client-cert-windows.md).
202+
For steps to generate a VPN client profile configuration package, configure your VPN clients, and connect to Azure, see the following articles:
203203

204-
If you need to declare your variables again, you can find them [here](#declare).
205-
206-
### To generate configuration files
207-
208-
```azurepowershell-interactive
209-
$profile=New-AzVpnClientConfiguration -ResourceGroupName $RG -Name $GWName -AuthenticationMethod "EapTls"
210-
211-
$profile.VPNProfileSASUrl
212-
```
213-
214-
### To install the client configuration package
215-
216-
[!INCLUDE [Windows instructions](../../includes/vpn-gateway-p2s-client-configuration-windows.md)]
217-
218-
## <a name="connect"></a>10. Connect to Azure
219-
220-
### Windows VPN client
221-
222-
[!INCLUDE [Connect from Windows client](../../includes/vpn-gateway-p2s-connect-windows-client.md)]
223-
224-
[!INCLUDE [Client certificates](../../includes/vpn-gateway-certificates-verify-client-cert-include.md)]
225-
226-
### Mac VPN client
227-
228-
From the Network dialog box, locate the client profile that you want to use, then click **Connect**.
229-
Check [Install - Mac (macOS)](point-to-site-vpn-client-cert-mac.md) for detailed instructions. If you are having trouble connecting, verify that the virtual network gateway is not using a Basic SKU. Basic SKU is not supported for Mac clients.
230-
231-
![Mac connection](./media/vpn-gateway-howto-point-to-site-rm-ps/applyconnect.png)
204+
* [Windows](point-to-site-vpn-client-cert-windows.md)
205+
* [macOS-iOS](point-to-site-vpn-client-cert-mac.md)
206+
* [Linux](point-to-site-vpn-client-cert-linux.md)
232207

233208
## <a name="verify"></a>To verify a connection
234209

0 commit comments

Comments
 (0)