This is how you setup VPN on your Linux device using OpenConnect (using Ubuntu 26.04 as an example):
Install the package network-manager-openconnect-gnome via the graphical package management or with the command
sudo apt update && sudo apt install network-manager-openconnect-gnome
Download the needed server certificate.
With this command you can download it to the folder /opt:
sudo wget https://helpdesk.its.uni-bayreuth.de/vpncrt -O /opt/HARICA_TLS_RSA_Root_CA_2021.pem
The certificate file has to stay where it was during the vpn setup! It will not be "imported".
Open the Ubuntu Settings and choose Network.
Now click the plus-sign next to VPN.
In the next window, choose Multi-protocol VPN Client (openconnect).
Open the Identity Tab and insert 4 settings:
Name: user definable (e.g. Uni Bayreuth)
VPN Protocol: Cisco AnyConnect or openconnect
Gateway: vpn-server.uni-bayreuth.de
CA Certificate: (The certificate file downloaded in step 2)
When you are done, click Add.
The setup is now complete, all previous steps only need to be performed once.
The following steps describe everyday usage.
To establish the connection click the network icon in the upper right corner, choose VPN and click the switch next to Uni Bayreuth.
In the next step, you have to select a VPN profile or “group.” Three options are available:
-
Outside-Split
For connections from outside the University of Bayreuth. With this profile, only connections to destinations within the university network are routed through the VPN tunnel. It is suitable, for example, for employees working from home who need access to online time tracking, network drives, network printers, and other internal services. -
Outside-Full
For connections from outside the University of Bayreuth. With this profile, all network traffic is routed through the university. It is suitable, for example, for researching in external databases from home. Connections may be a bit slower, so use this profile only when needed. -
Campus
Use this profile to connect to the internet at wired (Ethernet) connections in seminar rooms, lecture halls, or public workstations in the library.
If you’re not sure whether Outside-Split or Outside-Full is the right choice, start with Outside-Split. If you can’t access certain resources with that, switch to Outside-Full.
Now click Connect. Then select the Group that suits your needs (see the previous step), enter your Uni username and the associated password. Click on Login.
If you want to disconnect, click the network icon in the top right again, then on the arrow to the right of VPN, and finally on the switch next to Uni Bayreuth.