<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 4.0.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/VPN",
  "metadataVersion" : "0.1.0",
  "role" : "Device Management Profile",
  "symbol" : {
    "kind" : "Device Management Profile",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "mdm-profiles:VPN"
  },
  "title" : "VPN"
}
-->

# VPN

The payload that configures a VPN.

```
object VPN
```

## Discussion

Specify `com.apple.vpn.managed` as the payload type.

### Profile availability

|||
|--------------------------|---------------------------------------|
|Device channel            |iOS, macOS, Shared iPad, tvOS, visionOS|
|User channel              |macOS                                  |
|Allow manual install      |iOS, macOS, tvOS, visionOS             |
|Requires supervision      |N/A                                    |
|Requires user-approved MDM|N/A                                    |
|Allowed in user enrollment|N/A                                    |
|Allow multiple payloads   |iOS, macOS, Shared iPad, tvOS, visionOS|

### Profile example

```plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>IPSec</key>
            <dict>
                <key>AuthenticationMethod</key>
                <string>SharedSecret</string>
                <key>LocalIdentifierType</key>
                <string>KeyID</string>
                <key>SharedSecret</key>
                <data>
                UVhCd2JHVXhNak1o
                </data>
            </dict>
            <key>IPv4</key>
            <dict>
                <key>OverridePrimary</key>
                <integer>0</integer>
            </dict>
            <key>PPP</key>
            <dict>
                <key>AuthName</key>
                <string>username</string>
                <key>AuthPassword</key>
                <string>password</string>
                <key>CommRemoteAddress</key>
                <string>vpn.example.com</string>
            </dict>
            <key>Proxies</key>
            <dict>
                <key>HTTPEnable</key>
                <integer>0</integer>
                <key>HTTPSEnable</key>
                <integer>0</integer>
            </dict>
            <key>UserDefinedName</key>
            <string>VPN Server</string>
            <key>VPNType</key>
            <string>L2TP</string>
            <key>PayloadIdentifier</key>
            <string>com.example.myvpnmanagedprofile</string>
            <key>PayloadType</key>
            <string>com.apple.vpn.managed</string>
            <key>PayloadUUID</key>
            <string>74615F25-3B51-4386-A31B-ACB1F1094EF9</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
        </dict>
    </array>
    <key>PayloadDisplayName</key>
    <string>VPN</string>
    <key>PayloadIdentifier</key>
    <string>com.example.myprofile</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>01E7F1C0-2DD0-4E36-82FF-EC6F29BB6C45</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>
```

## Topics

### Objects

[`VPN.AlwaysOn`](/documentation/DeviceManagement/VPN/AlwaysOn-data.dictionary)

The dictionary that contains IPSec settings.

[`VPN.DNS`](/documentation/DeviceManagement/VPN/DNS-data.dictionary)

The dictionary to configure DNS settings for the VPN.

[`VPN.IKEv2`](/documentation/DeviceManagement/VPN/IKEv2-data.dictionary)

The dictionary to use for an IKEv2 VPN type.

[`VPN.IPSec`](/documentation/DeviceManagement/VPN/IPSec-data.dictionary)

The dictionary to use for an IPSec VPN type.

[`VPN.IPv4`](/documentation/DeviceManagement/VPN/IPv4-data.dictionary)

The dictionary that contains IPV4 settings.

[`VPN.PPP`](/documentation/DeviceManagement/VPN/PPP-data.dictionary)

The dictionary that contains PPP settings.

[`VPN.Proxies`](/documentation/DeviceManagement/VPN/Proxies-data.dictionary)

The dictionary that contains the Proxies settings.

[`VPN.TransparentProxy`](/documentation/DeviceManagement/VPN/TransparentProxy-data.dictionary)

The dictionary to use for a transparent proxy VPN type.

[`VPN.VPN`](/documentation/DeviceManagement/VPN/VPN-data.dictionary)

The dictionary that contains VPN, IPSec, and IKEv2 settings.

[`VPN.VendorConfig`](/documentation/DeviceManagement/VPN/VendorConfig-data.dictionary)

The vendor-specific configuration dictionary.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)