Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Block Internet while VPN is paused or reconnecting #203

Open
ladmini opened this issue Apr 16, 2021 · 2 comments
Open

Block Internet while VPN is paused or reconnecting #203

ladmini opened this issue Apr 16, 2021 · 2 comments

Comments

@ladmini
Copy link

ladmini commented Apr 16, 2021

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
Copy link

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
Copy link
Author

ladmini commented Jun 2, 2021

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants