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 Available in iOS 14.2 and later, and macOS 11 and later. Not available in watchOS. |
ExcludeAPNs | integer | If |
ExcludeCellularServices | integer | If |
ExcludeDeviceCommunication | integer | If set to |
ExcludeLocalNetworks | integer | If |
IncludeAllNetworks | integer | If
Not available in watchOS. |
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. |
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. |
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. |
OnDemandRules | [VPN.VPN.OnDemandRulesElement] | An array of dictionaries defining On Demand Rules. |
OnDemandUserOverrideDisabled | integer | If |
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. |
ProviderType | string | The type of VPN service. If the value is |
RemoteAddress Required | string | The IP address or hostname of the VPN server. |