ss-abramchuk / OpenVPNAdapter

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

Block Internet while VPN is paused or reconnecting #203

Open ladmini opened 3 years ago

ladmini commented 3 years ago

I hope that when the server is disconnected, My app not connect via local network. I downloaded an official OpenVPN app, and I found that it has an option "Seamless Tunnel". I try to add persist-key and persist-tun in my ovpn file. Unfortunately, it useless. Could you please tell me how to implement this function?

IMG_7463

zubairahmad2 commented 3 years ago

I hope that when the server is disconnected, My app not connect via local network. I downloaded an official OpenVPN app, and I found that it has an option "Seamless Tunnel". I try to add persist-key and persist-tun in my ovpn file. Unfortunately, it useless. Could you please tell me how to implement this function?

IMG_7463

hi can you tell me my PacketTunnelProvider is not calling for configuration I have file for vpn connection but its not calling can you share me code or please help me to find solution if you have. Thanks.

ladmini commented 3 years ago

Sorry, because the project has confidentiality requirements, so I can't share the code with you. I think you should confirm the following points:

  1. tunnelProtocol.providerBundleIdentifier = "your network extension target's bundle id"
  2. make sure the "Packet Tunnel" is checked.

If persists, it may be your extension configuration problem, you can find some tutorials on Google to do it step by step.

Good luck!