Set up VPN On Demand.
Framework
- Network
Extension
Overview
VPN On Demand allows the system to automatically start or stop a VPN connection based on various criteria. For example, you can use VPN On Demand to configure an iPhone to start a VPN connection when it’s on Wi-Fi and stop the connection when it’s on cellular. Or, you can start the VPN connection when an app tries to connect to a specific service that’s only available via VPN.
For more information, see “VPN On Demand” in either the iOS Deployment Reference or the macOS Deployment Reference.