The required vpn client software is called: vpnc
To install execute the following command on your Ubuntu / Debian Linux. For others it might be different.
sudo apt-get install vpnc
To get access to your cisco IPSEC Tunnel enter your login credentials.
Create your config file e.g.: /etc/mysrv.vpnc
IPSec gateway gateway.to.use IPSec ID groupname IPSec secret passwordforgroup Xauth username myusername Xauth password mypassword
If you decide to include your password in the configuration file, then take the necessary precautions (e.g. `chmod 600 /etc/vpnc.conf`).
Unprivileged VPNC with Sudo
If you want to allow a user to connect to the network, but not use a startup script; I recommend to modify the sudoers file. Using the `visudo` editor. Now, just add this line to your sudoers file (using visudo):
username hostname = NOPASSWD:/usr/bin/vpnc,/usr/bin/vpnc-disconnect
Now, your specified user can start the vpn client with the following statement: `sudo vpnc`, and stop it with `sudo vpnc-disconnect`.
Using aliases can make your life even easier. The user can add the following lines to his `~/.profile` file to simplify commands requiring the school’s network.
alias vpnc="sudo vpnc" alias vpnc-disconnect="sudo vpnc-disconnect" alias vpnc-home="sudo vpnc /etc/mysrv.vpnc"