Cisco Secure Access Help

PDF

Cisco Secure Access Help

Manage Application-Based Remote Access VPN (Per App VPN)

Want to summarize with AI?

Log in

For mobile devices that run on Android or iOS, you can restrict the applications that traverse the VPN tunnel using Per App VPN.


When a remote user establishes a VPN connection from a mobile device using Secure Client, all the traffic including traffic from personal applications is routed through the VPN. For mobile devices that run on Android or iOS, you can restrict the applications that traverse the VPN tunnel. This application-based remote access VPN is called Per App VPN.

To use Per App VPN, you must perform the following actions:

  1. Install and configure a third-party Mobile Device Manager (MDM) server.

  2. Define the list of approved applications that can go over the VPN tunnel in the MDM server.

  3. Deploy the Per App configurations from the MDM server to the mobile devices.

  4. Configure Per App VPN on the managed headend threat defense.

When an MDM-managed mobile device connects to the VPN using Secure Client, the client validates the applications before tunneling the traffic. The Per App policy configured on Secure Access performs this validation.

Benefits

Limit VPN traffic over the corporate network and free up resources of the VPN headend. You can:

  • Limit applications such as Netflix, Facebook, and YouTube over the VPN.

  • Allow trusted cloud applications such as Outlook, and Webex over the VPN.

  • Optimize traffic.

  • Minimize latency.

  • Protect the corporate VPN tunnel from unapproved malicious applications on the mobile device.


Manage Custom Attributes

Custom attributes are used by the Cisco Secure Client to configure features such as Per App VPN and split tunneling. You can create the Secure Client custom attributes objects from the VPN Profiles dashboard, add the objects to a VPN profile, and associate the VPN profile with a remote access VPN to enable the features for the VPN clients.

Secure Access supports the following features using the custom attribute objects:

  • Split Exclude Failover— The split Exclude Failover feature helps allow traffic through a VPN tunnel when a lack of network connectivity prevents its routing outside the tunnel.

  • Per App VPN —The Per App VPN feature helps identify an app and tunnel only applications allowed by the Secure Access administrator over the VPN.

  • Bypass Virtual Subnets —The Bypass Virtual Subnets feature helps resolve connectivity issues with virtual machine-based subsystems.

Split Exclude Failover

By default, the VPN tunnel implicit security (filtering) blocks access via the tunnel to any destinations in the exception list unable to be routed outside the tunnel because of a lack of network connectivity.

To avoid this, create a Split Exclude Failover custom attribute set to true. And add this attribute to a remote access VPN group profile. This allows split exclude failover for destinations in exception list to route traffic through the VPN tunnel when a lack of network connectivity prevents its routing outside the tunnel.

Note
Mobile platforms do not support split exclude failover custom attributes.

Per App VPN

When you use Cisco Secure Client AnyConnect to establish a VPN connection from a mobile device, all the traffic including the traffic from personal applications is routed through the VPN.

If you instead want to route corporate applications only through the VPN, so that non-corporate traffic is excluded from the VPN, you can use Per App VPN to select which applications should be tunneled through the VPN.

You configure Per App VPN using the perapp AnyConnect custom attribute. Adding this attribute to a remote access VPN group profile automatically limits the tunnel to the explicitly identified applications. Traffic from all other applications is automatically excluded from the tunnel.

Configuring Per App VPN has the following main benefits:

  • Performance—It limits traffic in the VPN to the traffic that needs to go to the corporate network. Thus, you free up resources at the head end of the RA VPN.

  • Protection—Because only traffic from approved applications is allowed, it protects the corporate tunnel from unapproved malicious applications that a user might unwittingly install on the mobile device. Because these applications are not included in the tunnel, traffic from them is never sent to the head end.

The Mobile Device Manager (MDM) running on the mobile endpoint enforces the Per App VPN policy on the applications.

Bypass Virtual Subnets

If you experience connectivity issues with virtual machine-based subsystems, such as Windows Subsystem for Linux (WSL2) or VMware Fusion VM, when the AnyConnect VPN is active on the host (Windows 10 or macOS 11 (and later), you can configure local LAN split/exclude tunneling restricted to only virtual adapter subnets.


About Cisco Secure Client on Mobile Devices

Cisco Secure Client on mobile devices is similar to Cisco Secure Client on Windows, macOS, and Linux platforms. The Cisco Secure Client (including AnyConnect) Administrator Guide provides device information, configuration information, support information, as well as other administrative tasks specific to Cisco Secure Client for mobile devices.

Because Secure Access supports custom attributes on Android and iOS devices, you should review the following sections of the Administrator Guide:

In particular, pay close attention to the following guidelines and limitations for each supported platform. As always, you should consult the latest Cisco Secure Client (including AnyConnect) Administrator Guide for the most up-to-date information.


Guidelines and Limitations for Secure Client AnyConnect on Android

  • The Secure Firewall ASA does not provide distributions and updates for AnyConnect for Android. They are available on Google Play. The APK (package) file for the latest version is also posted on Cisco.com.

  • AnyConnect for Android supports only the Network Visibility Module and Umbrella; it does not support any other Secure Client modules.

  • The Android device supports no more than one AnyConnect profile, which is the last one received from a headend. However, a profile can consist of multiple connection entries.

  • If users attempt to install AnyConnect on devices that are not supported, they receive the pop-up message Installation Error: Unknown reason -8. This message is generated by the Android OS.

  • With users who have AnyConnect in a widget on their home screen, the AnyConnect services are automatically started (but not connected) regardless of the "Launch at startup" preference.

  • AnyConnect for Android requires UTF-8 character encoding for extended ASCII characters when using pre-fill from client certificates. The client certificate must be in UTF-8 if you want to use prefill, per the instructions in KB-890772 and KB-888180.

  • AnyConnect blocks voice calls if it is sending or receiving VPN traffic over an EDGE connection per the inherent nature of EDGE and other early radio technology.

  • Some known file compression utilities do not successfully decompress log bundles packaged with the use of the AnyConnect Send Log button. As a workaround, use the native utilities on Windows and macOS to decompress Secure Client log files.

  • DHE Incompatibility—With the introduction of DHE cipher support in AnyConnect, incompatibility issues result in Cisco Secure Firewall ASA versions before ASA 9.2. If you are using DHE ciphers with Secure Firewall ASA releases earlier than 9.2, you must disable DHE ciphers on those Secure Firewall ASA versions.

  • Because AnyConnect is a networking VPN application, it requires background operation to function; therefore, you should never add AnyConnect to the deep sleep list.


Guidelines and Limitations for Secure Client AnyConnect on Apple iOS

AnyConnect for Apple iOS supports only features that are related to remote VPN access such as:

  • AnyConnect can be configured by the user (manually), by the AnyConnect VPN Client Profile, generated by the Apple Configurator Utility (http://www.apple.com/support/iphone/enterprise), or using an Enterprise Mobile Device Manager.

  • The Apple iOS device supports no more than one AnyConnect VPN client profile. The contents of the generated configuration always match the most recent profile. For example, you connect to vpn.example1.com and then to vpn.example2.com. The AnyConnect VPN client profile imported from vpn.example2.com replaces the one imported from vpn.example1.com.

  • This release supports the tunnel keepalive feature; however, it reduces battery life of the device. Increasing the update interval value mitigates this issue.

Apple iOS Connect On-Demand Considerations:

  • VPN sessions, which are automatically connected as a result of iOS On-Demand logic and have Disconnect on Suspend configured, are disconnected when the device sleeps. After the device wakes up, On-Demand logic will reconnect the VPN session when it is necessary again.

  • AnyConnect collects device information when the UI is launched and a VPN connection is initiated. Therefore, there are circumstances in which AnyConnect can misreport mobile posture information if the user relies on iOS Connect On-Demand feature to make a connection initially, or after device information, such as the OS version has changed.

Cisco AnyConnect and Legacy AnyConnect are different apps with different app IDs. Hence:

  • Using the new extension framework in AnyConnect 4.0.07x (and later) causes the following changes in behavior from legacy AnyConnect 4.0.05x: AnyConnect considers traffic for tunnel DNS server to be tunneled, even if it is not in split-include network.

  • You cannot upgrade the AnyConnect app from a legacy 4.0.05x or earlier version to AnyConnect 4.0.07x or 4.6.x (or later). Cisco AnyConnect 4.0.07x (or 4.6.x and later) is a separate app, installed with a different name and icon.

  • The different versions of AnyConnect can co-exist on the mobile device, but this is not supported by Cisco. The behavior may not be as expected if you attempt to connect while having both versions of AnyConnect installed. Make sure you have only one AnyConnect app on your device, and it is the appropriate version for your device and environment.

  • Certificates imported using Legacy AnyConnect version 4.0.05069 and any earlier release cannot be accessed or used by the new AnyConnect app release 4.0.07072 or later. MDM deployed certificates can be accessed and used by both app versions.

  • App data imported to the Legacy AnyConnect app, such as certificates and profiles, should be deleted if you are updating to the new version. Otherwise they will continue to show in the system VPN settings. Remove app data before uninstalling the Legacy AnyConnect app.

  • Current MDM profiles will not trigger the new app. EMM vendors must support VPNType (VPN), VPNSubType (com.cisco.anyconnect) and ProviderType (packet-tunnel). For integration with ISE, they must be able to pass the UniqueIdentifier to AnyConnect since AnyConnect no longer has access to this in the new framework. Consult your EMM vendor for how to set this up; some may require a custom VPN type, and others may not have support available at release time.

Using the New Extension Framework in AnyConnect 4.0.07x and later causes the following changes in behavior from Legacy AnyConnect 4.0.05x:

  • The Device ID sent to the head end is no longer the UDID in the new version, and it is different after a factory reset unless your device is restored from a backup made by the same device.

  • You may use MDM deployed certificates, as well as certificates imported using one of the methods available in AnyConnect: SCEP, manually through the UI, or via the URI handler. The new version of AnyConnect can no longer use certificates imported via email or any other mechanism beyond these identified ones.

  • When creating a connection entry using the UI, the user must accept the iOS security message displayed.

  • A user-created entry with the same name as a downloaded host entry from the AnyConnect VPN profile will not be renamed until it disconnects, if it is active. Also, the downloaded host connection entry will appear in the UI after this disconnect, not while it remains connected.

  • AnyConnect considers traffic for tunnel DNS server to be tunneled even if it is not in split-include network.


Define Custom Attributes

A custom attribute has a type and a named value. The type of the attribute is defined first, then one or more named values of this type can be defined. You create the Secure Client custom attribute objects from the VPN Profiles dashboard, add the objects to a VPN profile, and associate the VPN profile with a remote access VPN to enable the features for the VPN clients.

This topic describes how to define and apply Secure Client custom attributes to your organization's VPN profiles.

Prerequisites

  • Full Admin user role. For more information, see Manage Accounts.

  • For Per App VPN, ensure that you have:

    • Set up an MDM server and enrolled each mobile device to the MDM server.

    • For more information, see the MDM documentation. We recommend that you configure the applications that can traverse the VPN tunnel in the MDM server. This configuration simplifies the headend configuration.

  • Downloaded and installed the Cisco AnyConnect Enterprise Application Selector from the Cisco Software Download Center to your local host. You need this tool to define the Per App VPN policy.

Supported Platforms

  • Per App VPN is supported for mobile devices running:

    • Android

    • iOS

  • Bypass Virtual Subnet is supported for devices running:

    • Windows 10 (and later)

    • macOS 11 (and later)

Limitations

See the following sections for information about the limitations for deploying Secure Client custom attribute objects in Secure Access:


Define Per App VPN Custom Attributes

To define custom attributes for Per App VPN applications, download the Policy Tool for Android and Apple iOS devices to generate application IDs and assign Per App VPN custom attributes to Secure Access VPN profiles.


Step 1 - Determine the Application IDs for Mobile Applications

To configure the list of allowed applications on the headend, you must determine the application IDs for each application on each type of endpoint.

The application ID, or the bundle ID in iOS, is a reverse DNS name. You can use an asterisk as a wildcard. For example, . indicates all applications, com.cisco.* indicates all Cisco applications.

To determine the application IDs:

Android

Procedure

  1. In a web browser, go to Google Play (https://play.google.com/store/).

  2. Click the Apps tab.

  3. Click an application that you want to allow in the VPN tunnel.

  4. The application ID is part of the URL.

  5. Copy the string after the 'id=' parameter.

    For Microsoft Remote Desktop, the URL is:https://play.google.com/store/apps/details?id=com.microsoft.rdc.androidx, and the app id is com.microsoft.rdc.androidx.

What to do next

Note

For applications that are not available on Google Play, download a package name viewer application to extract the app ID.

iOS

  1. In a web browser, go to Apple App Store (https://www.apple.com/in/app-store/).

  2. In the search results, search for an application.

    The application ID is part of the URL.

  3. Copy the number after the 'id' string.

    For Facebook, the URL is:https://apps.apple.com/in/app/facebook/id284882215 and the application ID is 284882215.

  4. Open a new browser window, and add the number to the end of the following URL: https://itunes.apple.com/lookup?id=

    For Facebook the URL is https://itunes.apple.com/lookup?id=284882215.

  5. Download the text file, usually named 1.txt.

  6. Open the file in a text editor, and search for 'bundleId'. For Facebook, the 'bundleId' is "com.facebook.Facebook". Use this bundle ID as the app ID.

Once you have your list of application IDs, you can define the custom attributes for the mobile device as described in the following steps.


Step 2 - Create a Base64 Encoded String for Each Mobile Application

Create a base64 encoded string for each app using the Cisco Secure Client Enterprise Application Selector Tool.

Procedure

  1. Download the Cisco Secure Client Enterprise Application Selector Tool from here .

  2. Open the Application Selection Tool and select the mobile platform from the drop-down menu located on the upper left, either Android or iOS.

  3. Add a rule by entering the following options:

    1. Friendly Name—Enter something meaningful.

    2. App ID—Enter the name of the mobile application.

    3. The rest of the fields are optional.

  4. On the menu bar, click on Policy > View Policy. The encoded base64 rule is displayed in its encrypted format.

  5. Select and copy the policy string, and save it to use later when you create Secure Client custom attribute objects.


Step 3 - Create a Custom Attribute Object

Procedure

  1. Navigate to Connect > End User Connectivity > Virtual Private Network.

  2. For VPN Profiles, click Custom attributes.


    VPN Profiles page with option to add custom attributes
  3. Click + Add custom attribute to configure an attribute for a third-party application for a mobile device.


    Custom Attributes section with option for adding custom attributes for third party application
  4. From the Add Custom Attributes drawer, choose Per App VPN from the Attribute type drop-down.


    Add Custom Attributs section with option to select attribute type
  5. Click Add attributes and values to configure your custom attributes.


    Add Custom Attribute section with option to configure custom attributes
  6. Configure the following options:

    1. Attribute name—Enter a unique name for the attribute. For example, Android_Apps or Apple_iOS_Apps.

    2. Attribute Values—Add one or more values by copying the base64 format from the policy tool and pasting it here. Each value cannot exceed 420 characters. If your value exceeds this length, click + Add value to add multiple values for the additional value content. The configured values are concatenated before being sent to the Cisco Secure Client.

      All values added to an attribute will be used when that attribute is assigned to a VPN profile.


      Add Attributes section with option to configure attributes
    3. Click Save when you are finished with this attribute. If you have active VPN profiles, you'll be presented with the option to selectively add the attribute to VPN profile.


      Include Custom Attribute 'Android_Apps' section with option to include custom attribute for active VPN profiles
    4. Click Include to add the attribute to VPN profiles, or click Skip & Continue.

    5. Click Save & Add Attribute to add the attribute to the dashboard. Once saved, you can come back to Edit or Delete the attribute.


    Custom Attributes page with option to manage custom attributes
  7. Navigate to Connect > End User Connectivity > Virtual Private Network > Custom attributes to view the table of available custom attributes.


Define Bypass Virtual Subnets Custom Attributes

If you experience connectivity issues with Windows Subsystem for Linux (WSL2) or VMware Fusion VM when the AnyConnect VPN is active on the host (Windows 10 or macOS 11 (and later), follow these steps to configure Local LAN split exclude tunneling restricted to only virtual adapter subnets.

Note
Enable the Local LAN Access option when using the Bypass Virtual Subnets Custom Attributes feature.

Procedure

  1. Navigate to Connect > End User Connectivity > Virtual Private Network.

  2. For VPN Profiles, click Custom attributes.


    VPN Profiles page with option to add custom attributes
  3. Click + Add to configure an attribute for a third-party application for a mobile device.


    Custom Attributes section with option for adding custom attributes for third-party application
  4. From the Add Custom Attributes drawer, choose Bypass Virtual Subnets from the Attribute type drop-down.


    Add Custom Attributs section with option to select attribute type
  5. Click Add attributes and values to configure your custom attributes.


    Add Custom Attribute section with option to configure custom attributes
  6. Choose from the following options:

    1. IPv4—Select IPv4 to bypass virtual subnets for only IPv4 traffic.

    2. IPv6—Select IPv6 to bypass virtual subnets for only IPv6 traffic.

      You can choose either or both of these options.

    3. Click Save if you need to come back to this attribute at a later time; click Save & Add Attribute if you are finished.


      Add Custom Attributes section showing configured custom attributes
  7. Navigate to Navigate to Connect > End User Connectivity > Virtual Private Network > Custom attributes to view the table of available custom attributes.


    Custom Attributes page showing available custom attributes

Edit Cisco Secure Client Settings

You can modify Cisco Secure Client settings to attach a previously created custom attribute type and name to a VPN profile via Connect > End User Connectivity > Virtual Private Network.

Procedure

  1. Navigate to Connect > End User Connectivity > Virtual Private Network.

  2. Choose a profile from the VPN Profiles list, click the ellipses ... and choose Edit.

  3. Click through the profile to the Cisco Secure Client Configuration.

  4. Click the Client Settings tab then click Edit to modify client-specific settings. See The Cisco Secure Client Profile Editor for complete information about Cisco Secure Client settings.


    Edit Client Settings dialog showing option to update client-specific settings
  5. Check Include Custom Attributes and add the desired attributes to the VPN profile.


    Edit Client Settings page showing option to include custom attributes to VPN profile
  6. Click Save.


    VPN profile page
  7. Navigate to Connect > End User Connectivity > Virtual Private Network and click Custom attributes to view the custom attributes available to VPN profiles from the Custom Attributes dashboard, which also includes which VPN profiles have assigned attributes in the Linked to column.


    Custom Attributes page showing VPN profiles with assigned custom attributes