Cisco VPN client in Linux
Connecting to a network using Cisco VPN is quite easy. I’ve got it with Fedora 7, but I suppose the steps are the same regardless the distribution you are using.
The first step is to install a Cisco compatible VPN client. Cisco has a client, but there’s a free alternative called vpnc. To install it in Fedora, just run the following sentence as root:
24 August 2018 The easiest way to create a Cisco VPN client connection on Redhat 7 Linux is to use vpnc client which is an opensource alternative to Cisco VPN client. Let's start by VPNC installation on RHEL7. The VPNC package is located within EPEL (Extra Packages for Enterprise Linux 7) repository thus first enable EPEL repository. Cisco VPN Client (vpnclient-luh-linux-x86-4.8.02.0030-k9).
# yum install vpnc
Once you have it installed, you can start using it:
# /usr/sbin/vpnc
Enter IPSec gateway address:
Enter IPSec ID for 192.168.2.1
Enter IPSec secret for 192.168.2.1@192.168.2.1:
Enter username for 192.168.2.1:
Enter password for yourusername@192.168.2.1:
but if you are going to connect often, you’d better put all that stuff in a config file. Edit as root, with your favourite text editor, the /etc/vpnc/default.conf file:
# vi /etc/vpnc/default.conf
Then type your connection data:
IPSec gateway
IPSec ID
IPSec secret
Xauth username
If you don’t have a ‘secret’, then it’s probably your password. At least, it has worked for me.
I suppose you have realized that your password it’s not stored in the file. That’s the only data you will need to type when you try to connect.
After setting up this, you will be able to connect using
# /usr/sbin/vpnc
Type your password when prompt. In that step, you may get an error if your network administrator is using simple DES encryption:
Cisco Vpn Client 5.0.07.0440 Windows 10
# /usr/sbin/vpnc
Enter password for username@xx.xx.xxx.xx:
/usr/sbin/vpnc: peer selected (single) DES as 'encrytion' method.
This algorithm is considered too weak today
If your vpn concentrator admin still insists on using DES
use the '--enable-1des' option.

In that case, you will need to connect using the following command:
# /usr/sbin/vpnc --enable-1des
Cisco Anyconnect Client Download Linux
To disconnect, just run the following:
# /usr/sbin/vpnc-disconnect
