[Error: ]
Cisco anyconnect failed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
/opt/cisco/vpn/bin> ./vpn Cisco AnyConnect VPN Client (version 2.5.6005) . Copyright (c) 2004 - 2010 Cisco Systems, Inc. All Rights Reserved. >> state: Disconnected >> notice: Ready to connect. >> registered with local VPN subsystem. >> state: Disconnected >> notice: Ready to connect. VPN> conn myaccess.myserver.com >> contacting host (myaccess.myserver.com) for login information... >> notice: Contacting myaccess.myserver.com. VPN> >> Please enter your username and password. Username: [suse_me] Password: >> notice: Please respond to banner. ... ... accept? [y/n]: y >> state: Connecting >> notice: Establishing VPN session... >> notice: Checking for profile updates... >> notice: Checking for product updates... >> error: AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again. >> notice: Connection attempt has failed. >> state: Disconnected |
failed anytime at the final step.
[root cause:]
the root cause is the xattr setting on /etc/resolv.conf
I was using pppoe connection last days, and setting /etc/resolv.conf with a fixed value.
cisco anyconnect will try anyway to replace/update items in /etc/resolv.conf. failed if no update permission.
I used “chattr +i ” to keep the file stable, but it failed to update and cisco anyconnect will give up connection at last.
[solution]
chattr -i /etc/resolv.conf