- First, install necessary packages:
- Go to the Downloads folder and extract the file:
-
cd anyconnect-linux64-4.8.03043/
cd vpn
sudo ./vpn_install.sh
Accept the license:
- Reload systemd, scanning for new or changed units:
- Verify if the vpnagentd daemon is set up to be started each time your system is booted:
- Make command aliases to point to the vpn and vpnui commands:
- Also add these aliases to the end of your ~/.bashrc or ~/.bash_aliases file:
-
cd /opt/.cisco/certificates
sudo mv ca ca.orig
sudo ln -sf /etc/ssl/certs/ ca
sudo /etc/init.d/vpnagentd restart
- Connecting and disconnecting method 1 (Recommended):
- Go to the setting and make sure " Block connections to untrusted servers" is unchecked:
- Enter your server IP, username and password and then hit the connect button and click on " Connect Anyway":
- Connecting and disconnecting method 2:
-
Connect Anyway? [y/n]: y
>> Please enter your username. Username: [Your Username] >> Please enter your password. Password:
- To disconnect, type disconnect and then quit to exit application
Installing AnyConnect in Ubuntu 20.x using command line (Credit goes to: socsci.uci.edu)
sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses6
sudo apt-get install network-manager-openconnect
sudo apt-get install libcanberra-gtk-module
Now Download the 64 bit client file and save it to your Downloads folder.
cd ~/Downloads
tar -xzvf anyconnect-linux64-4.8.03043-predeploy-k9.tar.gz
sudo systemctl daemon-reload
ls -l /etc/rc?.d/*vpn*
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc0.d/K01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc1.d/K01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc2.d/S01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc3.d/S01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc4.d/S01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc5.d/S01openvpn -> ../init.d/openvpn
lrwxrwxrwx 1 root root 17 Apr 23 22:39 /etc/rc6.d/K01openvpn -> ../init.d/openvpn
alias vpn='/opt/cisco/anyconnect/bin/vpn'
alias vpnui='/opt/cisco/anyconnect/bin/vpnui'
cat >> ~/.bash_aliases
alias vpn='/opt/cisco/anyconnect/bin/vpn'
alias vpnui='/opt/cisco/anyconnect/bin/vpnui'
At the end press Ctrl+D to finish
^D
If restart command not found, please issue a reboot
vpnui



Note: To see your server IP address, login here with your username and password.

To disconnect, just click " Disconnect" in the window
vpn
At the VPN> prompt, type connect Your Server Address and press Enter. Example:
connect https://81.22.216.194:8080/
- Install/update the latest packages:
- Enable TUN module:
- Install OpenConnect:
- Connecting and disconnecting:
Installing OpenConnect in Ubuntu 20.x using command line
sudo apt-get update
sudo /sbin/modprobe tun
sudo apt-get install openconnect
sudo openconnect Server IP
Note: To see your server IP address, login here with your username and password.
To disconnect VPN, just close the terminal
- Install necessary packages:
- Go to the Setting > Network and click on " +" icon in VPN section:
- In "Add VPN" window select " Multi-protocol VPN client (openconnect)":
- In the name box type a proper name such as "
RapidVPN AnyConnect".
Add your Server IP in " Gateway" and then click " Add" button: - Hit the toggle button and enter your username and password by clicking on " Login" button:
- Done! to disconnect just toggle connect button:
Installing AnyConnect OpenConnect in Ubuntu 20.x using GUI (Graphical User Interface)
sudo apt-get update
sudo apt install network-manager-openconnect network-manager-openconnect-gnome
Type y when ask to continue



Note: To see your server IP address, login here with your username and password.



Click " Login" agian after your enter your password to establish VPN connection:

