ss-abramchuk / OpenVPNAdapter

Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS.
GNU Affero General Public License v3.0
482 stars 216 forks source link

Per App VPN #134

Open manglikankit opened 5 years ago

manglikankit commented 5 years ago

I need to implement that only my app use the vpn connection rest uses the normal internet of device where as VPN is established. Please help me how I can do this?

ss-abramchuk commented 5 years ago

Hi @9650455465,

You can try to configure NEAppRule

manglikankit commented 5 years ago

Hi ss-abramchuk

I tried to find out the solution with this term you mentioned but due to new I couldn't find up to the mark. So if possible can you please provide the idea in terms of swift code even I am not sure that where I need to write this code either in my viewcontroller class or NetworkExtension subclass "NEPacketTunnelProvider". Please suggest.

manglikankit commented 5 years ago

Hi ss-abramchuk

I am not able to add rules for Per App VPN using NeAppRule class even I couldn't find any code where it is used. If you have any idea about that please share. I am help less now.

colehuang commented 4 years ago

Hi manglikankit Have you found a way to solve the problem?