Thursday, June 27, 2013

How to connect to uOttawa network through vpnc on Ubuntu Linux!

Basic Setup

If you find is difficult to install standard university provided vpn software, you can use the vpn client that comes with Ubuntu, vpnc.  All you need is the information to create a configuration file. University provides a configuration file in a different format. We need to conver it in right format, copy at right place, and just run it.

Following are the steps to connect your Ubuntu linux machine to university vpn:
  1. Download the empl.pcf file from the following link: 
  2. Open the terminal and go to the folder where you downloaded empl.pcf and run the following command:
    • pcf2vpnc empl.pcf  empl.conf
  3. Copy the empl.conf file to /etc/vpnc/
    • sudo cp empl.conf>/etc/vpnc/
  4. Run vpnc with empl as argument
    • sudo vpnc empl
  5. Enter username (for employees its "E" followed by your employee number without the leading '100',e.g. E123456) and password (infoweb password).
  6. You can also hard code username and password in empl.conf file by uncommenting 
    • Xauth username
    • Xauth password
  7. To disconnect, run following command
    • sudo vpnc-disconnect

If some of the commands do not work on your computer, you may have to install new software. Find more information here

Advanced

Same procedure should work to connect to any private network. You just need the following information from the private network owner: 

IPSec gateway
IPSec ID
IPSec secret
IKE Authmode
Xauth username
Xauth password

Obtain this information and store in myvpn.conf; and follow the instructions above to run the vpn client.

No comments:

Post a Comment