RV34x: Installing and Using AnyConnect on Ubuntu Desktop (2024)

Kmgmt-785-AnyConnect-Linux-Ubuntu

Objective

The objective of this article is to guide you through installing, using, and the option of uninstallingAnyConnect VPN Client v4.9.x on Ubuntu Desktop.

This article is ONLY applicable to the Cisco Small Business RV34x series routers, not Enterprise products.

Introduction

AnyConnect Secure Mobility Client is a modular endpoint software product. It not only provides VirtualPrivate Network (VPN) access through Secure Sockets Layer (SSL) and Internet Protocol Security (IPsec) Internet KeyExchange version2 (IKEv2) but also offers enhanced security through various built-in modules.

Follow the steps in this article to install the Cisco AnyConnect VPN Mobility Client on a Ubuntu Desktop. In this article, Ubuntu version 20.04 is used.

AnyConnect Software Version

  • AnyConnect - v4.9.x (Download latest)

Table of Contents

  • Installing AnyConnect Secure Mobility Clientv4.9.x
  • Using AnyConnect Secure Mobility Client v4.9.x
  • Uninstalling AnyConnect Secure MobilityClient v4.9.x

Installing AnyConnect Secure Mobility Client v4.9.x

Beginner Information

This toggled section provides details and tips for beginners.

Prerequisites

  • AnyConnect is a licensed product. You need to purchase client license(s) from a partner like CDW or through your company's device procurement. There are options for 1 user (L-AC-PLS-3Y-S5) or packets of licenses including one year for 25 users (AC-PLS-P-25-S). Other license options available as well, including perpetual licenses. For more details on licensing, check out the links in the Licensing Information section below.
  • Download the latest version of firmware available for your router.

    (Click here for step-by-step instructions on this process.)

  • Ubuntu 20.04 (LTS), 18.04 (LTS), and 16.04 (LTS) .

Check these other articles out!

  • Install AnyConnect on Windows
  • Install AnyConnect on a Mac
  • Installing and Using AnyConnect on Ubuntu Desktop using the User Interface

Applicable Devices | Software Version

  • RV340 | 1.0.03.21 (Download latest)
  • RV340W | 1.0.03.21 (Download latest)
  • RV345 | 1.0.03.21 (Download latest)
  • RV345P | 1.0.03.21 (Download latest)

Licensing Information

AnyConnect client licenses allow the use of the AnyConnect desktop clients as wellas any of the AnyConnect mobile clients that are available. You will need aclient license todownload and use the Cisco AnyConnect Secure Mobility Client. A client license enables the VPN functionalityandaresold in packs of 25 from partners like CDW or through your company's device procurement.

Want to know more about AnyConnect licensing? Here are some resources:

  • Cisco RV340 Series and Cisco Anyconnect Secure Mobility Client Community Discussion Forum.
  • AnyConnect Licensing FAQs.

Step 1

Open a web browser and navigate to the Cisco Software Downloads webpage.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (1)

Step 2

In the search bar, start typing 'Anyconnect' and the options will appear. Select AnyConnect Secure Mobility Client v4.x.

Step 3

Download the Cisco AnyConnect VPN Client. Most users will select the AnyConnect Pre-Deployment Package (Linux 64-bit) option.

The images in this article are for AnyConnect v4.9.x, which was latest version at the time of writing this document.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (2)

If you purchased a license and you are unable to download AnyConnect, call Cisco Global Service Relations at +1 919-993-2724. Select option 2. You will need to know your Cisco ID (the one you use to log into Cisco.com) and the sales order number when you call. They will get that situation all straightened out.

Step 4

Open the Terminal by pressing Ctrl+Alt+T on your keyboard. To navigate to the folder where you have downloadedthe AnyConnect Client Package, use the command, ‘cd directory name’. For moreinformation on the ‘cd’ command, click here.

cd [Directory Name]

In this example, the file is placed on the Desktop.

The directory may be different based on the location of the AnyConnect file download. For long filenames or paths, start typing some characters and press the tab key on your keyboard. The filename will auto-populate. If it doesn't even after you press tab twice, it indicates that you need to type more number of unique characters. Alternately, you can use the 'ls' command to list the files in your current directory.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (3)

Step 5

The initial download is a tarball archive (several files packed into one), which must be extracted. The command‘tar xvf filename’ will extract the contents to the same directory in which theinitial file is located.

tar xvf [Filename]

For more information on the ‘tar’ command, click here.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (4)

Step 6

Once the folder is extracted, use the ‘cd directory name’ command again to navigateinto the folder.

cd [Directory Name]

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (5)

Step 7

After navigating into the main folder, ‘cd’ into the vpn sub-folder.

cd vpn

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (6)

Step 8

To run the AnyConnect install script, type ‘sudo ./vpn_install.sh’. This will begin theinstallation process using superuser permissions.

sudo ./vpn_install.sh

For more details on the 'sudo' command, click here.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (7)

Step 9

Accept the terms in the license agreement to complete the installation by typing ‘y’.

y

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (8)

The AnyConnect installation should complete, and the Terminal window can be closed.

Using AnyConnect Secure Mobility Client v4.9.x

Step 1

To access the Anyconnect app, open the Terminal by pressing Ctrl+Alt+T on your keyboard. Use the command, ‘/opt/cisco/anyconnect/bin/vpnui’.

/opt/cisco/anyconnect/bin/vpnui

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (9)

If you encounter any errors through the Terminal, you can access the app from the applications menu as shown below.

To access the applications menu using the User Interface (UI), click on the start icon (appears as nine dots on the lower left corner). Choose the Anyconnect app.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (10)

Alternatively, press Super+A (Super key is the windows icon key) on your keyboard to bring up the search bar. Start typing 'Anyconnect' and the app will appear.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (11)

Step 2

Click on the Anyconnect app.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (12)

Step 3

Enter the IP Address or Hostname of your desired server followed by the port number.

For RV340 family, the default port number is 8443.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (13)

Step 4

Some connections may not be secure using a trusted SSL certificate. By default, AnyConnect Client will blockconnection attempts to these servers.

Uncheck Block connections to untrusted servers to connect to these servers.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (14)

Uninstalling AnyConnect Secure Mobility Client v4.9.x

Step 1

Using Terminal, navigate to the folder that contains the uninstall shell script using the ‘cd’command.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (15)

In a default installation, these files will be located in /opt/cisco/anyconnect/bin/.

Step 2

To run the Anyconnect uninstall script, enter ‘sudo ./vpn_uninstall.sh’

This will begin the uninstall process using superuser permissions. For more information on the 'sudo' command, click here.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (16)

Step 3

At the prompt, enter the sudo password and the client software will complete uninstallation.

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (17)

Conclusion

There you have it! You have now successfully learned the steps to install, use, and uninstall the CiscoAnyConnect Secure Mobility Client v4.9.x on Ubuntu Desktop.

For community discussions on Site-to-Site VPN, go to the CiscoSmall Business Support Community page and do a search for Site-to-Site VPN.

We want the best for our customers, so if you have any comments or suggestions regarding this topic, please send us an email to the Cisco Content Team.

AnyConnect App

The Anyconnect App can be downloaded from the Google Play store or the Apple store.

Additional Resources

BasicTroubleshootingAdministratorGuide Release 4.9ReleaseNotes - 4.9 AnyConnect Licensing - RV340CiscoBusiness VPN Overview and Best Practices

RV34x: Installing and Using AnyConnect on Ubuntu Desktop (2024)

References

Top Articles
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5948

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.