VPN unter Linux/en: Unterschied zwischen den Versionen

ZIM HilfeWiki - das Wiki
Zeile 122: Zeile 122:
 
<br clear=all>
 
<br clear=all>
  
===Disconnect VPN==
+
==Disconnect VPN==
 
[[Datei:Vpn-unter-linux-09.png|links|mini|ohne|350px|Disconnect VPN]]
 
[[Datei:Vpn-unter-linux-09.png|links|mini|ohne|350px|Disconnect VPN]]
 
<br>
 
<br>

Version vom 12. Mai 2023, 05:44 Uhr

Die deutsche Version finden Sie auf der Seite VPN unter Linux

VPN (Virtual Private Network) is needed if you want to use your computer from outside the university to access services that are only accessible within the university network. VPN guarantees secure access to the university network through other networks (dial-up via other providers, external company or university networks).

This guide is based on Ubuntu 22.04.2 LTS. Other distributions may work similarly. We cannot provide a guide for every distribution.

What needs to be done?[Bearbeiten | Quelltext bearbeiten]

  • Download personal network certificate.
  • Download configuration file:

  • Store network certificate and configuration file in a folder. Don't change the path later.
  • Rename the certificate.
  • Setup VPN

Step-by-step instructions[Bearbeiten | Quelltext bearbeiten]

Create network certificate[Bearbeiten | Quelltext bearbeiten]

Open the ServicePortal and login with your Uni-Account.


  • Click on Benutzerverwaltung and on Netzwerk-Einstellungen.


Datei:Eduroam-win10-1.png Click on Neues Zertifikat erstellen.


  • Insert an identifier like "Laptop <Manufacturer>".
  • Click on Neues Zertifikat zusenden.



  • You created a new network certificate.
  • Copy the Import Passwort or leave the tab open for later.
  • Download the network certificate via "Netzwerkzertifikat herunterladen".


VPN unter Linux konfigurieren[Bearbeiten | Quelltext bearbeiten]

Download the configuration file, select the VPN you want to connect to and click on Download.

Usually "Uni-VPN (Standard)" should work, but if you have problems with the connection, try "Uni-VPN-TCP".
Information: You can click here on "Download". This is not a screenshot ;-).

  • Access to online resources may require that you route all network traffic through the tunnel.
  • For access to network drives only, you do not need this option.

Create folder[Bearbeiten | Quelltext bearbeiten]

  • Create a new folder and place the network certificate and the configuration file there.
  • Choose the location carefully - you must not move or rename the folder later.
  • Rename the network certificate in Network_Certificate.p12


Folder for VPN


  • The contents of the folder should look like this.


Configure VPN[Bearbeiten | Quelltext bearbeiten]

Network


  • Click on the "Network symbol".
  • Click on "Settings".


Add VPN


  • Click in the VPN area on the + to add a connection.


Import from file


  • Choose "Import from file...".


Config file


  • Navigate to the folder that we created for the VPN.
  • Select the config file.
  • Click on "Open".


VPN Settings


  • The VPN settings have been imported from the config file.
  • Insert the "Import-Passwort" for the network certificate. (1)
  • Click on "Add". (2)


Connect VPN


  • Click on the switch to connect with the VPN.


Connect VPN[Bearbeiten | Quelltext bearbeiten]

Connect VPN


  • You can connect the VPN via the network menu.


Disconnect VPN[Bearbeiten | Quelltext bearbeiten]

Disconnect VPN


  • Disconnect the VPN via the network menu.


Check VPN[Bearbeiten | Quelltext bearbeiten]

You can check your VPN connection by visiting:

https://go.upb.de/ip
Beispiel: Bestehende Verbindung ins Uni-Netz.


Advanced[Bearbeiten | Quelltext bearbeiten]

  • OpenVPN 2.4 or newer is mandatory.
  • You can setup VPN via the network manager.
  • The certificates need to be unpacked first:
$ openssl pkcs12 -in Network_Certificate.p12 -out Network_Certificate_OPVPN.crt.pem -clcerts -nokeys
$ openssl pkcs12 -in Network_Certificate.p12 -out Network_Certificate_OPVPN.key.pem -nocerts -nodes

The network certificate and the config file need to be stored in a secure area of the user directory.

Under OpenSSL 3.0.2 maybe an additional parameter is necessary: -legacy
It my be necessary (e.g. Arch) to install the "openssl-1.1" package and run the prompts above with "openssl-1.1" instead of "openssl".

You need to install the required packages via terminal:

# sudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome


See also[Bearbeiten | Quelltext bearbeiten]


Bei Fragen oder Problemen wenden Sie sich bitte telefonisch oder per E-Mail an uns:

Tel. IT: +49 (5251) 60-5544 Tel. Medien: +49 (5251) 60-2821 E-Mail: zim@uni-paderborn.de

Das Notebook-Café ist die Benutzerberatung des ZIM - Sie finden uns in Raum I0.401

Wir sind zu folgenden Zeiten erreichbar:


Mo-Do Fr
Vor-Ort-Support 08:30 - 16:00 08:30 - 14:00
Telefonsupport 08:30 - 16:00 08:30 - 14:00


Das ZIM:Servicecenter Medien auf H1 hat aktuell zu folgenden Zeiten geöffnet:

Mo-Do Fr
08:00 - 16:00 08:00 - 14:30
Cookies helfen uns bei der Bereitstellung des ZIM HilfeWikis. Bei der Nutzung vom ZIM HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.