split Tunnel + exclude APNs

Hello, im currently developing proxy app with XrayCore trying to bypass APNs when tunnel us up and i found .excludeAPNs property in NETunnelProviderProtocol that works only when includeAllNetworks property is also TRUE. I wonder if there is a possible way to make APNs bypass tunnel in split tunnelling mode? because we use excludedRoutes and full tunnel is not an option

Answered by DTS Engineer in 838433022
i found excludeAPNs property … works only when includeAllNetworks property is also TRUE.

Correct.

I wonder if there is a possible way to make APNs bypass tunnel in split tunnelling mode?

No.

Well, you can work out what IP addresses are being used by APNs and exclude those networks, but that’s going to be brittle.

Share and Enjoy

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

Accepted Answer
i found excludeAPNs property … works only when includeAllNetworks property is also TRUE.

Correct.

I wonder if there is a possible way to make APNs bypass tunnel in split tunnelling mode?

No.

Well, you can work out what IP addresses are being used by APNs and exclude those networks, but that’s going to be brittle.

Share and Enjoy

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

split Tunnel + exclude APNs
 
 
Q