Thursday, December 26, 2024
Google search engine
HomeGuest BlogsInstall Cisco AnyConnect on Ubuntu / Debian / Fedora

Install Cisco AnyConnect on Ubuntu / Debian / Fedora

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

Cisco AnyConnect Client is an SSL VPN client which provides VPN functionalities with other features that enable an enterprise to secure its endpoints. In an ideal use case, you’ll use Cisco AnyConnect Secure Mobility Client to connect to a Cisco SSL VPN server. There is an open source creation called OpenConnect. We have a guide on how to connect to VPN Server with OpenConnect SSL VPN Client on Linux.

I encountered so many issues with OpenConnect and decided to give AnyConnect a try. Follow the steps provided in the next sections to install and configure AnyConnect VPN client on a Linux system – Ubuntu/Debian/Fedora/CentOS/RHEL e.t.c.

Step 1: Download AnyConnect Client

AnyConnect client for Linux, Windows and macOS is available on Downloads page . Login with your Cisco account credentials and download the latest anyconnect-linux64* package.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

Once the archive file is downloaded, proceed to extract it.

tar xvf anyconnect-linux64-*-predeploy-k9.tar.gz

Step 2: Install Cisco AnyConnect

Now that file has been downloaded and extracted, cd to created folder.

cd anyconnect-linux64-*/ 

You should see below folders.

$ ls
dart  iseposture  nvm  posture  vpn

Navigate to vpn directory and execute vpn_install.sh script with sudo.

cd vpn
sudo ./vpn_install.sh

Accept License when prompted.

Description of Other Rights and Obligations 
Please refer to the Cisco Systems, Inc. End User License Agreement. 
http://www.cisco.com/en/US/docs/general/warranty/English/EU1KEN_.html
Do you accept the terms in the license agreement? [y/n] y

The installer script will create a systemd service unit file and enable it to start at boot.

You have accepted the license agreement.
Please wait while Cisco AnyConnect Secure Mobility Client is being installed...
install systemd
Installing ./vpnagentd.service
Created symlink /etc/systemd/system/multi-user.target.wants/vpnagentd.service → /usr/lib/systemd/system/vpnagentd.service.
Starting Cisco AnyConnect Secure Mobility Client Agent...
Done!

Step 3: Launch Cisco AnyConnect on Linux

For CLI connection, check:

For Desktop, launch Cisco AnyConnect Secure Mobility Client from your Desktop.

launch anyconnect linux

Input VPN server IP address and hit connect key. Then click on change settings to trust the server.

anyconnect verify server

Uncheck “Block Connections to untrusted servers“.

anyconnect unblock untrusted connections

After the change, your settings should look similar to below.

anyconnect unblock untrusted connections 02

Then Click “Connect Anyway” to accept untrusted certificate warning.

anyconnect unblock untrusted connections 03

When prompted to enter login credentials, input your username and password to be connected.

anyconnect enter username password

Your VPN connection should be active. Confirm connection by checking IP address details and routes.

$ ip addr
$ ip route

Enjoy using AnyConnect to access your private networks securely over public internet.

Also check:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

RELATED ARTICLES

Most Popular

Recent Comments