# IPSec Remote Access VPN Clients on Windows

## <mark style="color:green;">**Overview**</mark> <a href="#overview" id="overview"></a>

This configuration guide describes configuring IPsec IKEv2 Remote Access VPN by Windows Client on Windows OS to establish VPN connections. After that, the customer can access virtual machines and applications located on the HGIO Cloud with more security and reliability.

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

**Setup IPSec IKEv2 Remote Access VPN**\
**Setup VPN Windows Client**

{% stepper %}
{% step %}
**Step 1:** Configuration VPN Profile for Windows client.

Open **PowerShell** with **Administrator** permission.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fwkq15nKk43T8F9ZFSmLC%2Fimage.png?alt=media&#x26;token=32b7e24f-10c2-4eee-9e6c-202af42ef259" alt=""><figcaption></figcaption></figure>

Copy and paste the information below into PowerShell (replace red word xxxx by your domain name).

> Add-VpnConnection -Name "HI-GIO-IKEv2-VPN" -ServerAddress " remote-xxxxx.xxxx01.vpn.higio.net " -TunnelType "Ikev2"
>
> Set-VpnConnectionIPsecConfiguration -ConnectionName "HI-GIO-IKEv2-VPN" -AuthenticationTransformConstants GCMAES128 -CipherTransformConstants GCMAES128 -EncryptionMethod GCMAES128 -IntegrityCheckMethod SHA256 -PfsGroup "PFS2048" -DHGroup "Group14" -PassThru -Force

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FCBmIiY3yJEmjhCQ5YbNC%2Fimage.png?alt=media&#x26;token=46a8bcd0-77fe-4e95-afed-3c864bd175dd" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 2:** Enable VPN split tunneling in the Windows client.

Virtual private network (VPN) split tunneling lets you route some of your application or device traffic through an encrypted VPN. In contrast, other applications or devices have direct access to the internet.

Copy and paste the information below into PowerShell.&#x20;

> Set-VPNconnection -name "HI-GIO-IKEv2-VPN" -SplitTunneling $true

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FQnVv1bRD0u2b6ZqpyA9Y%2Fimage.png?alt=media&#x26;token=79b80ed3-cd82-46ef-9bd1-672fa28d68d2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 3:** Add a route to a VPN connection.

* Add a VPN connection route for the subnet (example: <mark style="color:red;">10.16.1.0/24</mark>). If we need to add an additional subnet, perform the same way and replace it with the new subnet.
* Copy and paste the information below into PowerShell.&#x20;

> Add-VpnConnectionRoute -ConnectionName "HI-GIO-IKEv2-VPN" -DestinationPrefix "<mark style="color:red;">10.16.1.0/24</mark>" -PassThru

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F2Rbp8VCtenbG5updJTxa%2Fimage.png?alt=media&#x26;token=4ab3b5f6-b736-4c92-a360-8899fe475a2f" alt=""><figcaption></figcaption></figure>

* Step Connect VPN from Windows Client.

<div align="left"><figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fefg9EjsMkLA0YlkNtAI6%2Fimage.png?alt=media&#x26;token=03ecbd6c-8cd9-4c21-a7c4-2204274fca1b" alt=""><figcaption></figcaption></figure></div>

* Login to the account with the provided username and password, then click OK.

<div align="left"><figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FTY8i6y7AxAED3OQuQxKt%2Fimage.png?alt=media&#x26;token=f93cd9c0-0c1d-4d63-96db-3efe16ff633a" alt=""><figcaption></figcaption></figure></div>

* The VPN connection was established successfully.&#x20;

<div align="left"><figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FDilIoYKovXbn9tKayeHP%2Fimage.png?alt=media&#x26;token=c0116d24-c5ec-4984-b66f-a325c8f54cf2" alt=""><figcaption></figcaption></figure></div>

* Using the ping command line, confirm that you are connected to the application located on the HGIO Cloud.

<div align="left"><figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FYKZKDUVCmEDo49HqdJmS%2Fimage.png?alt=media&#x26;token=8a5a6a68-69e9-40c2-b161-2f7f34bee157" alt=""><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

&#x20;
