Studentenes datatjeneste
VPN for Linux
Studentenes datatjeneste
This guide is for setting up VPN in Ubuntu, which is one of the most common Linux distributations. The guide is tested in Ubuntu 10.04 LTS and 11.10. Other distributions will still work if you use Network-Manager in order to connect.
In order to connet to VPN you may have to download kernel support. This will have to be done while connected to the internet.
The easiest way of installing kernel support is to use open a terminal and write:
sudo apt-get install pptp-linux network-manager-pptp
Or you may use Synaptic Package Manager and search for PPTP.
Push the network icon.
Choose VPN Connections and then Configure VPN
Press Add.
Choose PPTP, then Create
Give the connection a name, for instance 'UMB VPN', then enter student.vpn.umb.no as Gateway. Fill in username and zone 2 password.
Go to Advanced. Choose Use Point to Point Encryption.
Press OK and then Save
Now your VPN Connection is configured.
You may use the VPN connection by pushing the network icon, choose VPN connection and then choose the 'UMB VPN'. If you are asked for a password, please fill in you zone 2 password. When the network icon is showing with a pad lock you are connected.
For older versions of Ubuntu:In order to connet to VPN you will have to download kernel support. This will have to be done while connected to the internet.
The easiest way of installing kernel support is to use open a terminal and write:
"sudo apt-get install network-manager-pptp" without the ""
Alternative method:
Click on "Applications" and choose "Add/Remove..."
VPN Linux 6
Foto: Studentenes Datatjeneste
Choose "All available applications" from the menu that appears in the upright corner. Then type "vpn" in the search area. In the search results "PPTP VPN Connection Manager" will show. Mark this package and press the "Apply" button.
Screenshoot av Add/remove vpn i Ubuntu
Foto: Screenshot Ubuntu VPN
Reboot the computer.
VPN Linux 8
Foto: Studentenes Datatjeneste
Click on the network icon in the upright corner and choose "VPN Connections --> Configure VPN..."
Click "Add" and "create".
In the following window you select a name for the connection, for instance UMP-VPN. Then type
gateway:
student.vpn.umb.no , your
username and your
zone-2 password.
Press the advanced button. Go to Authentication and unmark everything except CHAP and MSCHAPv2.
Mark the Use Point to Point Encryption.
Click Ok og så Apply.
Now your VPN Connection is ready. Click the network icon, and select the proper connection under "VPN Connections". This may require that you retype your username and your zone2 password.
The following guide is old and exists primarily due to historical reasons.This guide is for Debian:
If you want to use VPN for Linux you need to install MPPE-support in the kernel. To get MPPE in debian do the following :
1. apt-get install gcc bin86 libc6-dev bzip2 kernel-package kernel-patch-mppe
2. apt-get install linux-source-2.x.x (where x.x* is the kernel number. If you don’t know the kernel number use the following command "uname -r")
3. cd /usr/src
4. tar xfj kernel-source-2.x.x.tar.bz2
5. cd kernel-source-2.x.x
6. make-kpkg clean
7. cp /boot/config-`uname --kernel-release` ./.config
8. cd /usr/src/kernel-source-2.x.x
9. make-kpkg \
--added-patches mppe \
--append-to-version -mppe \
--config oldconfig \
--initrd \
kernel_image
10. When you get the question CONFIG_PPP_MPPE, write "m" and press enter;
PPP MPPE compression (encryption) (PPP_MPPE) [N/m/?] (NEW) m
11. dpkg --install /usr/src/kernel-image-2.x.x-mppe_10.00.Custom_all.deb
12. Restart
Then you need to install pptp and client
13. Add the following line in /etc/apt/sources.list: deb http://quozl.netrek.org/pptp/pptpconfig ./
14. apt-get update
15. apt-get install pptp-linux pptpconfig
16. Start pptpclient with the commando "pptpconfig" as root.
17. Use the same information as in the pictures below. Server should be
student.vpn.umb.no for access to UMBs internal resources
VPN linux 1
Foto: Studentenes Datatjeneste
VPN Linux 2
Foto: Studentenes Datatjeneste
VPN linux 3
Foto: Studentenes Datatjeneste
VPN Linux 4
Foto: Studentenes Datatjeneste
VPN linux 5
Foto: Studentenes Datatjeneste
18. For authenticating to the wireless network, you have to add "refuse-chap" under pppd-options
19. Press "Add". Next time you login with pptpconfig it will automatically logon to UMBs VPN-service.
Oppdatert: 26.10.11
Utskriftsvennlig versjon
Del med en venn: