Ubuntu 10.4 VPNC Cisco Connection

  • Install vpnc Client
    sudo apt-get install vpnc
  • sudo create file in “/etc/vpnc/” called “*something*.conf” <- creating config file

edit file and place information


IPSec gateway domain.co.uk
IPSec ID GroupID
IPSec secret GroupPassword
Xauth username VPNUsername
Xauth password VPNPassword

  • sudo vpnc-connect *something* <- e.g if file was work.conf then sudo vpnc-connect work
  • sudo vpnc-disconnect <- Disconnect from VPN

Not needed, but SCRIPT login/logout:

  • create file on desktop called “VPN.sh
  • place below script in file and amend connection string.

#!/bin/bash
echo “You Sure you want to connect to
VPN? Press ENTER”
read var_1
sudo vpnc-connect *something*
echo -n “Please ENTER again to disconnect”
read var_2
clear
sudo vpnc-disconnect
echo “VPN has been disconnected”
read var_3

  • Run terminal & navigate to location of VPN.sh
  • Type “chmod 777 VPN.sh” <- Make script executable
  • click “VPN.sh” from desktop and select run in terminal

Links I used when doing this.

  • http://www.ax697.org/writing-a-basic-ubuntu-script-200786.html
  • http://www.longren.org/2007/05/17/how-to-cisco-vpn-client-on-ubuntu-704-feisty-fawn/
  • http://www.gentoo.org/doc/en/vpnc-howto.xml
  • http://ubuntuforums.org/showthread.php?t=16434
Print Friendly
  1. No comments yet.

  1. No trackbacks yet.