Cisco AnyConnect VPN Client on Raspberry Pi

Linux Logo

Cisco AnyConnect VPN Client on Raspberry Pi

Install VPN Client

sudo apt install openconnect -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
libopenconnect5 libstoken1 libtomcrypt1 libtss2-esys0 libtss2-udev
vpnc-scripts
Suggested packages: dnsmasq
The following NEW packages will be installed:
libopenconnect5 libstoken1 libtomcrypt1 libtss2-esys0 libtss2-udev
openconnect vpnc-scripts
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,236 kB of archives.
After this operation, 5,014 kB of additional disk space will be used.
Do you want to continue? [Y/n]
sudo apt install network-manager-openconnect-gnome
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
dns-root-data dnsmasq-base libbluetooth3 libmbim-glib4 libmbim-proxy
libmm-glib0 libndp0 libnm0 libqmi-glib5 libqmi-proxy libteamdctl0
modemmanager network-manager network-manager-openconnect ppp
Suggested packages:
libteam-utils
The following NEW packages will be installed:
dns-root-data dnsmasq-base libbluetooth3 libmbim-glib4 libmbim-proxy
libmm-glib0 libndp0 libnm0 libqmi-glib5 libqmi-proxy libteamdctl0
modemmanager network-manager network-manager-openconnect
network-manager-openconnect-gnome ppp
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,553 kB of archives.
After this operation, 24.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Connecting

sudo openconnect -u username -b vpn.server.com

Check

ip a
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1386 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none 
    inet 13.13.13.11/32 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 2001:888:666:0000::1:1ae/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 2001:888:777:0000::1:1ae/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever
6: tun1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1386 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none 
    inet 13.13.13.12/32 scope global tun1
       valid_lft forever preferred_lft forever
    inet6 2001:888:666:0000::1:77/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 2001:888:777:0000::1:13/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

Disconnect

sudo kill -9 $(pgrep openconnect | awk '{print $1}')
  • https://www.infradead.org/openconnect/