Join our Newsletter — 33% off our NHI Course
Home› Guides› Per-App and Always-On VPN on Mobile: Design Choices…
Guide Endpoint Security

Per-App and Always-On VPN on Mobile: Design Choices and Pitfalls

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 14 min read
On this page

Mobile VPN designs fail quietly: a tunnel that looks connected can still let traffic out around it, and a tunnel that blocks everything can stop staff working the moment they meet a hotel Wi-Fi sign-in page. Android and iOS both offer two broad models, a per-app VPN that carries only selected managed apps, and an always-on VPN that carries the whole device and can block traffic when the tunnel is down. This guide explains how each model works on each platform, the settings that decide whether traffic leaks, and the trade-offs against zero trust network access and managed browsers. It is written for mobile device management (MDM) and endpoint security teams. Platforms are listed alphabetically, Android then iOS and iPadOS; order is never a ranking. OS behaviour changes between releases, so confirm settings against current platform documentation before rollout.

Key takeaways

  • Per-app VPN protects corporate apps, always-on VPN protects the device: choose per-app for personally owned devices and work profiles, and always-on for fully managed corporate devices where all traffic must be inspected.
  • Lockdown is the setting that stops leaks: on Android an always-on VPN only blocks non-VPN traffic when lockdown is on, and on iOS an Always On VPN drops all IP traffic when no tunnel is up.
  • Every exemption is a documented bypass: lockdown exemptions on Android and service, application and captive network exceptions on iOS each let some traffic leave outside the tunnel, so treat them as risk decisions with an owner.
  • Captive portals are the main usability trap: strict always-on designs break sign-in pages unless captive handling is deliberately allowed, and allowing it opens a narrow, known path around the tunnel.
  • VPN is not access control: a tunnel only protects transport, so pair it with device compliance, certificate-based authentication and per-application access policies, or move private app access to ZTNA.

Per-app VPN versus always-on VPN

A per-app VPN routes only the traffic of chosen apps into a tunnel, leaving personal apps on the normal network. An always-on VPN starts without user action, persists across restarts and, in its strict form, refuses to let traffic leave when the tunnel is down. Device posture and privacy expectations usually decide the model before any technical factor does. For the ownership models themselves, see the BYOD vs COPE guide.

Decision factorPer-app VPNAlways-on VPN with lockdown
Device ownershipPersonally owned devices, Android work profile, iOS User Enrolment or managed appsCorporate fully managed Android, corporate-owned iPhone and iPad
What is protectedTraffic from managed or listed apps onlyAll device IP traffic, with documented exceptions
User privacyPersonal traffic never reaches the corporate gatewayPersonal traffic, if any, is visible to the gateway and its logging
Leak exposureUnlisted apps and the browser can still reach corporate data over the internet if the service allows itLimited to OS exclusions and configured exceptions
Usability riskLow: personal apps are unaffected by tunnel failuresHigh: a down tunnel or captive portal blocks all traffic
Gateway load and costProportional to business app useAll traffic, including streaming and OS updates, unless excluded
Typical authenticationDevice certificate delivered by MDM, tied to the managed appDevice certificate delivered by MDM, no user prompt
Regulated or high-risk usersAdequate where apps are the only data pathPreferred where content filtering or full traffic inspection is required

Smaller organisations without a gateway able to carry all mobile traffic usually start with per-app VPN, or skip VPN entirely in favour of identity-aware access to SaaS. Large organisations often run both: always-on with lockdown for corporate fleets and per-app for personal devices, from the same gateway with different profiles.

How each works on Android

Android exposes VPN through the VpnService API, which third-party VPN clients implement, and through management controls that a device policy controller (DPC) or the Android Management API sets. For enrolment modes and the work profile model, see the Android Enterprise Security Guide.

Always-on and lockdown

  • Always-on: from Android 7.0 (API level 24) the system can start a VPN service at boot and keep it running. From Android 8.0 the system shows a persistent notification when an always-on VPN disconnects.
  • Lockdown: the "Block connections without VPN" setting forces all traffic through the VPN and blocks anything else. Android's developer documentation warns that apps that bind to a specific network lose connectivity in this mode.
  • Management setting: in the Android Management API the alwaysOnVpnPackage policy names the VPN app (packageName) and lockdownEnabled, documented as disallowing networking when the VPN is not connected. Set vpnConfigDisabled alongside it so users cannot change the configuration.
  • Lockdown exemptions: per-app alwaysOnVpnLockdownExemption takes VPN_LOCKDOWN_ENFORCED (the default) or VPN_LOCKDOWN_EXEMPTION, on Android 10 and later. An exempt app can use the network when the VPN is down, so it is a deliberate bypass.
  • Client support: a VPN app can opt out of always-on with the android.net.VpnService.SUPPORTS_ALWAYS_ON metadata (Android 8.1 and later), in which case the always-on controls are disabled. Test the chosen client before assuming it supports lockdown.

Per-app routing

  • Allowed or disallowed list: the client builds either an allowed list (addAllowedApplication, only listed apps use the VPN) or a disallowed list (addDisallowedApplication, listed apps use system networking), never both. With neither, all traffic uses the VPN.
  • Timing: lists are fixed when the tunnel is established and an app must already be installed to be listed, so apps installed later need a reconnect. MDM teams usually set the list through the VPN app's managed configuration.
  • Bypass: if the client calls allowBypass(), apps can bind sockets or processes to another network and leave the tunnel. Ask the client vendor whether bypass is enabled and whether it can be disabled by managed configuration.
  • Work profile scope: a VPN set inside a work profile carries work apps only, which gives per-app separation on personally owned devices without listing apps individually.

Private DNS: on fully managed devices running Android 10 and later, privateDnsSettings controls the global private DNS mode and host. Decide whether DNS should resolve inside the tunnel or through a managed encrypted resolver, and set it explicitly. See the Encrypted DNS Enterprise Guide.

How each works on iOS and iPadOS

Apple devices are configured through VPN payloads or declarative configurations delivered by MDM. Custom clients use the Network Extension framework; the built-in client supports IKEv2, L2TP over IPsec and Cisco IPsec. For the management channel itself, see the Apple Declarative Device Management and Managed Device Attestation Guide.

Always On VPN

  • Scope: Apple documents Always On VPN for IKEv2 on iOS, iPadOS and visionOS. It tunnels all IP traffic, activates without user interaction and persists across restarts until the configuration is removed.
  • Per-interface tunnels: TunnelConfigurations can define separate IKEv2 tunnels for Cellular and WiFi. Apple states that if no tunnel is up, all IP traffic is dropped.
  • User control: UIToggleEnabled defaults to 0. Setting it to 1 lets the user disable the VPN configuration, which defeats the purpose on high-risk devices.
  • Service exceptions: ServiceExceptions takes VoiceMail, AirPrint, CellularServices (iOS 11.3 and later: VoLTE, IMS and MMS) and DeviceCommunication (iOS 17.4 and later: devices connected by USB or Wi-Fi), each with an action of Allow or Drop. Apple also notes Wi-Fi calling is exempt from iOS 13.4.
  • Application exceptions: from iOS 13.6, ApplicationExceptions lists bundle identifiers whose connections occur outside the VPN, optionally limited to UDP.
  • Companion devices: Apple's payload reference states Always On VPN does not support Apple Watch pairing, and phone to watch communication stops for a previously paired watch.

Per-app VPN and Include All Networks

  • Per-app VPN: only managed apps use the tunnel. Apps are mapped to a VPN through managed app configuration (on macOS through the per-app VPN mapping payload). Apple notes that for the built-in IKEv2 client the app must be managed by a device management service.
  • App-layer domains: the App-Layer VPN payload adds SafariDomains, MailDomains, CalendarDomains, ContactsDomains, SMBDomains, AssociatedDomains and ExcludedDomains (iOS 14 and later), so built-in apps can use the tunnel for corporate domains only. OnDemandMatchAppEnabled connects the VPN when an associated app starts network activity.
  • Include All Networks: for a standard VPN payload, IncludeAllNetworks (iOS 14 and later) routes all traffic through the VPN. Apple lists traffic that is always excluded: DHCP and similar connection maintenance, traffic needed to connect to captive networks, some carrier-routed cellular traffic and companion device communication.
  • Controllable exclusions: ExcludeLocalNetworks, ExcludeCellularServices, ExcludeAPNs and ExcludeDeviceCommunication refine that model. Apple documents the last three as defaulting to 1, so cellular services, Apple Push Notification service traffic and device communication leave outside the tunnel unless set to 0.
  • On Demand: VPN On Demand rules start or skip the VPN based on network detection and connection evaluation, and need non-interactive authentication such as certificates.

Design choices: split tunnelling, lockdown, DNS

Most leaks come from decisions made once at design time and never revisited. Decide each of these explicitly and record the reason.

Design choiceAndroid settingiOS and iPadOS settingLeak or usability effect
Fail closed when the tunnel dropslockdownEnabled trueAlways On VPN, or IncludeAllNetworks 1Stops leaks; blocks work when the gateway is unreachable
Allow selected apps outside the tunnelalwaysOnVpnLockdownExemption per appApplicationExceptionsNamed apps can reach the internet directly
Captive portal sign-inTest the client; exempt only a vetted portal handler if neededAllowCaptiveWebSheet, AllowAllCaptiveNetworkPlugins, AllowedCaptiveNetworkPlugins (all off by default)Enables hotel and guest Wi-Fi; opens a narrow path outside the tunnel
Split tunnel for corporate routes onlyClient route configurationIKEv2 split tunnelling, EnforceRoutes (iOS 14.2 and later)Lower gateway load; internet traffic uninspected
Local network accessClient route configurationExcludeLocalNetworksLets printers and casting work; exposes device to the local LAN
DNS resolutionClient DNS settings, privateDnsSettingsVPN payload DNS settings, managed encrypted DNSMismatched resolvers leak queries or break internal names
User can turn the VPN offvpnConfigDisabled falseUIToggleEnabled 1Convenience at the cost of enforcement
  • Split tunnelling: NIST SP 800-53 control SC-7(7), Split Tunneling for Remote Devices, expects split tunnelling to be prevented unless it is securely provisioned. If you allow it, document the safeguards (managed DNS, web filtering, device compliance) that make it acceptable.
  • Captive portals: Apple's IncludeAllNetworks already excludes traffic needed to connect to captive networks, while Always On VPN needs the captive settings above. Prefer allowing only named captive network apps over allowing all of them.
  • Authentication: use device certificates issued through MDM (SCEP or ACME profiles) rather than shared secrets, so a lost device can be cut off by revoking one certificate. See the IoT and Device Certificate Provisioning (EST, SCEP) Guide.

Interaction with ZTNA and managed browsers

A VPN extends a network; zero trust network access brokers individual applications after checking identity and device posture. On mobile the two often coexist, and their interaction creates its own failure modes.

  • Per-app VPN as a ZTNA transport: many ZTNA clients on mobile are built on the same platform VPN APIs, so they inherit the same per-app, lockdown and exception behaviour described above. Only one VPN service is typically active per Android user profile, so a ZTNA client and a legacy VPN client may compete.
  • Managed browsers: an enterprise browser with its own proxy or tunnel can give private web app access without a device-wide VPN, which suits personal devices. Ensure it is excluded from, or deliberately mapped into, any per-app VPN so traffic is not double tunnelled. See the Enterprise Browser and Browser Security Guide.
  • Access decisions: conditional access on SaaS identity providers does not depend on the VPN, and an IP allow list based on VPN egress is a weak substitute for device compliance. See Conditional Access vs ZTNA and the ZTNA Guide.

Rollout, detection and measurement

  1. Inventory: list device ownership modes, OS versions and the apps that need private access. Retire any app that only works through a full tunnel without reason.
  2. Pilot without lockdown: deploy always-on or per-app profiles to an IT ring with lockdown off, and check gateway logs for every expected app.
  3. Turn on fail closed for a second ring: enable lockdown or Always On, then test captive portals, roaming between Wi-Fi and cellular, Wi-Fi calling, push notifications and printing.
  4. Approve exceptions: add each lockdown exemption or service exception through change control, with an owner and review date.
  5. Roll out by ring and keep a rollback profile: a profile with lockdown off, ready to push if a gateway outage strands users.

What to monitor: MDM compliance and non-compliance reports for the VPN policy (Android Management API reports non-compliance details per field, for example on unsupported API levels), gateway connection and authentication logs by device certificate, DNS queries for corporate domains seen outside the corporate resolver, and help desk tickets tagged as captive portal or VPN.

  • Coverage: percentage of in-scope devices with the VPN profile installed and compliant.
  • Fail-closed coverage: percentage of corporate devices with lockdown or Always On enforced.
  • Exception count: number of lockdown exemptions and service or application exceptions, each with a review date.
  • Tunnel uptime: median connected time per device per day, from gateway logs.
  • Leak indicator: corporate-domain DNS queries reaching public resolvers from managed devices.
  • Support load: VPN and captive portal tickets per 100 devices per month.

Common failure patterns

  • Always-on without lockdown: the Android always-on VPN reconnects at boot, but without lockdown traffic flows directly whenever the tunnel is down, often during the first seconds after boot or a network change.
  • Exceptions that grow by ticket: each help desk fix adds an exempt app or allows all captive network plugins, until the fail-closed design has a wide, undocumented bypass.
  • Defaults assumed, not checked: teams assume IncludeAllNetworks sends everything through the tunnel, while Apple documents cellular services, APNs and device communication as excluded by default.
  • Per-app list drift: new business apps are not added to the allowed list, or are installed after the tunnel was built, so they talk to services directly.
  • VPN treated as identity: the gateway trusts any connected device, so a stolen device or a phished certificate gives network-level access. Compromised VPN credentials have repeatedly been the first step in major incidents, for example the Colonial Pipeline ransomware attack, which began with an unused VPN account.
  • Gateway not hardened: mobile tunnels terminate on the same appliances as laptops. See the VPN Security Guide.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5AC-17, AC-17(2), AC-19, SC-7(7), SC-8Remote access, encrypted remote sessions, mobile device access control, split tunnelling, transmission protection
NIST CSF 2.0PR.IR-01, PR.DS-02, PR.PS-01Network protection, data in transit, configuration management
NIST SP 800-124 Rev. 2Whole publicationEnterprise mobile device management across the device lifecycle
CIS Controls v8.1Safeguard 12.7Remote devices use a VPN and connect to enterprise AAA infrastructure
ISO/IEC 27001:2022 Annex AA.8.1, A.8.20User endpoint devices, network security

Practitioner checklist

  • Choose per-app or always-on per ownership mode and document the reason.
  • On corporate Android, set alwaysOnVpnPackage with lockdownEnabled and vpnConfigDisabled.
  • On corporate-owned iOS and iPadOS, use Always On VPN with UIToggleEnabled 0, or IncludeAllNetworks with reviewed exclusions.
  • Review every alwaysOnVpnLockdownExemption, ServiceExceptions and ApplicationExceptions entry quarterly.
  • Allow captive handling only through named captive network apps, and test hotel and guest Wi-Fi in the pilot.
  • Set explicit DNS behaviour and monitor for corporate queries on public resolvers.
  • Authenticate tunnels with MDM-issued device certificates and revoke them at unenrolment.
  • Keep a tested rollback profile with lockdown off for gateway outages.
  • Retest after every major Android and iOS release, since VPN behaviour and defaults change.

Standards and references

Related NHI Mgmt Group resources: Android Enterprise Security Guide · Mobile Device Management Security Guide · BYOD Security Programme · ZTNA Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.