includeAllNetworks
A Boolean value that indicates whether the system sends most network traffic over the tunnel.
Declaration
var includeAllNetworks: Bool { get set }Mentioned in
Discussion
If this property is true, the system routes network traffic through the tunnel except traffic for designated system services necessary for maintaining expected device functionality.
You can exclude some types of traffic using the excludeAPNs, excludeLocalNetworks, and excludeCellularServices properties in combination with this property. The system always excludes the following network traffic from the tunnel regardless of this property value:
Network control plane traffic that maintains a device’s connection to the local network, such as DHCP.
Captive portal negotiation traffic that authorizes a device with a Wi-Fi hotspot.
Certain cellular services traffic that uses the cellular network only, such as VoLTE.
Traffic that communicates with a companion device, such as an Apple Watch.
NETransparentProxyManager doesn’t support this property. The default value for this property is false.