gdombiak / OctoPod

Free open source client for OctoPrint
Apache License 2.0
229 stars 42 forks source link

Option to "autodial" VPN #139

Open KissmanCZ opened 5 years ago

KissmanCZ commented 5 years ago

Hi, would be nice to have "autodial" VPN option in iOS app. What you think? It is pretty anoying to dial VPN manually. Autodetect of external network and if you are out, dial VPN or open VPN setting to dial manually?

gdombiak commented 5 years ago

Interesting ideas. I assume you are referring to VPN autoconnect. VPN configuration would be done outside of the app but somehow the app would read info from KeyChain and use it to establish a VPN connection automatically. Is this what you had in mind?

Some links that would help implement this:

  1. http://blog.moatazthenervous.com/create-a-key-chain-for-apples-vpn/
  2. http://blog.moatazthenervous.com/create-a-vpn-connection-with-apple-swift/
KissmanCZ commented 5 years ago

Yeah... exactly. VPN profile will be set in native iOS settings and app will just connect using this VPN connection.

KissmanCZ commented 5 years ago

There must be a way how to achieve this, because I am using Cisco Annyconnect VPN app and this app utilize VPN profiles from iOS. I can start iOS VPN profile from Cisco app - just with one click without any input.

jollino commented 5 years ago

I think the issue here may be that the Cisco app also sets up the VPN (OpenVPN does the same, as does the new 1.1.1.1 app by Cloudflare and other VPN apps) so it's also able to connect to it. I'm not entirely sure but it may be just beyond the reach of any given app to access a VPN set up by another app. Reference: https://developer.apple.com/documentation/networkextension/nevpnmanager

KissmanCZ commented 5 years ago

So, we must redefine feature request to the "Add VPN support"? 💃

mvasilakis commented 5 years ago

I'd love this too. Outside my internal network I forget to connect to my VPN and am forced to go to settings/VPN and activate a profile. It would be great if a printer can be associated with a VPN profile and automatically switch to that VPN. Or even better a switch within Octopod that lets me activate and deactivate a profile.

KissmanCZ commented 3 years ago

Hi Gaston, could you please review this feature request again? Looks like iOS finally supporting VPN on demand!

https://developer.apple.com/documentation/networkextension/personal_vpn/vpn_on_demand_rules

gdombiak commented 3 years ago

Thanks @KissmanCZ for sharing that useful info. Quickly read that link and it seems like I would need to add a new setting so that users can configure when they want the VPN to start. By default it would be when not in Wifi only.

GitHubGoody commented 2 years ago

@gdombiak If you're looking to prioritize enhancement requests, I'm a +1 on this one.😁