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.