<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/NetworkVPNIPSec",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rmdm-declarations:NetworkVPNIPSec"
  },
  "title" : "NetworkVPNIPSec"
}
-->

# NetworkVPNIPSec

The declaration to configure a VPN using the IPSec sub-type.

```
object NetworkVPNIPSec
```

## Discussion

Specify `com.apple.configuration.network.vpn.ipsec` as the declaration type.

### Configuration availability

|||
|--------------------------------|----------------------------------------------|
|Allowed in supervised enrollment|iOS, macOS, Shared iPad, visionOS             |
|Allowed in device enrollment    |iOS, Shared iPad, visionOS                    |
|Allowed in user enrollment      |N/A                                           |
|Allowed in local enrollment     |iOS, macOS, Shared iPad, visionOS             |
|Allowed in system scope         |iOS, macOS, Shared iPad, visionOS             |
|Allowed in user scope           |N/A                                           |
|Apply                           |Multiple configurations are applied separately|

### Configuration examples

**Shared secret:**

This configuration sets up an IPSec VPN using a shared secret and group name for authentication.

```json
{
    "Type": "com.apple.configuration.network.vpn.ipsec",
    "Identifier": "EB13EE2B-5D63-4EBA-810F-5B81D07F5017",
    "ServerToken": "E180CA9A-F089-4FA3-BBDF-94CC159C4AE8",
    "Payload": {
        "VisibleName": "Corporate IPSec VPN",
        "HostName": "vpn.example.com",
        "Authentication": {
            "Method": "SharedSecret",
            "LocalIdentifier": "vpngroup",
            "LocalIdentifierType": "KeyID",
            "CredentialsAssetReference": "64BF8F5C-8CFD-40AA-9082-A0B594D4E100"
        }
    }
}
```

**Certificate:**

This configuration sets up an IPSec VPN using a certificate identity asset for authentication.

```json
{
    "Type": "com.apple.configuration.network.vpn.ipsec",
    "Identifier": "2A3B4C5D-6E7F-8A9B-0C1D-2E3F4A5B6C7D",
    "ServerToken": "F1E2D3C4-B5A6-7890-ABCD-EF1234567890",
    "Payload": {
        "VisibleName": "Corporate IPSec VPN (Certificate)",
        "HostName": "vpn.example.com",
        "Authentication": {
            "Method": "Certificate",
            "IdentityAssetReference": "CB3E6C7F-2318-437B-8A9E-D50C69376DE4"
        }
    }
}
```

## Topics

### Objects

[`NetworkVPNIPSecAuthenticationObject`](/documentation/DeviceManagement/NetworkVPNIPSecAuthenticationObject)

Settings that control authentication.

[`NetworkVPNIPSecDNSObject`](/documentation/DeviceManagement/NetworkVPNIPSecDNSObject)

A dictionary to use for all VPN types.

[`NetworkVPNIPSecIdleObject`](/documentation/DeviceManagement/NetworkVPNIPSecIdleObject)

Specifies details about how the system handles idle VPN connections.

[`NetworkVPNIPSecOnDemandObject`](/documentation/DeviceManagement/NetworkVPNIPSecOnDemandObject)

Specifies details about how the system controls on-demand VPN.

[`NetworkVPNIPSecProxiesObject`](/documentation/DeviceManagement/NetworkVPNIPSecProxiesObject)

The dictionary to use to configure `Proxies` for use with `VPN`.



---

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)