By Manny Fernandez

January 24, 2017

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.

Leave a comment

Your email address will not be published. Required fields are marked *

Recent posts

  • There are many options when troubleshooting in FortiGate firewalls. ... Full Story

  • Have you ever had an IPS signature that continues... Full Story

  • Use case:  Customer has a Split Tunnel Enabled but... Full Story