---
title: VPN On Demand Rules
framework: networkextension
role: collectionGroup
role_heading: API Collection
path: networkextension/vpn-on-demand-rules
---

# VPN On Demand Rules

Set up VPN On Demand.

## Overview

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 Apple Platform Deployment Guide.

## Topics

### Settings

- [NEOnDemandRuleConnect](networkextension/neondemandruleconnect.md)
- [NEOnDemandRuleDisconnect](networkextension/neondemandruledisconnect.md)
- [NEOnDemandRuleIgnore](networkextension/neondemandruleignore.md)
- [NEOnDemandRuleEvaluateConnection](networkextension/neondemandruleevaluateconnection.md)
- [NEOnDemandRule](networkextension/neondemandrule.md)

## See Also

### Related Documentation

- [Personal VPN](networkextension/personal-vpn.md)
- [Packet tunnel provider](networkextension/packet-tunnel-provider.md)
- [App proxy provider](networkextension/app-proxy-provider.md)

### VPN configuration

- [NEAppProxyProviderManager](networkextension/neappproxyprovidermanager.md)
- [NETunnelProviderManager](networkextension/netunnelprovidermanager.md)
- [NEVPNManager](networkextension/nevpnmanager.md)
- [NETunnelProviderProtocol](networkextension/netunnelproviderprotocol.md)
- [NEAppRule](networkextension/neapprule.md)
