LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   connecting to cisco anyconnect on Centos 7 (https://www.linuxquestions.org/questions/linux-networking-3/connecting-to-cisco-anyconnect-on-centos-7-a-4175535148/)

tshepang 02-26-2015 04:26 AM

connecting to cisco anyconnect on Centos 7
 
[root@server bin]# ./vpn
Cisco AnyConnect Secure Mobility Client (version 3.1.05170) .

Copyright (c) 2004 - 2013 Cisco Systems, Inc. All Rights Reserved.


>> state: Disconnected
>> state: Disconnected
>> notice: Ready to connect.
>> registered with local VPN subsystem.
VPN> connect <clientvpnname.com>
connect <clientvpnname.com>
>> contacting host (clientvpnname.com) for login information...
>> notice: Contacting clientvpnname.com.
AnyConnect cannot verify the VPN server: clientvpnname.com
- Certificate is from an untrusted source.
Connecting to this server may result in a severe security compromise!

Most users do not connect to untrusted VPN servers unless the reason for the error condition is known.

Connect Anyway? [y/n]: y

Always trust this VPN server and import the certificate? [y/n]: y
>> warning: Connection attempt has failed.
>> state: Disconnected
>> error: AnyConnect cannot confirm it is connected to your secure gateway. The local network may not be trustworthy. Please try another network.
VPN>


[root@server bin]# pwd
/opt/cisco/anyconnect/bin
[root@server bin]# ll
total 2008
-rwxr-xr-x. 1 root root 502 Feb 25 14:07 anyconnect_uninstall.sh
-rwxr-xr-x. 1 root root 346880 Feb 25 14:07 manifesttool
drwxr-xr-x. 2 root root 50 Feb 25 14:07 plugins
-rwxr-xr-x. 1 root root 60523 Feb 25 14:07 vpn
-rwsr-xr-x. 1 root root 678419 Feb 25 14:07 vpnagentd
-rwxr-xr-x. 1 root root 403235 Feb 25 14:07 vpndownloader
-rwxr-xr-x. 1 root root 375831 Feb 25 14:07 vpndownloader-cli
-rwxr-xr-x. 1 root root 169571 Feb 25 14:07 vpnui
-rwxr-xr-x. 1 root root 8122 Feb 25 14:07 vpn_uninstall.sh

[root@server bin]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root@server bin]# uname -a
Linux server.localdomain 3.10.0-123.20.1.el7.x86_64 #1 SMP Thu Jan 29 18:05:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@server bin]#

From windows 7 is working 100%...Both sservers are running on Virtualbox and the network is nat'ing

jstephens84 02-26-2015 08:03 AM

One recommendation that I would look at would be open connect. I have used that at the last two companies to connect to ASA5520's running annyconnect. Works like a charm.

just install open connect and network-manager-openconnect and create a new vpn in your network interface management.

Just giving this as an alternative because I had major problems with the cisco client for linux.

Linking a site but just in case it goes by the way side I am coping the steps in here. http://crashcourse.housegordon.org/OpenConnect.html

you may need to install additional repo's for this software
http://wiki.centos.org/AdditionalRes...ories/RPMForge
Code:

sudo yum -y install openconnect vpnc NetworkManager-openconnect


All times are GMT -5. The time now is 03:56 AM.