Configure Open Connect Using CLI on Ubuntu 16.40 and CentOS7

Configure Open Connect Using CLI on Ubuntu 16.40/CentOS 7 | OneVPN

How to Configure Open Connect Using CLI Ubuntu 16.40 & CentOS 7
Cisco AnyConnect is VPN client used by many. It’s equivalent in the open source code is OpenConnect. A free Open source software named as Open Connect is the best substitute. Open Connect is an SSL VPN Client initially introduced to support AnyConnect SSL VPN later on OpenConnect addresses all of the issues of Cisco Client & lot more.

Installing OpenConnect


 1. Ubuntu Installation cli


Use this command on CLI/terminal to Install OpenConnect on Ubuntu

sudo apt-get -y install openconnect vpnc



 2. CentOS/Fedora/RedHat Installation


Use this command on CLI/terminal to Install OpenConnect on CentOS/Fedora/RedHat

sudo yum -y install openconnect vpnc


NOTE:
If the packages are not found, you might need to add additional EPEL repository in CentOS 7.

sudo yum install epel-release sudo yum --enablerepo=epel install openconnect vpnc


3. GUI Installation


Some GNU/Linux distributions provide GUI for OpenConnect VPN. On Debian/Ubuntu, try installing the network-manager-openconnect package.


For more information, see http://www.infradead.org/openconnect/packages.html.


4.Building for source code


For building instructions, see the OpenConnect website: http://www.infradead.org/openconnect/building.html.



Using OpenConnect


Open a terminal, and run the following:


sudo openconnect https://usa-jer.one-vpn.net/


Once connected, you’ll be asked for to accept server certificate.


It will also be shown on the terminal. Press yes to continue.


Openconnect

Once you enter yes you will see the screen that will ask for your username and password.


Openconnect

Enter the Correct Username and Password and you will be connected.


The last message might show different technical parameters (e.g. Cipher suites), but as long as it says “Established connection” - you’re connected to the VPN.  eters (e.g. Cipher suites), but as long as it says “Established connection” - you’re connected to the VPN. Enter the Correct Username and Password and you will be connected. The last message might show different technical parameters (e.g. Cipher suites), but as long as it says “Established connection” - you’re connected to the VPN.