VPN.VPN
The dictionary that contains VPN, IPSec, and IKEv2 settings.
Declaration
object VPN.VPNProperties
| Name | Type | Description |
|---|---|---|
AuthenticationMethod | string | The authentication method to use. |
AuthName | string | The VPN account username. |
AuthPassword | string | The VPN account password. Only use this if |
DisconnectOnIdle | integer | If |
DisconnectOnIdleTimer | integer | The length of time to wait, in seconds, before disconnecting an on-demand connection. In watchOS, the maximum allowed value is |
EnforceRoutes | integer | If If Not available in watchOS. Available: iOS 14.2+ | iPadOS 14.2+ | macOS 11+ | tvOS 17+ | visionOS 1+ |
ExcludeAPNs | integer | If Available: iOS 16.4+ | iPadOS 16.4+ | macOS 13.3+ | visionOS 1+ |
ExcludeCellularServices | integer | If Available: iOS 16.4+ | iPadOS 16.4+ | macOS 13.3+ | visionOS 1+ |
ExcludeDeviceCommunication | integer | If set to Available: iOS 17.4+ | iPadOS 17.4+ | macOS 14.4+ | visionOS 1.1+ |
ExcludeLocalNetworks | integer | If Available: iOS 14.2+ | iPadOS 14.2+ | macOS 10.15+ | visionOS 1+ |
IncludeAllNetworks | integer | If
Not available in watchOS. Available: iOS 14+ | iPadOS 14+ | macOS 10.15+ | visionOS 1+ |
OnDemandEnabled | integer | If |
OnDemandMatchDomainsAlways | [string] | A list of domain names. The system treats associated domain names as though they’re associated with the In iOS 7 and later, this key is deprecated (but still supported) in favor of Not available in watchOS. Deprecated: iOS 7+ | iPadOS 7+ |
OnDemandMatchDomainsNever | [string] | A list of domain names. If the host name ends with one of these domain names, the system doesn’t start the VPN automatically. The system uses this value to exclude a subdomain within an included domain. In iOS 7 and later, this key is deprecated (but still supported) in favor of Not available in watchOS. Deprecated: iOS 7+ | iPadOS 7+ |
OnDemandMatchDomainsOnRetry | [string] | A list of domain names. If the host name ends with one of these domain names and a DNS query for that domain name fails, the system starts the VPN automatically. In iOS 7 and later, this key is deprecated (but still supported) in favor of Not available in watchOS. Deprecated: iOS 7+ | iPadOS 7+ |
OnDemandRules | [VPN.VPN.OnDemandRulesElement] | An array of dictionaries defining On Demand Rules. |
OnDemandUserOverrideDisabled | integer | If Available: iOS 14+ | iPadOS 14+ | tvOS 17+ | visionOS 1+ |
PayloadCertificateUUID | string | The UUID of the certificate payload within the same profile to use for account credentials. |
ProviderBundleIdentifier | string | The bundle identifier for the VPN provider. Not available in watchOS. |
ProviderDesignatedRequirement | string | If the VPN provider is implemented as a system extension, this field is required. Not available in watchOS. Available: macOS 10.15+ | tvOS 17+ |
ProviderType | string | The type of VPN service. If the value is |
RemoteAddress Required | string | The IP address or hostname of the VPN server. |