The apple documentation for the PacketTunnelProvider states that it can run in either "source-application mode" or "destination IP mode", but it doesn't mention the "source-application mode" anywhere else nor does it mention how to enable it.
Packet tunnel providers can run in destination IP mode or source-application mode. The latter is one form of per-app VPN (the other form is an App Proxy Provider).
I'm trying to figure out how to run it in source-application mode. I have found the .appRules
property of the NEPacketTunnelProvider class but it is a let
constant and cannot be modified. It seems to be a list of NEAppRule objects, but I'm not even positive that these are what's required or that they would in any way facilitate "source-application mode".
I'm trying to find any documentation or information regarding the "source-application" mode of the NEPacketTunnelProvider.
I wish I had more code to share that I may have tried, but so far all I've found that might be relevant is the .appRules
property of the NEPacketTunnelProvider.
question from:
https://stackoverflow.com/questions/65850157/nepackettunnelprovider-source-application-mode 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…