Skip to main content

Tunnel Profile

Tunnel profiles configure GlobalProtect tunnel settings (split tunneling, framed IP retrieval, local network access) for mobile users in Strata Cloud Manager. The scm CLI provides commands to create, update, delete, show, backup, and load tunnel profiles.

Overview

The tunnel-profile commands allow you to:

  • Create tunnel profiles with split tunneling routes and applications
  • Update existing tunnel profile configurations
  • Delete tunnel profiles that are no longer needed
  • Bulk import tunnel profiles from YAML files (including nested settings)
  • Export tunnel profiles for backup or migration
Folder restriction

Tunnel profiles only exist in the Mobile Users folder. The --folder option defaults to Mobile Users and any other value is rejected. Snippet and device containers are not supported. Profile names are limited to 31 characters.

Set Tunnel Profile

Create or update a tunnel profile.

Syntax

scm set mobile-agent tunnel-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the tunnel profile (max 31 chars)Yes

Options

OptionDescriptionRequired
--folder TEXTFolder location (defaults to Mobile Users)No
--no-direct-access-to-local-network / --allow-direct-access-to-local-networkDisable/allow direct access to the local networkNo
--retrieve-framed-ip-address / --no-retrieve-framed-ip-addressRetrieve the framed IP address from the authentication serverNo
--os TEXTOperating system, repeatable (Android, Chrome, IoT, Linux, Mac, Windows, WindowsUWP, iOS)No
--source-user TEXTSource user, repeatableNo
--access-route TEXTRoute included in the tunnel, repeatableNo
--exclude-access-route TEXTRoute excluded from the tunnel, repeatableNo
--include-application TEXTApplication included in the tunnel, repeatableNo
--exclude-application TEXTApplication excluded from the tunnel, repeatableNo

Nested settings (authentication override cookies, source address, split tunneling domains) are supported through scm load mobile-agent tunnel-profile.

Examples

Create Tunnel Profile with Split Tunneling

$ scm set mobile-agent tunnel-profile "corp-tunnel" \
--folder "Mobile Users" \
--access-route 10.0.0.0/8 \
--exclude-access-route 192.168.1.0/24 \
--no-direct-access-to-local-network
Created tunnel profile: corp-tunnel in folder Mobile Users

Show Tunnel Profile

Display one or all tunnel profiles.

Syntax

scm show mobile-agent tunnel-profile [NAME] [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the tunnel profile to show (lists all when omitted); omit to list allNo

Options

OptionDescriptionRequired
--folder TEXTFolder location (defaults to Mobile Users)No
--output, -o [table|json|yaml]Output format (default: table)No
--max-results INTEGERMaximum number of results to displayNo

Examples

# List all tunnel profiles
$ scm show mobile-agent tunnel-profile

# Show a specific tunnel profile
$ scm show mobile-agent tunnel-profile "corp-tunnel"

Delete Tunnel Profile

Remove a tunnel profile.

Syntax

scm delete mobile-agent tunnel-profile NAME [OPTIONS]

Arguments

ArgumentDescriptionRequired
NAMEName of the tunnel profile to deleteYes

Options

OptionDescriptionRequired
--folder TEXTFolder location (defaults to Mobile Users)No
--forceSkip the confirmation promptNo

Examples

$ scm delete mobile-agent tunnel-profile "corp-tunnel" --force
Deleted tunnel profile: corp-tunnel from folder Mobile Users

Backup Tunnel Profile

Export all tunnel profiles in a folder to a YAML file.

Syntax

scm backup mobile-agent tunnel-profile [OPTIONS]

Options

OptionDescriptionRequired
--folder TEXTFolder to backup from (defaults to Mobile Users)No
--file PATHOutput file path (defaults to tunnel-profile-mobile-users.yaml)No

Examples

$ scm backup mobile-agent tunnel-profile
Successfully backed up 2 tunnel profiles to tunnel-profile-mobile-users.yaml

Load Tunnel Profile

Bulk create or update tunnel profiles from a YAML file. The YAML supports the full nested SDK structure.

Syntax

scm load mobile-agent tunnel-profile [OPTIONS]

Options

OptionDescriptionRequired
--file PATHYAML file to load configurations fromYes
--dry-runSimulate execution without applying changesNo
--folder TEXTOverride folder location for all objectsNo

YAML Schema

tunnel_profiles:
- name: corp-tunnel
folder: "Mobile Users"
no_direct_access_to_local_network: true
retrieve_framed_ip_address: false
os:
- Windows
- Mac
access_route: # convenience key, folded into split_tunneling
- 10.0.0.0/8
exclude_access_route: # convenience key, folded into split_tunneling
- 192.168.1.0/24
authentication_override:
accept_cookie:
generate_cookie: true
cookie_lifetime:
lifetime_in_hours: 24
source_address:
region:
- US
split_tunneling precedence

If a profile specifies split_tunneling directly, it takes precedence and the access_route / exclude_access_route / include_applications / exclude_applications convenience keys are ignored.

Examples

# Validate without applying
$ scm load mobile-agent tunnel-profile --file tunnel_profiles.yml --dry-run

# Apply
$ scm load mobile-agent tunnel-profile --file tunnel_profiles.yml
Created tunnel profile: corp-tunnel

Summary: 1 created, 0 updated, 0 unchanged