ios-app icon indicating copy to clipboard operation
ios-app copied to clipboard

Bypass VPN for local networks

Open jurajhilje opened this issue 3 years ago • 4 comments

Description

Add an option in the Settings to allow VPN bypass for accessing local network while VPN is connected.

This should be configured using following APIs: https://developer.apple.com/documentation/networkextension/nevpnprotocol/3143658-excludelocalnetworks https://developer.apple.com/documentation/networkextension/nevpnprotocol/3689459-enforceroutes

jurajhilje avatar Apr 20 '21 08:04 jurajhilje

I'm still investigating is there a case where a VPN tunnel on an iOS device will block access to local network devices (e.g. printer, smart TV, etc.).

jurajhilje avatar Apr 20 '21 09:04 jurajhilje

Screen Time seems to be blocked between two iOS devices on the same local network. This bypass feature may help resolve this case.

jordan-ivpn avatar Sep 01 '21 16:09 jordan-ivpn

@jordan-ivpn We'll test this case and implement the feature in one of the next releases. Thanks for the report!

jurajhilje avatar Sep 01 '21 16:09 jurajhilje

Carplay seems to be another use case.

jordan-ivpn avatar Jul 07 '22 15:07 jordan-ivpn

Would be amazing to have this implemented, Universal Clipboard for example could work then. (Copy pasting between iOS devices)

Qhilm avatar Dec 21 '22 10:12 Qhilm

Our first attempt to implement Apple's excludeLocalNetworks API didn't work as expected. Will give it another try on the latest iOS Beta and see how it goes.

jurajhilje avatar Dec 21 '22 11:12 jurajhilje

Handling calls from a watch when the VPN is connected on a phone might be another use case.

jordan-ivpn avatar Jan 06 '23 18:01 jordan-ivpn

IOS 16.3.1 WatchOS 9.3.1 iVPN 2.8.0 (8) (Kill switch off)

While iVPN is connected network connection from Apple Watch to iPhone via same network Wifi is blocked. However local network access to other devices from iPhone is not blocked, I can access my router's internal IP (like 192.168.1.1) via browser on iPhone with no issues.

Steps to reproduce:

  • Go away from your iPhone with your Apple Watch on your wrist, so that you are out of Bluetooth range, but still in the Wifi range of the same network
  • Call on your iPhone and watch will not ring
  • Send a message to your iPhone and notification will not get to the watch

Please look at the implementation of ProtonVPN IOS app, there is no such issue there: https://github.com/ProtonVPN/ios-mac-app

alexamiryan avatar Feb 26 '23 01:02 alexamiryan

@jordan-ivpn @jurajhilje Any updates on this issue? This is super annoying and preventing me and 2 of my friends on fully migrating to iVPN. Any ETA?

alexamiryan avatar Mar 01 '23 11:03 alexamiryan

@alexamiryan I can't give any ETA. However, I will give this one more try and probably include it in one of the next TestFlight public betas.

jurajhilje avatar Mar 01 '23 12:03 jurajhilje

@alexamiryan I can't give any ETA. However, I will give this one more try and probably include it in one of the next TestFlight public betas.

Can I join the TestFlight to help with the testing? If yes, how?

alexamiryan avatar Mar 01 '23 13:03 alexamiryan

@alexamiryan I can't give any ETA. However, I will give this one more try and probably include it in one of the next TestFlight public betas.

Can I join the TestFlight to help with the testing? If yes, how?

For sure, you can join right now and you will receive notifications about new beta versions via TestFlight app: https://github.com/ivpn/ios-app/blob/develop/.github/CONTRIBUTING.md#beta-program

jurajhilje avatar Mar 01 '23 14:03 jurajhilje

@alexamiryan Do you have any use case other than blocked notifications on your Watch? E.g. some of the Apple's Continuity features? I'm trying to find a reliable test case, one which does not require Bluetooth but only that devices are on the same local WiFi network.

jurajhilje avatar Apr 18 '23 13:04 jurajhilje

The only one that bothers me is the phone calls on the watch. When I am away from my phone or with my second iPhone and call comes to my main iPhone, I am not getting call notification when iVPN is active.

alexamiryan avatar Apr 23 '23 00:04 alexamiryan

Do you have any use case other than blocked notifications on your Watch? E.g. some of the Apple's Continuity features?

For me it's the universal clipboard. Copying on Mac, pasting on iPhone, or vice versa.

Qhilm avatar Apr 24 '23 05:04 Qhilm

New issue opened: Add "Disable LAN traffic" option #364

jurajhilje avatar Aug 22 '23 14:08 jurajhilje

Hi team, I had emailed support about not having local network access when IVPN is connected AND using a custom DNS server. My use case is running IVPN + custom DNS and being able to access my streaming services via Sonos (Apple Music, Spotify, pandora, etc) which I can not currently do. It’s possible as soon as I disable the custom DNS functionality. I was told to track this ticket but I see that it’s marked as won’t do. Just curious if you have thoughts or if this is such a specific use case it won’t make it back on the road map.

davescherler avatar Sep 28 '23 14:09 davescherler

@davescherler By default, iOS allows LAN access when VPN is connected (that's why we closed this issue). I'm curious why it's blocked when using a custom DNS. I'll try to reproduce this issue on my end.

jurajhilje avatar Sep 29 '23 07:09 jurajhilje

@gorkapernas I was not able to reproduce the blocked LAN access when connected with Custom DNS (tested plain DNS, DoH and DoT). Can you please try to reproduce on your end?

jurajhilje avatar Oct 04 '23 09:10 jurajhilje

@jurajhilje LAN access works as expected for me when connected with custom DNS (tested with a next DNS endpoint). I think the issue might be specific to the Sonos app, I found this old thread on reddit where a user explains the same exact issue -> https://www.reddit.com/r/nextdns/comments/y4ze06/cant_access_music_services_in_sonos_app_when/

@davescherler could you confirm if LAN access works for you in other instances or does the issue only happen with Sonos?

gorkapernas avatar Oct 04 '23 10:10 gorkapernas

I can confirm LAN access works as expected with IVPN in all other cases. I guess it could be a Sonos specific thing, perhaps I will follow up with them. The last thought I will leave with you is that Mullvad VPN let’s you set a custom DNS, limited to IPv4 addresses only, and that combination doesn’t interfere with Sonos — it works as expected for me. BUT my ideal setup is running my custom DNS over DoH which IVPN supports + your iOS app is just outright better. I don’t expect you to have an answer to that just thought that might tell you more than it does me. Anyway, I appreciate you looking into it!

davescherler avatar Oct 06 '23 02:10 davescherler

@davescherler Thanks for the feedback. Please let us know if you find more details about the issue. If we find that it is an edge case we can fix or support, I would be happy to do so.

jurajhilje avatar Oct 06 '23 07:10 jurajhilje