Difference between revisions of "VPN"

From FachschaftSprachwissenschaft
Jump to: navigation, search
(How to do it on the command line)
(How to do it on the command line)
Line 91: Line 91:
 
IPSec ID belwue<br/>
 
IPSec ID belwue<br/>
 
IPSec secret WLANdle<br/>
 
IPSec secret WLANdle<br/>
Xauth *******</code>
+
Xauth *******</code><br/>
 
File '''wlan.conf'''
 
File '''wlan.conf'''
  
Line 102: Line 102:
 
IPSec ID extern<br/>
 
IPSec ID extern<br/>
 
IPSec secret xtern03<br/>
 
IPSec secret xtern03<br/>
Xauth username *******</code>
+
Xauth username *******</code><br/>
 
File '''extern.conf'''
 
File '''extern.conf'''
  

Revision as of 19:06, 18 November 2008

How to use the wireless internet inside the University?

First of all you need to get an account from ZDV, which every new student gets automatically after enrolment. Once you have an account follow the procedure for your favourite operating system.

Ubuntu 8.10 (for GNOME users)

Install VPN Software

Make sure that you have the following package installed:

network-manager-vpnc

Connect to the wireless network

Left-click on the Network Manager icon and choose BELWUE from the list of available wireless networks

Vpn config0.png

Configure VPN

Left-click on the Network Manager icon, go to VPN Connections -> Configure VPN...

Vpn config1.png

It should open the VPN tab of the Network Connections preferences. In this window press the Add button

Vpn config2.png

Which will prompt for a VPN Connection Type, where you should choose Cisco Compatible VPN(vpnc) and press Create...

Vpn config3.png

In the next window you should fill the connection settings as following:

Connection Name: anything you like

Gateway: vpn.uni-tuebingen.de.

Group Name: belwue

User Password: your password from ZDV

Group Password: WLANdle

User Name: your user name from ZDV

Leave the other fields at their default values. Press OK to save

Vpn config4.png

Connect to VPN

Left-click on the Network Manager icon, go to VPN Connections and click on the name of the newly created VPN connection

Vpn config5.png

Notice that the icon of the Network Manager changes once you are connected to VPN

Vpn config6.png

Congratulations! Now you can use the Internet

Note: Next time you want to use the Internet inside the university just repeat the steps 2 and 4.

How to connect to the VPN from home?

Connecting from home requires an existing internet connection (i.e. DSL or cable) that you use to connect to the VPN gateway. Otherwise, the procedure is very similar: Follow the steps above (except for the wireless connection in section 1.1.2) and for VPN configuration, enter:

Connection Name: anything you like (but different from above)

Gateway: vpn.uni-tuebingen.de.

Group Name: extern

User Password: your password from ZDV

Group Password: xtern03

User Name: your user name from ZDV

How to do it on the command line

If the solution above fails, things may still work out by using the vpnc command line program, provided by the package vpnc in Linux distributions like Ubuntu. The settings are made by putting configuration files into an appropriate directory (/etc/vpnc on Ubuntu). This needs superuser rights!

For WiFi access (also works from home):

Interface name vpn
IKE DH Group dh2
Perfect Forward Secrecy nopfs
IPSec gateway vpn-i.uni-tuebingen.de
IPSec ID belwue
IPSec secret WLANdle
Xauth *******

File wlan.conf

For home access (also works for WiFi):

Interface name vpn
IKE DH Group dh2
Perfect Forward Secrecy nopfs
IPSec gateway vpn-x.uni-tuebingen.de
IPSec ID extern
IPSec secret xtern03
Xauth username *******

File extern.conf

Depending on your internet service provider, the configuration of your home network, and the position of Jupiter relative to the constellation of Orion, you might need to add the following line to connect successfully:

NAT Traversal Mode cisco-udp

Don't forget to fill in your ZDV user name for the asterisks.

To connect, issue the following (again, sudo is specific to Ubuntu – if you use another distribution, you probably know how to get superuser rights):

sudo vpnc wlan

viz.

sudo vpnc extern

To disconnect:

sudo vpnc-disconnect