Configuring Routing network traffic properties

Requirement: We need to update below tunnel provider properties once VPN is up. Is it possible?

includeAllNetworks
excludeLocalNetworks
enforceRoutes

When is the standard time to configure and save the below properties in system preferences?

  1. Is it possible to save these properties in system preference when VPN is up?
saveToPreferencesWithCompletionHandler
  1. If we can change these properties in VPN connected state, When these tunnel provider properties will come into effect?

1. Is it possible to save these properties in system preference when VPN is up?

Yes.

If your provider needs to change its behaviour based on these settings, use KVO to observe the protocolConfiguration property.

2. If we can change these properties in VPN connected state, When these tunnel provider properties will come into effect?

They should come into effect promptly.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Configuring Routing network traffic properties
 
 
Q