top
Home
About me
Mathematics
Linux
Debian
SPS
LaTeX
Vim
Links
Email
bottom
Google

The Universal Operating System


VPN for Debian users in NUS

Notice for NUS VPN Users

I am no longer need to use NUS VPN.
The methods introduced here may not work if NUS network's security settings are changed.

Problems about installing NUS-VPN on Debian have been included in the NUS-VPN FAQ. Unfortunately, the patch provided by the referred website did not work on my laptop. I only managed to install NUS-VPN weeks after my first Debian installation, by compiling the right kernel module. However, later I found a much simpler alternative solution.

Solution 1 (recommended)

Thanks to Wu Yuansheng for posting the scripts on his website.

  1. $ apt-get install vpnc

  2. Download and edit this vpnc.conf. Change the "Xauth username" to your NUS-uid. Then copy this file to /etc/vpnc/default.conf

  3. Download the script inside-nus-linux. Remember where you saved the script (for example, your home directory).

  4. Go to the directory in which you saved the script (for example, your home directory). Connect to NUS vpn using the following command
    $ vpnc-connect inside-nus-linux
  5. and of course, you will be prompted to enter your NUS-uid password.

Solution 2 (compiling kernel header)

  1. Find out the kernel release,
      $ uname -r

    In my case, the output was
      2.4.18-bf2.4

  2. Add the following two lines in your /etc/apt/sources.list
    deb ftp://mirror.nus.edu.sg/pub/Debian stable main non-free contrib
    deb-src ftp://mirror.nus.edu.sg/pub/Debian stable main non-free contrib

  3. Install the right kernel header using
    apt-get install kernel-headers-{your kernel release}

    In this case, I should use
      $ apt-get update
      $ apt-get install kernel-headers-2.4.18-bf2.4

  4. Download NUS-VPN Client for Linux v.4.0.3.B-k9 from
    http://nus.edu.sg/vpn/download.html OR
    https://network.nus.edu.sg/starterkit/#VPN1

    Extract the file nus-vpnclient-linux-4.0.3.B-k9.tar.gz and run the script
      $ ./vpn_install

    When you are prompt to answer the following question,
      Directory containing linux kernel source code

    Type:
    /usr/src/kernel-headers-{your kernel release}

    In this case, I should type:
      /usr/src/kernel-headers-2.4.18-bf2.4

    The installation is now complete!

  5. Use the following to load the kernel module
      $ /etc/init.d/vpnclient_init start

    and use the following command to login:
      $ vpnclient connect inside-nus

back to Debian

Template provided by WEBalley