This is how you setup VPN on your Linux device using OpenConnect (using Ubuntu 26.04 as an example):


1

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
2

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
3

Open the Ubuntu Settings and choose Network.
Now click the plus-sign next to VPN.

Step 3 Image
4

In the next window, choose Multi-protocol VPN Client (openconnect).

Step 4 Image
5

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.

Step 5 Image
6

The setup is now complete, all previous steps only need to be performed once.

The following steps describe everyday usage.

7

To establish the connection click the network icon in the upper right corner, choose VPN and click the switch next to Uni Bayreuth.

Step 7 Image
8

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.

Step 8 Image
9

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.

Step 9 Image
10

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.

Step 10 Image
Problems with these instructions? Let us help you! Contact us fast and easy through our contact form!