> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# VPN

> Provision an IKEv2 VPN connection on managed Macs through the built-in client: its server, identifiers and routing.

The VPN control adds an IKEv2 VPN connection to your Macs, in the VPN client built into macOS. You set the server the Mac connects to, the identifiers of both ends, and how traffic is routed through the tunnel. Add one configuration per VPN connection.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | | | | |

Requires macOS 15 or later.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **VPN**, then click **Add configuration**.

**2. Configure the settings**

Enter a **Name**, then the connection and routing settings. See the settings below.

**3. Select targeting**

Choose which devices to apply the configuration to: all macOS devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

## Settings

| Section | Setting | Description |
| - | - | - |
| **Connection** | **Server address** | Required. The address of the VPN server, such as `vpn.example.com`. |
| | **Server identifier** | Required. The identifier the server presents, such as `vpn.example.com`. |
| | **Client identifier** | Required. The identifier the Mac presents, such as `client.example.com`. |
| **Routing** | **Route all network traffic through the tunnel** | **On**, **Off**, **Not configured** |
| | **Keep local network traffic outside the tunnel** | **On**, **Off**, **Not configured** |
| | **Enforce the tunnel routes** | **On**, **Off**, **Not configured** |
| | **Disconnect when idle (minutes)** | From 1 to 1440 minutes. Leave empty to keep the connection up while idle. |

A routing setting left on **Not configured** isn't written: macOS uses its own default.

## How it works

Primo deploys a configuration profile with a VPN payload for one IKEv2 connection. The connection shows under the configuration's **Name** in the Mac's VPN settings.

The connection authenticates with EAP. The profile holds no password: the Mac asks the employee for their user name and password the first time they connect.

> [!NOTE]
>
> The control sets up IKEv2 connections of the built-in client only. A VPN that runs through its vendor's own app, certificate authentication and VPN On Demand are not configured by this control.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration. Removing a configuration removes its VPN connection from the Mac.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Wi-Fi](https://docs.getprimo.com/mdm/policies/wifi.md)
* [Content filter provider](https://docs.getprimo.com/mdm/policies/content-filter-provider.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.