Instance Property

excludeLocalNetworks

A property that indicates that the system excludes all traffic destined for local networks from the tunnel.

Declaration

var excludeLocalNetworks: Bool { get set }

Discussion

This property has an effect only when includeAllNetworks is true. The default value of this property is false.

This property isn’t supported with NETransparentProxyManager.

See Also

Accessing Common Tunnel Properties

var serverAddress: String?

The address of the tunneling server.

var username: String?

The user name component of the tunneling protocol authentication credential.

var passwordReference: Data?

A persistent keychain reference to a keychain item containing the password component of the tunneling protocol authentication credential.

var identityReference: Data?

A persistent keychain reference to a keychain item containing the certificate and private key components of the tunneling protocol authentication credential.

var identityData: Data?

The certificate and private key components of the tunneling protocol authentication credential, in PKCS12 format.

var identityDataPassword: String?

The password to decrypt the PKCS12 data set in the identityData property.

var disconnectOnSleep: Bool

A flag indicating whether the VPN disconnects when the device sleeps.

var proxySettings: NEProxySettings?

The proxy settings to use for HTTP and HTTPS connections that route through the VPN.

var includeAllNetworks: Bool

A property that indicates that the system sends all network traffic over the tunnel.