Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
91 views
in Technique[技术] by (71.8m points)

ios - NEPacketTunnelProvider "source-application mode"

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I finally managed to find the related documentation. For some reason, it's located on the documentation page for the NETunnelProviderManager class.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...