Contents

enforceRoutes

A Boolean value that indicates whether route rules for the tunnel take precedence over any locally defined routes.

Declaration

var enforceRoutes: Bool { get set }

Mentioned in

Discussion

If this property is true when the includeAllNetworks property is false, the system scopes the included routes to the VPN and the excluded routes to the current primary network interface. This property supersedes the system routing table and scoping operations by apps.

If you set both the enforceRoutes and excludeLocalNetworks properties to true, the system excludes network connections to hosts on the local network.

NETransparentProxyManager doesn’t support this property. The default value for this property is false.

See Also

Routing network traffic