IncludeAllNetworks with excludeRoutes do not seem to work together

When I set IncludeAllNetworks in my VPN profile along with the excludeRoutes for traffic I want to go outside of the tunnel, I see the exclude routes being added to the the route table but when we try and to connect on those hosts something is setting a route to the TUN interface and ignoring the excluded routes in the settings. I'm assuming that some policy before any route table is being looked at is doing this but does that then mean IncludeAllNetworks=true and excludeRoutes are actually incompatible? Is this documented and I just missed it?

Answered by DTS Engineer in 903547022

This is expected. Your packet tunnel provide effectively operates in one of two modes depending on the includeAllNetworks setting. Routing your VPN network traffic has the details.

Share and Enjoy

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

Accepted Answer

This is expected. Your packet tunnel provide effectively operates in one of two modes depending on the includeAllNetworks setting. Routing your VPN network traffic has the details.

Share and Enjoy

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

@DTS Engineer

It’s also mutually exclusive from the includeAllNetworks property. If you set includeAllNetworks to true, the system ignores the enforceRoutes property.

Missed that sentence. Thank you.

IncludeAllNetworks with excludeRoutes do not seem to work together
 
 
Q