How to install (PPTP client) VPN in ubuntu system

Ubuntu Linux

Ubuntu Linux has a built-in, open source VPN client that is compatible with our Cisco VPN system, so you don’t need to download the Linux client on the VPN download page. These instructions are for the Breezy, Dapper, and Edgy versions of Ubuntu. Run ‘lsb_release -c‘ to check your version. If you are running Warty or Hoary, we recommend that you upgrade the operating system first, as these versions no longer receive security updates.

Install the VPN client

  1. In a terminal on your personally-owned laptop or computer, become root:
    sudo bash
  2. Install the vpnc package:
    aptitude install vpnc
    If this command installs the package, you can skip to Configure the VPN client.
  3. If aptitude says it couldn’t find the “vpnc” package, type:
    lsb_release -c
    The output indicates your Ubuntu version. At the top-left of the screen, select:
    System -> Administration -> Synaptic Package Manager
    then select:
    Settings -> RepositoriesFor Edgy machines, the window will look like this:

    screenshot with all repository selection boxes checked

    Make sure all the check marks are checked in the Ubuntu 6.10 tab, as shown.
    Hit ‘Close’ and ‘Reload’. Close the Synaptic Package Manager and (as root) rerun:

    aptitude install vpnc

    For Dapper machines, the window will look like this:

    screenshot with Ubuntu 6.06 LTS (Binary) - Community maintained Universe entry checked

    Make sure the ‘Ubuntu 6.06 LTS (Binary) – Community maintained (Universe)’ entry is checked in the
    Installation Media tab, as shown. Hit ‘Close’ and ‘Reload’. Close the Synaptic Package Manager and (as root) rerun:

    aptitude install vpnc

    For Breezy machines, click on ‘Add’. The window will look like this:

    screenshot of Breezy Badger repositories all four components are checked

    Under the ‘Ubuntu 5.10 “Breezy Badger”‘ repository, ensure all four components are checked, as shown.
    Click on Ok, Ok, and then Yes to reload the repository database.
    Close the Synaptic Package Manager and (as root) rerun:

    aptitude install vpnc

  4. if aptitude install vpnc worked well or vpnc installed then proceed to configuration part.

Configure the VPN client( your correct login should work as root. so if any issue then prefix “sudo” with any command.)

  1. While still as root, go to the vpnc config directory:
    cd /etc/vpnc   (If permission denied issue then change permission of vpnc folder- sudo chmod 777 vpnc)
  2. Create a custom profile:
    cp example.conf cs-vpn.conf
  3. Edit cs-vpn.conf (e.g. ‘pico cs-vpn.conf‘)
  4. At the top you’ll see something like this: IPSec gateway 192.0.2.32
    IPSec ID myGroup
    IPSec secret myGroupPWD
    Xauth username myUserName
    Set the following information:

    IPSec gateway <Host Server>
    IPSec ID <Vpn Username>
    IPSec secret <Vpn Password>
    Xauth username <your system username>

    Where <Host>, <Username>, and <Password> are taken from the bottom of the VPN download page
    and <your_System_username> is your normal system username. (Don’t include the brackets.)

  5. Save the file and exit. Logout from root within the terminal.

Run the VPN client

In order to connect to the VPN, just type:

sudo vpnc cs-vpn

Enter your CS password when prompted.
To disconnect, type:

sudo vpnc-disconnect

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: