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.

echo “You Sure you want to connect to
read var_1
sudo vpnc-connect *something*
echo -n “Please ENTER again to disconnect”
read var_2
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, PDF & Email
  1. No comments yet.

  1. No trackbacks yet.

Warning: Use of undefined constant cs_print_smilies - assumed 'cs_print_smilies' (this will throw an Error in a future version of PHP) in D:\Domains\ibuddy.info\wwwroot\blog\wp-content\themes\monochrome\comments.php on line 185