Difference between revisions of "VPN with Networkmanager"

From IT Service Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
[[File:Settings-network.png|thumb|x50|Settings menu in Ubuntu 18.04]]
 
[[File:Settings-network.png|thumb|x50|Settings menu in Ubuntu 18.04]]
 
[[File:Settings-network-vpn.png|thumb|x50|VPN Settings in Ubuntu 18.04]]  
 
[[File:Settings-network-vpn.png|thumb|x50|VPN Settings in Ubuntu 18.04]]  
[[File:Settings-network-vpn-ex.png|thumb|x50|Advanced VPN Settings in Ubuntu 18.04]]
 
  
 
To get VPN access you must set up a new VPN connection first. Click on the two arrow symbol (or the WiFi symbol - depending on which connection you are currently using) in the top right corner.  
 
To get VPN access you must set up a new VPN connection first. Click on the two arrow symbol (or the WiFi symbol - depending on which connection you are currently using) in the top right corner.  
Line 34: Line 33:
  
 
For the '''Gateway''' type:
 
For the '''Gateway''' type:
   141.2.247.
+
   vgw.itp.uni-frankfurt.de
 +
 
 
(old gateway: vpn.itp.uni-frankfurt.de)
 
(old gateway: vpn.itp.uni-frankfurt.de)
 
The DNS name will be mapped back if the old system retieres.
 
  
 
Under '''Authentication''' select <code>Password</code> as authentication type. Enter your user name and password and choose the CA Certificate 'private-ca-itp.crt'. It can be downloaded [http://th.physik.uni-frankfurt.de/~thw/vpn/private-ca-itp.crt here].
 
Under '''Authentication''' select <code>Password</code> as authentication type. Enter your user name and password and choose the CA Certificate 'private-ca-itp.crt'. It can be downloaded [http://th.physik.uni-frankfurt.de/~thw/vpn/private-ca-itp.crt here].
 
The following is only valid for the old setup. The new setup uses the default 'tun' device.
 
 
Click on <code>Advanced...</code> and activate in the <code>Genreal</code> tab the option 'Set virtual device type' and choose 'TAP'.
 
Click on <code>Ok</code> and in the other window <code>Apply</code> to save your changes.
 
  
 
Your new VPN connection will be listet in '''Network Connections'''.
 
Your new VPN connection will be listet in '''Network Connections'''.

Latest revision as of 10:26, 17 February 2020

This article shows you how to log into our VPN network without using the terminal. This method is by far more convenient and you also may find this helpful if you are not very familiar with command lines. We will use a VPN Plugin called network-manager.

Installation

Open up a terminal of your choice (Ctrl + T) and install OpenVPN Network Manager by typing the following line:

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

Please enter your password to confirm the installation.

After the successful installation NetworkManager must be restartet:

 sudo service network-manager restart

Again, confirm with your password if necessary.

Getting Started


Menu in the top right corner in Ubuntu 14.04
Settings menu in Ubuntu 18.04
VPN Settings in Ubuntu 18.04

To get VPN access you must set up a new VPN connection first. Click on the two arrow symbol (or the WiFi symbol - depending on which connection you are currently using) in the top right corner.

Now choose VPN Connections -> Configure VPN....

A new window will open up.

Click on Add to add a new connection.

You will be asked for the connection type.

Choose OpenVPN and click on Create....

If in the top right corner the option VPN Connections does not exist, the open the normal settings and add a new openvpn connection in Network.

Next you need to edit and configure your connection. Choose any connection name (e.g. itp_openvpn).

For the Gateway type:

 vgw.itp.uni-frankfurt.de

(old gateway: vpn.itp.uni-frankfurt.de)

Under Authentication select Password as authentication type. Enter your user name and password and choose the CA Certificate 'private-ca-itp.crt'. It can be downloaded here.

Your new VPN connection will be listet in Network Connections.

Using a VPN Connection

To access a VPN network just click on the arrow or WiFi symbol on the top right corner. Your configured connection should be found under VPN Connections.