VPN clients

From UA Wiki

Jump to: navigation, search
VPN connection diagram.

You would like to connect to the UA network from your home or abroad? Then the UA's VPN service is for you.

Establishing a VPN connection to the campus will redirect all network traffic of your computer, whereever it may be, through to the unversity network. You will get an IP address of the UA domain, and in general, your computer will act as if it was physically attached to the campus network.

This can be useful for getting access to restricted services, such as SMTP access for sending mails with your UA account, accessing servers, downloading sofware (e.g., Microsoft Office) and so on.

Contents

Browser

Browser-only access

Vpnua-browser.png

To consult such databases and journals of the library you can use any browser to access:

https://vpnua.ua.ac.be

Use your UA credentials and make sure to choose "GROUP" to be "1-WebProxy".


Full VPN access

Vpnua-browser2.png

It is also possible to get full VPN via Cisco's browser application AnyConnect. Compared to the methods described in the other sections below, this has the advantage that it will work virtually anywhere as the requirements on the network are minimal (only port 443 needs to be open).

To use it, login at

https://vpnua.ua.ac.be

with "GROUP" set to "2-AnyConnectClient". This will start the installer (see screen shot on the right). Note that your system has to have Java support in the browser for this to work.

There are problems reported with 64bit Linuxes, see for example

This capability is described here on the UA sites as well (Dutch).


Microsoft Windows

Installation

First, get the installation file as linked on [1] (file name such as vpnclient-win-msi-5.0.05.0290-k9.exe or newer). Execute this installation file.

Language choice
Installation wizard
License agreement
Destination folder
Installation start
Installation of the Cisco VPN Client under Microsoft Windows.


Configuration

The client needs to be configured for access to the UA net. The recommended way to do so is the following.

  1. Download the configuration file (login required).
  2. Open the client, click on Import, and provide it with the just downloaded file.

A new entry in the list will be created for you.

No connections configured
UA connection added

Although more tedious, the configuration can also be added manually with the data as given in the following screen shots

Configuration of the Cisco VPN Client

Usage

As soon as the configuration is done, you can actually start using it.

  1. Select the connection VPNUA-NEW (as configured in the previous step) and click on connect.
  2. You will be promted for you ua user name and ua password.
  3. Success! A lock will appear next to VPNUA-NEW to indicate a successful connection.
Password prompt
Success!

You can also check at popular IP address checkers (such as www.whatismyip.com) to see if your IP is now within the UA range (143.*).

Mac OS X

10.4 (Tiger)

Upgrade to 10.5 (Leopard) or 10.6 (Snow Leopard) recommended.

10.5 (Leopard)

The standard method described on UA-InfoCenter-VPN works, but the Cisco VPNClient is out of date.

10.6 (Snow Leopard)

The standard method described on UA-InfoCenter-VPN should work, but the Cisco VPNClient is out of date and quite probably not compatible with Snow Leopard. Hence it's much easier and recommended to use OS X's built-in VPN functionality:

  1. Go to Network in System Preferences and add a network interface by clicking on the + button. Choose VPN as interface, Cisco IPSec as type and provide it with some suitable service name.
  2. After creating the VPN interface provide the address of the new UA VPN server: vpnua.ua.ac.be and your UA user name.
  3. In Authentication Settings... fill in the credentials you got out of the UA config file (login required).
    1. Fill in the Shared Secret field from the GroupPwd field in the PCF file. In the case that the PCF file only provides an encoded version of the group password (enc_GroupPwd) you may decode it using e.g. [2]
    2. Enter "UAntwerpen" under Group Name
  4. Clicking Connect should greet you with an authentification window to provide your UA user name and password. You should be able to connect now.
Add VPN interface
Add VPN interface
Server address
Server address
Authentication settings
Authentication settings
Provide username/password
Provide username/password
Connected!
Connected!
VPN configuration with built-in Cisco IPSec VPN client on Mac OS X 10.6 Snow Leopard

Linux

Unfortunately, again, the UA doesn't provide any official Linux support for this. However, the necessary software is provided for download and with the help of the following instructions, you will manage to successfully build a VPN connection.

There are several possibilities to connect to the UA's internal network from outside the university.

Classically, one would have used the proprietary Cisco client, but this has been less than optimal as Cisco does not cooperate with Linux as good as it could be. Quite luckily, the new UA VPN server permits connections with the ever more popular vpnc client, which is also interfacting though the ever more popular NetworkManager.

All methods are described here, and it is highly recommended for any UA Linux user to first check out the NetworkManager/vpnc way.

NetworkManager

nm-applet VPN connection list.
nm-applet configuration. These are the exact values as given by VPNUA-NEW.pcf.

With the help of NetworkManager, configuring the VPN connection to the UA is straightforward. It is demonstrated here with Gnome's nm-applet, the NetworkManager front-end.

  1. Fill in the connection data. To this end, right-click on the nm-applet logo, "Edit connections...", and choose VPN. You have two possibilities now, the first one being for the lazy.
  2. Choose "Import" and feed the interface with the file you got here (UA user name and password required). All the data should be filled in automatically.

vpnc

Since April 2009, the new VPN server is running. As stated on the UAnet site, the service is still in BETA phase, but it appears to be pretty stable already.

The big advantage for Linux users is that the proprietary Cisco client it no longer required to connect to the internal UA net; the free and open source vpnc is enough.

The installation steps are:

Code: vpnc --version
vpnc version 0.5.3
Copyright (C) 2002-2006 Geoffrey Keating, Maurice Massar, others
vpnc comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of vpnc under the terms of the GNU General
Public License.  For more information about these matters, see the files
named COPYING.
Built with openssl (certificate) support. Be aware of the
license implications.

Supported DH-Groups: nopfs dh1 dh2 dh5
Supported Hash-Methods: md5 sha1
Supported Encryptions: null des 3des aes128 aes192 aes256
Supported Auth-Methods: psk psk+xauth hybrid(rsa)
and you are ready to go.

The format of the configuration file is Microsoft's PCF; to get a vpnc compliant format, apply

pcf2vpnc PNUA-NEW.pcf > ua.conf

If the pcf2vpnc command is not available, you can install it using the following steps:

curl -O http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc
chmod +x pcf2vpnc

Note that you can optionally insert your UA username and password to avoid the need of typing it in each time you want to connect.

vpnc ua

Give your UA username and password, and you should have a connection with the UA already. You are set if ifconfig tells you

Code: ifconfig -a
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:143.169.136.28  P-t-P:143.169.136.28  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1412  Metric:1
          RX packets:9610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:9370697 (8.9 MiB)  TX bytes:762466 (744.5 KiB)

All traffic will go through the VPN connection now.

When you would like to terminate the connection, type

vpnc-disconnect

Cisco VPN

Cisco.gif


Before we start, make sure you fetched the following files from the UA net:

Note: If you're looking for Cisco's latest version 4.8.02.0030-k9 of the client which brings several improvements for the latest Linux kernels, you won't find it at the UA (yet?). The ICT has been made aware of that several times since August 2008, but no reaction so far.

You can look for newer cisco versions at this unofficial cisco-patches site. The version 4.8.01.0640 with 2.6.24+ and 64-bit patch worked for me on 2.6.27 on 64-bit. If you are running ubuntu and have an error message about "CFLAGS" change all CFLAGS in the Makefile to EXTRA_CFLAGS.

All these files are necessary to get VPN running. The profile needs to be copied to

/etc/opt/cisco-vpnclient/Profiles/

and it is advisable, though not strictly necessary, to put the certificates into /etc/opt/cisco-vpnclient/Certificates/. It is from now on assumed that the files are found there.

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686
[...]

Getting the Cisco Client running on a 64bit system is not exactly straightforward. That's because the kernel module is closed-source and we depend on Cisco's goodwill to keep it up-to-date with the latest kernel, which apparently is not the case right now. If you experience problems, please refer to [3] or [4] or [5].

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -R -op import
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686

[ Importing Certificate ]

    Enter filename: /etc/opt/cisco-vpnclient/Certificates/uanetroot.der
    Success: certificate imported from path: /etc/opt/cisco-vpnclient/Certificates/uanetroot.der

If this was successful, you can look at your imported certificate by

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -R -op list
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686


      Cert #          Common Name
      -------         ------------

      0               UANET Standalone Root CA

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -U -op import
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686

[ Importing Certificate ]

    Enter filename: /etc/opt/cisco-vpnclient/Certificates/vpnclient_pwd_UANET.pfx
    Import Password: UANET

Enter a password to protect your certificate.
Choose a password that you can remember.

    Password: <your chosen password>
    Confirm Password: <your chosen password>
    Success: certificate imported from path: /etc/opt/cisco-vpnclient/Certificates/vpnclient_pwd_UANET.pfx

If you want to use VPN later on, you'll have to type in <your chosen password> each time you connect using this certificate. Some people find it hence more comfortable to leave <your chosen password> empty. Check the result with

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -U -op list
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686


      Cert #          Common Name
      -------         ------------

      0               vpnclient2.ua.ac.be

This step is the most error prone. See below for the most frequently done mistakes.

/etc/opt/cisco-vpnclient/Profiles/

You source choose its basename, let us suppose we take

Code: ls /etc/opt/cisco-vpnclient/Profiles/
sample.pcf  ua.pcf
Note: IMPORTANT! Make sure that you modify the file according to use the new VPN service which took action in March 2008.
File: ua.pcf
[...]
CertName=vpnclient2.ua.ac.be
[...]
Note: TIP: Add your username to the pcf-file.
File: ua.pcf
[...]
Username=<your ua username>
[...]

This way, you don't have to type it in (like in the next stept) each time you connect to the UA.

To use your newly set-up connection, type

Code: vpnclient connect ua
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686
Config file directory: /etc/opt/cisco-vpnclient

Enter Certificate password: <your chosen password>
Initializing the VPN connection.
Contacting the gateway at 143.169.249.1
User Authentication for ua...

Enter Username and Password.

Username []: <your ua username>
Password []: <your ua password>
Authenticating user.
User Authentication for ua...

Enter Username and Password.

Username [<your_ua_username>]:
Password []:
Authenticating user.
Negotiating security policies.
Securing communication channel.

Your VPN connection is secure.

VPN tunnel information.
Client address: 143.169.195.127
Server address: 143.169.249.1
Encryption: 256-bit AES
Authentication: HMAC-SHA
IP Compression: None
NAT passthrough is active on port UDP 4500
Local LAN Access is disabled


Troubleshooting

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -U -op import
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686

[ Importing Certificate ]

    Enter filename: <your path>
    Import Password:

Enter a password to protect your certificate.
Choose a password that you can remember.

    Password:
    Confirm Password:
    error: unable to import certificate from path: <your path>

be sure that you are not alone. This is the most common problem when installing the Cisco VPN client, and there are many possible remedies.

Code: /opt/cisco-vpnclient/bin/cisco_cert_mgr -U -op import
Cisco Systems VPN Client Version 4.8.01 (0640)
Copyright (C) 1998-2007 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.26-gentoo #1 PREEMPT Mon Jul 21 13:52:27 CEST 2008 i686

[ Importing Certificate ]

    Enter filename: file_that_does_not_exist
    error: the following path does not exist

External links

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox