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.

Recent posts

  • At its core, IEEE 802.1X is a network layer... Full Story

  • In case you did not see the previous FortiNAC... Full Story

  • This is our 5th session where we are going... Full Story

  • Now that we have Wireshark installed and somewhat configured,... Full Story

  • The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story