Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:services:network_services:vpn:linux [2020/03/25 11:00] fketten article name |
en:services:network_services:vpn:linux [2020/06/26 09:22] (current) fketten |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== OpenConnect (Linux) ====== | ====== OpenConnect (Linux) ====== | ||
- | On Linux systems either the Cisco AnyConnect-Client or the free vpnc can be used to connect to the VPN. | + | On Linux systems, both the Cisco AnyConnect-Client and its open implementation **OpenConnect** can be used to connect to the VPN. |
- | Since vpnc can be integrated in the NetworkManager and can automatically connect to the VPN if it is connected to a certain ssid e.g. GuestOnCampus it is more convenient to use vpnc if NetworkManager is used anyway. | + | We encourage you to use OpenConnect. |
<WRAP center round important 100%> | <WRAP center round important 100%> | ||
Line 7: | Line 7: | ||
</WRAP> | </WRAP> | ||
- | ===== Cisco AnyConnect-Client ===== | + | ===== Installation and configuration of OpenConnect (with NetworkManager) ===== |
- | To use the Cisco AnyConnect-Client on Linux you first have to install some dependencies. | + | This tutorial has been designed and tested for Ubuntu 18.04 systems. For other distributions, the necessary packages and the user interface may differ. |
- | On Debian based distributions this can be done with the following command. | + | You can find screenshots for almost any step by clicking on "(screenshot)". |
- | sudo apt-get install zlib1g zlibc libgtk2.0-0 libgdk3.0-cil libpango-1.0-0 libpangox-1.0-0 | + | |
- | After installing these dependencies visit [[https://vpn.gwdg.de|vpn.gwdg.de]] and follow the installation process as described on the | + | |
- | [[en:services:network_services:vpn:anyconnect|Cisco AnyConnect]] page. | + | |
- | ===== NetworkManager with openconnect ===== | ||
- | This tutorial is designed and tested for Ubuntu 18.04 systems. For other distributions the necessary packages and the user interface may differ. | ||
- | To install the necessary packages run the following command. | + | 1. To install the necessary packages, run the following command and accept all the dependencies. ++ (screenshot) | |
+ | {{ :de:services:network_services:vpn:01-ubuntu.png | }} \\ | ||
+ | {{ :de:services:network_services:vpn:21-ubuntu.png | }} ++ | ||
<code> | <code> | ||
- | sudo apt-get install openconnect network-manager-openconnect network-manager-openconnect-gnome | + | sudo apt-get install network-manager-openconnect-gnome |
</code>\\ | </code>\\ | ||
+ | |||
+ | Alternatively, you can search and install //network-manager-openconnect-gnome// via the Ubuntu Software Center. | ||
+ | |||
Afterwards log out of your current session and log back in, to activate the newly installed plugin. | Afterwards log out of your current session and log back in, to activate the newly installed plugin. | ||
- | To configure the VPN-Connection open the settings menu and navigate to the network section. | ||
- | In the Network Section click on the plus icon next to the **VPN** section title. | ||
- | {{ :en:services:network_services:vpn:vpn-linux01.png?700 | }} | + | 2. To configure the VPN connection, open your //system settings// and navigate towards //network settings//. ++ (screenshot) | |
+ | {{ :de:services:network_services:vpn:06-ubuntu.png | }} \\ | ||
+ | {{ :de:services:network_services:vpn:22-ubuntu.png | }} ++ | ||
- | In the next menu select the option **Cisco AnyConnect Compatible VPN (openconnect)**. | + | 3. Click on the **PLUS** symbol to the right of "VPN". ++ (screenshot) | |
- | In the following menu enter a title for the vpn connection and enter **vpn.gwdg.de** in the **gateway** field. | + | {{ :de:services:network_services:vpn:08-ubuntu.png | }} ++ |
- | Leave all other fields blank and click on **Add**. | + | |
- | + | ||
- | <WRAP center round important 60%> | + | |
- | Due to the current load in VPN, two more servers were set up in addition to vpn.gwdg.de: ** vpn-b.gwdg.de ** and ** vpn-c.gwdg.de **. We recommend using one of them. | + | |
- | </WRAP> | + | |
- | {{ :en:services:network_services:vpn:vpn-linux02.png?500 | }} | + | 4. Choose the option **Cisco AnyConnect compatible VPN connection (openconnect)**. ++ (screenshot) | |
+ | {{ :de:services:network_services:vpn:23-ubuntu.png | }} ++ | ||
- | Now, that the connection is configured, you can activate the connection by clicking on the switch next to the | + | 5. Choose any name for your VPN and insert **vpn.gwdg.de** (or an alternative gateway such as vpn-b.gwdg.de) into the field **Gateway**. Then click **Add**. ++ (screenshot) | |
- | newly configured connection. | + | {{ :en:services:network_services:vpn:vpn-linux02.png | }} ++ |
- | Afterwards the following login prompt will open: | + | 6. Activate the VPN by clicking the toggle switch inside your //network settings//. ++ (screenshot) | |
+ | {{ :de:services:network_services:vpn:25-ubuntu.png | }} ++ | ||
- | {{ :en:services:network_services:vpn:vpn-linux03.png?400 | }} | + | Alternatively, you can also click on your network connection in the top right corner and activate the VPN from there. ++ | |
+ | {{ :de:services:network_services:vpn:16-ubuntu.png | }} ++ | ||
- | Enter your username and password as described in the [[en:services:network_services:vpn:anyconnect|Cisco AnyConnect]] article and click on login. | + | 7. Insert your login credentials. This is typically your email address with the corresponding password. Then click on \\Login\\ ++ (screenshot) | |
- | Afterwards your can activate and deactivate the VPN connection via the NetworkManager menu in the top right corner of the screen. | + | {{ :de:services:network_services:vpn:18-ubuntu.png | }} ++ |
- | [[http://example.com|External Link]]===== NetworkManager with vpnc ===== | + | You are now connected with the VPN. You can end the VPN session by again toggling the switch button or by clicking //disconnect// in the network settings in the right top corner of your screen. |
- | This tutorial is designed and tested for Ubuntu 18.04 systems. For other Linux distributions the package names and | + | |
- | layouts of the user interface may differ. | + | |
- | The vpnc plugin for NetworkManager and the graphical frontend are contained in the packages | ||
- | //network-manager-vpnc// and //network-manager-vpnc-gnome//. To install those packages on | ||
- | a Ubuntu 18.04 system run the following command in the terminal: | ||
+ | ===== Cisco AnyConnect-Client ===== | ||
+ | To use the Cisco AnyConnect-Client on Linux, you first have to install some dependencies. | ||
+ | On Debian based distributions such as ubuntu, this can be done with the following command. | ||
<code> | <code> | ||
- | sudo apt-get install network-manager-vpnc network-manager-vpnc-gnome | + | sudo apt-get install zlib1g zlibc libgtk2.0-0 libgdk3.0-cil libpango-1.0-0 libpangox-1.0-0 |
- | </code>\\ | + | </code> |
- | + | After installing these dependencies visit [[https://vpn.gwdg.de|vpn.gwdg.de]] and follow the installation process as described by [[en:services:network_services:vpn:anyconnect|Cisco AnyConnect]]. | |
- | After installing the plugin klick on the network manager icon in the tray and select //VPN Connections// and then | + | |
- | //Configure VPN//. | + | |
- | Now click on the //Add// button and then select //Cisco Compatible VPN (vpnc)// and click on create. | + | |
- | + | ||
- | Now enter the group name, group password and the Gateway as seen below. | + | |
- | The name of the connection can be chosen freely. | + | |
- | As username and password enter your gwdg username as described below and the | + | |
- | corresponding password. | + | |
- | <WRAP center round box 100%> | + | |
- | + | ||
- | | <user.name>@|**stud.uni-goettingen.de** |students | | + | |
- | | <user>@|**gwdg.de** | GWDG employees | | + | |
- | | <user>@|**uni-goettingen.de** |university employees | | + | |
- | + | ||
- | </WRAP> | + | |
- | + | ||
- | <WRAP center round important 60%> | + | |
- | This method is not compatible with the additional servers vpn-b.gwdg.de and vpn-c.gwdg.de . | + | |
- | </WRAP> | + | |
- | After entering your username and password click on save. | ||
- | {{ :en:services:network_services:vpn:vpnc-config-linux.png |}} | ||
- | Now you can connect to the VPN by clicking on the NetworkManager icon, selecting //VPN Connections// and then clicking on the | ||
- | name of the configuration you just created. |