How to install and connect to the VPN -Linux/Ubuntu - IST Knowledge Base (2024)

The instructions below work with all Linux-Ubuntu devices.

Use checkvpn.uwaterloo.ca to see your computer's VPN connection status.

Cisco AnyConnect uses version 4.10. Be sure that you have a compatible OS in order to use the AnyConnect application.

Step-by-Step

  1. To begin, log into theVPN websitewith your 8-character UWaterloo username (e.g.myuserna) and password. Most can use

    https://vpn.uwaterloo.ca/+CSCOE+/logon.html

    ,but depending on where you are on campus, you may need to usehttps://vpn.private.uwaterloo.ca.

    How to install and connect to the VPN -Linux/Ubuntu - IST Knowledge Base (1)

    1. Second Password:

  • Type push for Duo Mobile push; enter ‘push2’ to receive the prompt on a secondary device, ‘push3’ to receive the prompt on a tertiary device, etc. To avoid multiple prompts on your phone, accept the push within 10 seconds.

  • Type sms for text codes ; you will get a text message with 10 codes. Re-enter your password, and type the first code in the second password field.

  • Type phone to get a phone call ; enter ‘phone2’ to receive the prompt on a secondary device, ‘phone3’ to receive the prompt on a tertiary device, etc.

  • For Duo hardware token or Duo app, enter the 6-digit code from the token or app

  • For a Yubikey, touch the YubiKey with your cursor in the text box

b. Accept the Duo 2FA prompt on your device to continue to the next step

2. After logging in, download the “Cisco AnyConnect Secure Mobility Client” by clicking “Download for Linux” and download the script file “anyconnect-linux64-4.6.01103-core-vpn-webdeploy-k9.sh

  • If Cisco detects the incorrect OS or provides a different installation file, follow the steps to


    3. Another window will pop up and it will prompt to save the installer.

    How to install and connect to the VPN -Linux/Ubuntu - IST Knowledge Base (2)

    4. Open up the command terminal (crtl+alt+t) and input these commands:
    ~$ cd Downloads/ (makes it so that the directory is downloads and allow interaction with the installer file)

    ls – l (looks through the downloads folder to look for the script file)

    chmod 0700anyconnect-linux64-4.6.01103-core-vpn-webdeploy-k9.sh (marks the script as an executable file)

    sudo ./anyconnect-linux64.4.6.01103-core-vpn-webdeploy-k9.sh (this runs the script)

5. Input the computer password when prompted (it will prompt you to do this after you run the script).

6. After you enter the password, the program should be fully installed on your computer. You can then open the client by selecting Show applications on the bottom left of your screen. Then click on Cisco AnyConnect.

7. After Cisco AnyConnect opens, if you haven't connected before, you will need to specify the VPNserver:

8. Enter your 8-character username (e.g.j25rober) and click Connect.

  • Two-factor authentication (2FA) will be required in order to connect to the VPN.In the 'Second Password' field, enter one of the following, then clickConnect.

    1. For Duo Mobile push (app):

      • To avoid multiple prompts on your phone, accept the push within 10 seconds.

      • Open your Duo app, select University of Waterloo, enter the code in the second password field [Recommended option], or

      • Enter ‘push' or 'push1’ to send the prompt to your primary device, or

      • Enter ‘push2’ to receive the prompt on a secondary device, ‘push3’ to receive the prompt on a tertiary device, etc.

      -For Duo hardware token:enter your 6-digit code

      -For Duo Bypass code:enter your bypass code

      -For SMS codes : enter ‘sms’; you will get a text message with 10 codes. Re-enter your password, and type the first code in the second password field.

      -For Yubikey:enter the code generated by touching the Yubikey

      -For Phone Call :enter 'phone'

      • Enter ‘phone2’ to receive the prompt on a secondary device, ‘phone3’ to receive the prompt on a tertiary device, etc.

      • If you are not receiving Duo phone calls, you may have a setting that is blocking the phone calls. Some possible solutions include adding the Duo phone number,(306) 900-4884, to your device whitelist, or if the service is blocking unknown callers, add the Duo phone number as a contact on the device.

        • iPhone: 'Silence Unknown Callers'

        • Telus/Koodo: 'Call Control'

        • Android: 'Block Unknown Callers'

        • Call Control or Call Blocker app

        • Any anti-spam service

  • You should now be connected! If you want to make sure you are connected, then you can click on Cisco AnyConnect, which should show you it as “Connected”.

  1. First run the command below to activate the TUN module

    sudo/sbin/modprobetun

    Note: Some users may receive an error stating that TUN cannot be found, however it can be disregarded if steps 2 and 3 below- Install and Connect --Open Connect successfully.

    If the installation fails, the most likely error that will be received is

    modprobe: FATAL: Module tun not found in directory /lib/modules/...

    To resolve this error, switch to a stable release. If you are already running a stable release, the following steps can be taken to resolve the issue:

    1. Reboot your device

    2. Remove any network-related kernel packages you have installed and update/upgrade your operating system

  2. InstallOpenConnect:

    sudoapt-get installopenconnect

  3. Connect to VPN, run:

    sudoopenconnect-vvpn.uwaterloo.ca

When prompted to choose a group, type the appropriate VPN group name (UW-Campus, UW-General-Campus, UW-PART) and press enter.

It prompts you to type inyour 8-character UWaterloo username (e.g.myuserna) and password and a second password. Once these are authenticated, the VPN connection is established.You will also be presented with the time and date your VPN session will expire.

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, pressCtrl+Zin 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.

--------------------------------------------------------------------------------------------------------------------------

Optional – Install VPN plug-ins for Network Manager

  1. Install some VPN plug-ins for Network Manager:

  2. If prompted for your password, type it, and press Enter.

  3. Ifyou aretold that a package “is already the newest version,” ignore it and continue with the next command.

  4. If asked to “continue [Y/n],” press Y, followed by Enter.

  5. Open the connections settings dialogue, go to theVPNtab and add a new connection.

  6. Select “Cisco AnyConnect”:

Related articles

  • Page:

    Duo two-factor authentication (2FA) and the VPN

  • Page:

    Configuring Microsoft 365 Integration for Linux

  • Page:

    VPN disables internet access

  • Page:

    Adding users to VPN Departmental Groups in Grouper

  • Page:

    How to install and connect to the VPN -Linux/Ubuntu

Need Help?

Contact the IST Service Desk online or519-888-4567 ext. 44357.

How to install and connect to the VPN -Linux/Ubuntu - IST Knowledge Base (2024)
Top Articles
Major companies haven't paid federal income tax in 5 years. How could that be?
Understanding your refinance options
NYT Mini Crossword today: puzzle answers for Tuesday, September 17 | Digital Trends
Koopa Wrapper 1 Point 0
Palm Coast Permits Online
Erika Kullberg Wikipedia
³µ¿Â«»ÍÀÇ Ã¢½ÃÀÚ À̸¸±¸ ¸íÀÎ, ¹Ì±¹ Ķ¸®Æ÷´Ï¾Æ ÁøÃâ - ¿ù°£ÆÄ¿öÄÚ¸®¾Æ
Wmu Course Offerings
Chelsea player who left on a free is now worth more than Palmer & Caicedo
Mcoc Immunity Chart July 2022
Mawal Gameroom Download
WK Kellogg Co (KLG) Dividends
Hover Racer Drive Watchdocumentaries
Jet Ski Rental Conneaut Lake Pa
Clairememory Scam
Orlando Arrest and Public Records | Florida.StateRecords.org
California Department of Public Health
Local Collector Buying Old Motorcycles Z1 KZ900 KZ 900 KZ1000 Kawasaki - wanted - by dealer - sale - craigslist
Magicseaweed Capitola
[Birthday Column] Celebrating Sarada's Birthday on 3/31! Looking Back on the Successor to the Uchiha Legacy Who Dreams of Becoming Hokage! | NARUTO OFFICIAL SITE (NARUTO & BORUTO)
Theresa Alone Gofundme
Committees Of Correspondence | Encyclopedia.com
Craigslist Portland Oregon Motorcycles
The Menu Showtimes Near Regal Edwards Ontario Mountain Village
Forum Phun Extra
Vigoro Mulch Safe For Dogs
Rufus Benton "Bent" Moulds Jr. Obituary 2024 - Webb & Stephens Funeral Homes
12 Top-Rated Things to Do in Muskegon, MI
How do you get noble pursuit?
Jamielizzz Leaked
Kelley Fliehler Wikipedia
Franklin Villafuerte Osorio
Redding Activity Partners
Inmate Search Disclaimer – Sheriff
Nextdoor Myvidster
P3P Orthrus With Dodge Slash
Deleted app while troubleshooting recent outage, can I get my devices back?
404-459-1280
Giantess Feet Deviantart
Pill 44615 Orange
Craigs List Stockton
Michael Jordan: A timeline of the NBA legend
Nancy Pazelt Obituary
Orion Nebula: Facts about Earth’s nearest stellar nursery
This 85-year-old mom co-signed her daughter's student loan years ago. Now she fears the lender may take her house
Rush Copley Swim Lessons
Gon Deer Forum
The Blackening Showtimes Near Ncg Cinema - Grand Blanc Trillium
French Linen krijtverf van Annie Sloan
Oak Hill, Blue Owl Lead Record Finastra Private Credit Loan
Concentrix + Webhelp devient Concentrix
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5710

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.