By Manny Fernandez

January 24, 2017

Persistent VPN Profiles in AnyConnect

Persistent VPN Profiles in AnyConnect

If you are like me that connects to a multitude of customer’s networks using AnyConnect, you know the headache of the Client not remembering the connections you normally connect to. Here is how to fix that.

You will need to create an XML file. Don’t worry it is not so bad….. Add as many connection as you would like. NOTE that the <HostName> is not the actual host name but rather a NAME for the connection.

<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding">
<ServerList>
<HostEntry>
<HostName>Domain A VPN</HostName>
<HostAddress>vpn.domain-a.com</HostAddress>
</HostEntry>
<HostEntry>
<HostName>Domain B VPN</HostName>
<HostAddress>vpn.domain-b.com</HostAddress>
</HostEntry>
</ServerList>
</AnyConnectProfile>

After creating this file, save it to the AnyConnect Profile directory. Below is the list of paths for the AnyConnect profile directories.

Windows 8-10
%ProgramData%\Cisco\Cisco AnyConnect Secure Mobility Client\Profile

Mac OS X/ macOS Sierra
/opt/cisco/anyconnect/profile

Linux
/opt/cisco/anyconnect/profile​

Restart AnyConnect and you are off to the races.

Note: This works for AnyConnect 3 and 4.

VRF Explained: Virtual Routing and Forwarding on FortiGate, Cisco and Juniper

VRF Explained: Virtual Routing and Forwarding on FortiGate, Cisco and Juniper

Learn virtual routing and forwarding (VRF), then build VRFs and route leaking on FortiGate, Cisco IOS XE and Juniper Junos with tested CLI.

Read More
Meraki CVE-2026-76463: Find and Patch Every Affected Device

Meraki CVE-2026-76463: Find and Patch Every Affected Device

Meraki CVE-2026-76463 explained: what the 8.8 access control bundle covers, how to inventory firmware with the API, and which releases fix it.

Read More
Spanning Tree Protocol Explained: STP vs RSTP vs MSTP (with FortiSwitch Config)

Spanning Tree Protocol Explained: STP vs RSTP vs MSTP (with FortiSwitch Config)

Learn how spanning tree, RSTP and MSTP elect a root and block loops, then configure MSTP on FortiSwitch so both core uplinks forward traffic.

Read More