# Client VPN OS Configuration

<section class="mt-content-container" id="bkmrk-this-article-outline">This article outlines instructions to configure a client VPN connection on commonly used operating systems.

Learn more with these free online training courses on the Meraki Learning Hub:

<div class="wiki-content"><div id="bkmrk-implementing-remote-">- [Implementing Remote Access with IPsec Client VPN](https://learning.meraki.net/#/online-courses/c6ea59b1-e3ab-444d-9832-6a5d3bdcc3b5 "Module Name")

<div><span class="mt-font-size-11"><span class="mt-color-7f8c8d">*Sign in with your Cisco SSO or create a free account to start training.*</span></span></div></div></div>## Android

<p class="callout info">**Note**: Android devices running Android 12 and above do not support Layer 2 Tunneling Protocol/Internet Protocol Security (L2TP/IPsec) VPNs. Devices with existing configurations will continue to work. Client VPN connection cannot be configured on new devices.  
  
To check the Android version of a device, see [Check &amp; update your Android version](https://support.google.com/android/answer/7680439?sjid=4961139217595395183-NA "https://support.google.com/android/answer/7680439?sjid=4961139217595395183-NA") in Google Support.</p>

To configure an Android device to connect to the client VPN, see [Connect to a virtual private network (VPN) on Android](https://support.google.com/android/answer/9089766#zippy=%2Cadd%2Cconnect "https://support.google.com/android/answer/9089766#zippy=%2Cadd%2Cconnect") in Google Support.

The following VPN information is needed to complete the setup:

<div class="wiki-content" id="bkmrk-name%3A%C2%A0this-can-be-an"><div class="mt-page-section" id="bkmrk-name%3A%C2%A0this-can-be-an-1"><div class="mt-page-section" id="bkmrk-name%3A%C2%A0this-can-be-an-2"><div class="mt-section" mt-section-origin="MX/Client_VPN/Client_VPN_OS_Configuration">- **Name**: This can be anything you want to name the connection, for example, "*Work VPN*"
- **Type**: Select **L2TP/IPSEC PSK**
- **Server address**: Enter the hostname (for example: abcd.com) or the active WAN IP (for example: a.b.c.d) 
    - Hostname is preferred to improve reliability during WAN failover
    - This information is located in the Meraki dashboard under **Security &amp; SD-WAN** &gt; **Monitor** &gt; **Appliance status**
- **IPSec pre-shared key**: Enter the pre-shared key that admin created in **Security &amp; SD-WAN &gt; Configure &gt; Client VPN**

</div></div></div></div>## Chrome OS

To configure a Chrome OS device to connect to client VPN, see [Set up virtual private networks (VPNs)](https://support.google.com/chromebook/answer/1282338?hl=en#zippy=%2Cltpipsec-vpn-support "https://support.google.com/chromebook/answer/1282338?hl=en#zippy=%2Cltpipsec-vpn-support") in Google Support.

The following VPN information is needed to complete the setup:

<div class="wiki-content"><div class="mt-page-section"><div class="mt-page-section"><div class="mt-section" mt-section-origin="MX/Client_VPN/Client_VPN_OS_Configuration"><div>- **Service name**: This can be anything you want to name this connection, for example, "*Work VPN*"
- **Provider type**: Select **L2TP/IPsec**
- **Server hostname**: Enter the hostname (for example: abcd.com) or the active WAN IP (for example: a.b.c.d) 
    - Hostname is preferred to improve reliability during WAN failover
    - This information is located in the Meraki dashboard under **Security &amp; SD-WAN** &gt; **Monitor** &gt; **Appliance status**
- **Authentication type**: Select **Pre-shared key**
- **Username**: Credentials for connecting to VPN—if using Meraki authentication, this will be an email address
- **Password**: Credentials for connecting to VPN
- **Pre-shared key**: Enter the shared secret that admin created in **Security &amp; SD-WAN** &gt; Configure** &gt; **Client VPN**

</div></div></div></div></div>## iOS

To configure an iOS device to connect to the client VPN, follow these steps:

1. Navigate to **Settings** &gt; **General** &gt; **VPN &amp; Device Management** &gt; **VPN &gt; Add VPN Configuration**
2. **Type**: Set to L2TP
3. **Description**: This can be anything you want to name this connection, for example, "*Work VPN*"
4. **Server**: Enter the hostname (for example: abcd.com) or the active WAN IP (for example: a.b.c.d) 
    - Hostname is preferred to improve reliability during WAN failover
    - This information is located in the Meraki dashboard under **Security &amp; SD-WAN** &gt; **Monitor** &gt; **Appliance status**
5. **Account**: Enter the username
6. **Password**: Enter if desired 
    - If the password is left blank, it will need to be entered each time the device attempts to connect to the client VPN
7. **Secret**: Enter the shared secret that admin created in **Security &amp; SD-WAN** &gt; Configure** &gt; **Client VPN**
8. Ensure that **Send All Traffic** is set to on
9. Save the configuration

## macOS

<p class="callout info">The following authentication methods are supported:  
  
**User authentication:** Active Directory (AD), RADIUS, or Meraki-hosted authentication  
**Machine authentication:** Preshared keys (for example: shared secret)  
  
When using Meraki-hosted authentication, the VPN account and username setting is the user email address entered in the Meraki dashboard.</p>

To configure a macOS device to connect to client VPN, see [Set up a VPN connection on Mac](https://support.apple.com/guide/mac-help/set-up-a-vpn-connection-on-mac-mchlp2963/mac "https://support.apple.com/guide/mac-help/set-up-a-vpn-connection-on-mac-mchlp2963/mac") in Apple Support.

The following VPN information is needed:

- **Display Name**: This can be anything you want to name this connection, for example, "*Work VPN*"
- **Server Address:** Enter the hostname (for example: abcd.com) or the active WAN IP (for example: a.b.c.d) 
    - Hostname is preferred to improve reliability during WAN failover
    - This information is located in the Meraki dashboard under **Security &amp; SD-WAN** &gt; **Monitor** &gt; **Appliance status**
- **Account Name:** Enter the account name of the user (based on AD, RADIUS, or Meraki cloud authentication)
- **Password:** User password (based on AD, RADIUS or Meraki cloud authentication)
- **Machine Authentication &gt; Shared Secret:** Enter the shared secret that admin created in **Security &amp; SD-WAN** &gt; Configure** &gt; **Client VPN**

<p class="callout info">Ensure that the MACs network adapter service order includes the VPN interface as the first item (in the list) otherwise all the traffic will not leave on the Client VPN tunnel. For more reference, see [Change the order of the network services your Mac uses](https://support.apple.com/en-me/guide/mac-help/mchlp2711/mac "https://support.apple.com/en-me/guide/mac-help/mchlp2711/mac") in Apple support.</p>

<div class="aui-message hint shadowed information-macro"><div class="mt-page-section"><div class="aui-message problem shadowed information-macro"> </div></div></div>## Windows

<p class="callout info">The following authentication methods are supported:  
User authentication: Active Directory (AD), RADIUS, or Meraki-hosted authentication  
Machine authentication: Pre-shared keys  
  
When using Meraki-hosted authentication, the VPN account and username setting is the user email address entered in the Meraki dashboard.</p>

To configure a **Windows 10 or Windows 11** device to connect to client VPN, see [Connect to a VPN in Windows](https://support.microsoft.com/en-us/windows/connect-to-a-vpn-in-windows-3d29aeb1-f497-f6b7-7633-115722c1009c "https://support.microsoft.com/en-us/windows/connect-to-a-vpn-in-windows-3d29aeb1-f497-f6b7-7633-115722c1009c") in Microsoft Support page.

The following VPN information is needed to complete the setup:

<div>- In the **Settings app** on your Windows device, select​​​​​​ **Network &amp; internet &gt; VPN &gt; Add VPN**. 
    - **VPN provider**: Set to Windows (built-in)
    - **Connection name**: This can be anything you want to name this connection, for example, "Work VPN"
    - **Server name or address**: Enter the hostname (for example: abcd.com) or the active WAN IP (for example: a.b.c.d) 
        - Hostname is preferred to improve reliability during WAN failover
        - This information is located in the Meraki dashboard under **Security &amp; SD-WAN** &gt; **Monitor** &gt; **Appliance status**
    - **VPN type**: Select **L2TP/IPsec with pre-shared key**
    - **User name** and **Password**: optional

</div>![Windows-build-in-Client-VPN-config.jpg](https://documentation.meraki.com/@api/deki/files/30273/Windows-build-in-Client-VPN-config.jpg?revision=1&size=bestfit&width=269&height=424)

After the VPN connection has been created, set the Authentication protocols:

<div>1. Choose the VPN connection and then select **Advanced options** &gt; **More VPN properties &gt; Edit &gt; Security Tab**. 
    - **Note:** Alternatively, run **ncpa.cpl** directly from Search or Command prompt to quickly access your VPN adapters.
2. In the **Security** tab, under **Data encryption &gt;** Select **Require encryption (disconnect if sever declines)**
3. Under **Authentication &gt;** Select **Allow these protocols** &gt; Tick the box **Unencrypted password (PAP)**
4. Verify that no other protocols are selected

<div>![Windows-build-in-Client-VPN-Security-Tab-Propoerties-config.jpg](https://documentation.meraki.com/@api/deki/files/30274/Windows-build-in-Client-VPN-Security-Tab-Propoerties-config.jpg?revision=1&size=bestfit&width=316&height=387)</div><div> </div><div><div class="aui-message hint shadowed information-macro"><div class="message-content"><div class="note-info style-wrap">  
</div></div></div></div></div><p class="callout info">Passwords sent over an IPsec tunnel between the client device and the MX are always encrypted, even when using PAP authentication protocols. The password is fully secure and never sent in clear text over the WAN or the LAN.</p>

</section><section class="mt-content-container" id="bkmrk-linux-to-configure-a">## Linux

To configure a Red Hat Linux device to connect to client VPN, see [Configuring a VPN connection](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-a-vpn-connection_configuring-and-managing-networking "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-a-vpn-connection_configuring-and-managing-networking") in Red Hat Documentation.

To configure an Ubuntu Linux device to connect to client VPN, see [Connect to a VPN](https://help.ubuntu.com/stable/ubuntu-help/net-vpn-connect.html.en "https://help.ubuntu.com/stable/ubuntu-help/net-vpn-connect.html.en") in Ubuntu Documentation.

The following packages, and their dependencies, are minimum requirements for Linux:

<div class="wiki-content"><div class="mt-section" mt-section-origin="MX/Client_VPN/Client_VPN_OS_Configuration">- xl2tpd to implement L2TP
- strongswan or libreswan to implement IPSec

</div></div>GUI management of the connection requires the network-manager-l2tp-gnome VPN plugin.

</section>