VPN Client für Linux - openconnect

VPN Client for Linux - OpenConnect

OpenConnect securely tunnels all network connections to TUHH. An existing internet connection is required for setup.

Please follow this procedure:

Ubuntu: Enable Universe repositories (automatically enabled from Ubuntu 18.04 onward):

  •     Open System Settings
  •     System
  •     Applications & Updates
  •     Ubuntu Software
  •     Select “Community-maintained free and open-source software (universe)”
  •     Close
  •     Finally, when prompted, select “Reload” to update the cache

Install the following packages:

  • Ubuntu/Debian:

    • network-manager-openconnect

    • network-manager-openconnect-gnome

    • e.g. in the terminal with sudo apt-get install network-manager-openconnect network-manager-openconnect-gnome

  • openSUSE 13.2:

    • NetworkManager-openconnect-0.9.10.0-2.1.4.x86_64

    • openconnect-6.00-3.1.3.x86_64

  • Arch Linux:

    • networkmanager-openconnect

    • e.g. in the terminal with pacman -S networkmanager-openconnect

Open the Network Manager.

  • Add and select connection type ⇒ Multi-protocol VPN client (OpenConnect), not Cisco-compatible VPN client (vpnc)

  • Connection name: TUHH-VPN (arbitrary)

  • General:

    • Gateway: any1.rz.tuhh.de

    • T-TeleSec CA certificate: /etc/ssl/certs/GlobalRoot_Class_2.crt (⇒ Download)

  • Connect to TUHH-VPN

  • Enter your Computing Center username and password

  • For the console: sudo openconnect any1.rz.tuhh.de

Route only the TUHH network through the VPN

By doing this, you are locally overriding the routes at your own responsibility. This means, for example, that you will not appear to publishers as coming from TUHH, and you will not benefit from full encryption when using open Wi-Fi networks.

Edit the TUHH VPN settings and open the IPv4 tab. The option Use this connection only for resources on its network prevents the routing rule from being set that would tunnel all packets through the VPN. The custom route manually defines the TUHH network instead:

  • Address: 134.28.0.0
  • Netmask: 255.255.0.0
  • Gateway: 0.0.0.0
  • Metric: 5

The routes should look as follows when a new connection is established:

 

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     50     0        0 vpn0
134.28.0.0      0.0.0.0         255.255.0.0     U     5      0        0 vpn0
134.28.140.xxx  0.0.0.0         255.255.255.255 UH    50     0        0 vpn0

Questions and Support

Please make sure that your device is up-to-date, that you are not using more than one antivirus program, and that no “unblocker” software is installed.

Wi-Fi Support

The Wi-Fi Support is available during the ITSC opening hours. The opening hours for the ITSC in Building L Room 3.024 are available here. Appointments are not necessary.