Outils pour utilisateurs

Outils du site


issue90:python

OpenConnect To A Cisco VPN

Many businesses and universities use Cisco AnyConnect as their VPN solution. Although there is a native Linux client offered by Cisco, it is not very well supported, and in some cases the user does not have access to the client. Fortunately, there is a simple solution to this problem – thanks to OpenConnect. OpenConnect is a client for Cisco’s AnyConnect VPN. It is free software, and is released under the GNU LGPL v2.1.

Getting connected to an AnyConnect VPN is easy with OpenConnect and the TUN/TAP kernel module that is built into the Linux kernel.

Activate the TUN module

Enter the following into a terminal:

sudo /sbin/modprobe tun

Install openconnect

Enter the following into a terminal:

sudo apt-get install openconnect

Connect to the VPN

OpenConnect has many optional arguments that can be passed in the connection string. These arguments are explained well in the OpenConnect documentation. The basic structure of the connection string that enables the VPN connection is shown below. In a terminal, enter:

sudo openconnect yourvpn.example.com

OpenConnect prompts for a username and password. Once these are authenticated, the VPN connection is established, and the terminal output should look something like the image below.

Keep the terminal window open while the VPN session is active. Network resources such as shared folders, NAS drives, servers, and workstations should now be available. To close the VPN session, type Ctrl+Z into the terminal window. Abruptly killing the terminal window without properly closing out of the VPN session can lead to issues when attempting to reconnect in the future. These issues can typically be resolved by restarting the machine.

As we have seen, OpenConnect makes it easy to connect to a Cisco AnyConnect VPN. If your employer or educational institution utilizes AnyConnect, this tool enables full access to network resources with a stable, secure, and reliable connection.

External Links

Cisco AnyConnect VPN*http://www.cisco.com/c/en/us/solutions/enterprise-networks/anyconnect-secure-mobility-solution/index.html

OpenConnect http://www.infradead.org/openconnect/

TUN/TAP https://www.kernel.org/doc/Documentation/networking/tuntap.txt

issue90/python.txt · Dernière modification : 2015/01/02 15:26 de andre_domenech