Sep 272016
 

My first day back from EuroBSDCon 2016, I wanted to fix an issue which arose before the conference. My Cisco AnyConnect client configuration contained old hosts which I no longer used, but didn’t contain the host I was primarily using now. I could add the host, but upon restart, that new host was no longer there. Plus, when started, AnyConnect would attempt to connect to the old host, which is not even remotely close to ideal.

It took a little bit of hunting, but I found two issues:

Locating the Cisco AnyConnect Profiles

Locating the Cisco AnyConnect Profiles pointed me to /opt/cisco/anyconnect/profile where I removed the anyconnect directory. Actually, I did not delete the directory, instead I did a mv anyconnect anyconnect.DELETEME just in case.

There were two files in this directory which were relevant:

  • .anyconnect_global – contained a reference to DefaultHostName, which was the old host I wanted to remove
  • profile/vrt.xml – contained a list of references to the old host.

The rename of that directory helped the situation in that the drop down list in the AnyConnect client now contained only one host.

I kept looking.

How to Change Default Host for Cisco AnyConnect on Mac

How to Change Default Host for Cisco AnyConnect on Mac pointed me at ~/.anyconnect, which referenced the rogue host.

Renaming that file resulted in an empty list. Exactly what I wanted.

Cleanup

The cleanup was simple: delete the files and directories I renamed.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive