LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-26-2015, 04:26 AM   #1
tshepang
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
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

Last edited by tshepang; 02-26-2015 at 04:30 AM.
 
Old 02-26-2015, 08:03 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
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

Last edited by jstephens84; 02-26-2015 at 08:04 AM. Reason: changed package name from network-manager-openconnect to NetworkManager-openconnect
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco anyConnect and Iptables mpapet Linux - Networking 1 01-31-2014 01:42 PM
Cisco AnyConnect / Open Connect TAP rubenscript Linux - Software 0 10-03-2012 03:20 AM
how to setup Cisco AnyConnect with CentOS 6 32 bit rhbegin Linux - Networking 1 01-09-2012 04:34 PM
[SOLVED] Cisco Anyconnect 2.5.2019 metallica1973 Linux - Networking 1 04-26-2011 08:56 AM
cisco anyconnect VPN client installation?? zing_4u Linux - Networking 0 09-01-2010 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration