Is there a way to toggle VPN trough shortcuts in iOS 12?
Looked into it, but can't really find anything.
Best Answer
First, you need to have a VPN app installed. When you connect to the VPN for the first time (via this installed app OR configuration URL), iOS enables a hidden tag in settings named VPN. This tile isn’t enabled by default, so check if you were connected before to any service or not. This setting was just created to manage an existing connection.
and my second solution is this url : prefs:root=General&path=VPN . but to use this url you need to connect existing app or shortcut (going there with safari does nothing and url is very unstable). here is download of my version of shortcut and sorry for google drive but i'm logged out of icloud :/ . and here is printscreen of code (i'm doing that due to security reasons and people just don't trust me so...) here it is:
I have made several tests with different VPNs and VPN settings on my iPhone - some on demand, some not, but even when switched on manually, tethered traffic was never sent through the VPN.
I've also tried setting OverridePrimary to true as described here (it is false by default when creating the profile in the Apple Configurator), but that did not change the tethered traffic either.
The remaining solution is to install the VPN connection on your tethering client.
BTW, if that client is a Mac, you can simply import the same VPN profile by double-clicking on the mobileconfig file created for iOS.
Best Answer
First, you need to have a VPN app installed. When you connect to the VPN for the first time (via this installed app OR configuration URL), iOS enables a hidden tag in settings named VPN. This tile isn’t enabled by default, so check if you were connected before to any service or not. This setting was just created to manage an existing connection. and my second solution is this url : prefs:root=General&path=VPN . but to use this url you need to connect existing app or shortcut (going there with safari does nothing and url is very unstable). here is download of my version of shortcut and sorry for google drive but i'm logged out of icloud :/ . and here is printscreen of code (i'm doing that due to security reasons and people just don't trust me so...) here it is: