Cisco AnyConnect fails after initiating connection
I'm trying to VPN to my work place but Cisco AnyConnect fails after initiating a connection. It pops up an error that says The VPN client failed to establish a connection then it shows another error saying AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again. I've tried everything. Reinstalling, restarting, and various other things like disabling ICS (Internet Connection Sharing). I tried it on my laptop and the web-installer worked fine. It installed the client and connected perfectly ok so it must be something with this PC. I've been trying to figure this out for about 5 hours now and Googling doesn't help. Here's the message history from AnyConnect:
[11/11/2013 1:55:55 PM] Ready to connect.
[11/11/2013 1:57:05 PM] Contacting ---.---.---.---
[11/11/2013 1:57:07 PM] Please enter your username and password.
[11/11/2013 1:57:08 PM] User credentials entered.
[11/11/2013 1:57:08 PM] Establishing VPN session...
[11/11/2013 1:57:09 PM] Checking for profile updates...
[11/11/2013 1:57:09 PM] Checking for product updates...
[11/11/2013 1:57:10 PM] Checking for customization updates...
[11/11/2013 1:57:10 PM] Performing any required updates...
[11/11/2013 1:57:15 PM] Establishing VPN session...
[11/11/2013 1:57:15 PM] Establishing VPN - Initiating connection...
[11/11/2013 1:57:16 PM] Disconnect in progress, please wait...
[11/11/2013 1:57:29 PM] Connection attempt has failed.
[11/11/2013 1:59:31 PM] Ready to connect.
I tried turning off the firewall and anti-virus. I didn't think it would matter since my laptop uses the same firewall and anti-virus too and I didn't need to disable that. My laptop uses Windows 7 Home 64-bit and my PC that is failing is using Windows 7 Ultimate 64-bit.
18 Answers
The solution for me was to disable Internet Connection Sharing (ICS).
To resolve this issue:
- Click the Windows
Startbutton. - Click on
Control Panel. - Set
View by:toCategory. - Click on
View network status and tasksunderNetwork and Internet. - Click on
Change adapter settings. - Look for
Sharedin theStatuscolumn and right-click that connection and clickProperties. - Click the
Sharingtab. - Clear the
Allow other network users to connect through this computer’s Internet connectioncheck box. - Click
OK. - Reinstall Cisco AnyConnect.
I see that disabling ICS did not work for the OP, but it worked for me and many others, according to various forums, it seems.
It may be a ThinkPad-specific issue. Lenovo published an advisory article indicating that their Access Connections software interferes with AnyConnect. The solution is to disable ICS. I don't have a way to establish whether this is the actual reason for my problem, but the solution worked.
Nathan's answer on this page didn't work for me, because the Allow other network users[...] checkboxes were cleared for all the items anyway.
I disabled ICS this way:
Type
services.mscinto Windows' menu after you press the Start button. Right click on theservices.mscthat appears after it's finished searching, andRun as Administrator...Find
Internet Connection Sharing, stop it and set it to be launchedManually.
I had this problem, and eventually my company support team fixed it by clicking the properties icon on the "Cisco AnyConnect Secure Mobility Client" window.
On the Preferences tab of the window that appears, locate the 'Check for updates on VPN connect' tick box, and ensure its ticked. Then, when connecting to the VPN, the client looks to see if there are updates available, and installs itself.
I was not able to find this information on the day, but if I had, i'd have been able to reconnect to the company VPN - instead I got the sack, thanks Cisco!
If, your experience is similar to mine, where you have seemed to successfully authenticate, and then where you see the following two responses...
1) Pop-up shown as after what seems to be successful authentication
2) (Misleading) Message on AnyConnect taskbar window
.. it is quite likely that you have two users logged onto your client PC. That is, the local computer from which you are connecting to your office network..
The security risk is obvious. You can force a log-off on the other user, then it will work (**NB: Unsaved data for that user will be lost).
Unfortunately, none of the above worked for me. I disabled/enabled my wireless network adapter and that resolved the issue.
None of the options above worked for me. For me, it came down to a Wireshark capture. It turns out that most VPN users were trying to hit a 'wpad' server via wpad.mydomain.com. We have a wildcard lookup on mydomain.com, and so wpad.mydomain.com resolved there. It obviously failed to get proxy settings from that IP and came up with the error "The VPN client failed to establish a connection"
To fix:
- Click on
Start Menu - Choose
Control Panel - Click on
Internet Options - Go to
ConnectionsTab - Click
LAN Settingsbutton - Uncheck
Automatically Detect Settings - Click
OK,OK - restart Cisco AnyConnect and try again
I had also this problem, in my case it was caused by YubiKey. I use YubiKey for some program like LastPass and one day I decided I wanted to keep it in the computer (since I now from remotely all the time). So what happened was that AnyConnect would connect to the vpn server prompt for password and then just give an error message. Unplugging the YubiKey and it worked again. In our company we dont use YubiKey for logging in but I guess in some companies they do.
This issue will occur when I try to use Cisco Anyconnect from a session established by Microsoft Remote Desktop on my macos. Cisco Anyconnect would work just fine if I use it directly in the Windows 10 desktop.