InstallVPNC

  1. vpnc - client for cisco3000 VPN Concentrator
    1. Installing vpnc with menu shortcuts
    2. Auto-launching VPNC on specific networks

vpnc - client for cisco3000 VPN Concentrator

Note: For IT 2006 you should have a look at this page: http://scriptkiller.de/cisco_vpnc_with_nokia_770.php, there you can also find proper DEB-packages and a GUI for vpnc!

This requires root privileges (see HowDoiBecomeRoot)

1 . Get the application installer package from http://penguin-breeder.org/maemo/download/

2 . Add /var/lib/install/usr/lib to ld.so.conf (or use "LD_LIBRARY_PATH=/var/lib/install/usr/lib" before vpn-connect)

#!plain
/ # echo /var/lib/install/usr/lib >> /etc/ld.so.conf
/ # ldconfig

3 . Create a config in /var/lib/install/etc/vpnc

4 . Start the vpnclient

#!plain
/ # /var/lib/install/usr/sbin/vpnc-connect yourconfig

It might be a good idea to add /var/lib/install/usr/bin and /var/lib/install/usr/sbin to your path...

See also KernelRequirements for reasons why there aren't much other ipsec clients around.

Installing vpnc with menu shortcuts

1 . you also need the vim editor for visudo: see the app catalog

2 . in folder: /var/lib/install/usr/bin/

create: /var/lib/install/usr/bin/vpn-connect.sh (replace YOUR_PROFILE_NAME)

#!plain
#!/bin/sh
if [ xuser = x`whoami` ];
then
        sudo /var/lib/install/usr/bin/vpn-connect.sh
else
        LD_LIBRARY_PATH=/var/lib/install/usr/lib /var/lib/install/usr/sbin/vpnc-connect YOUR_PROFILE_NAME
fi
exit

create: /var/lib/install/usr/bin/vpn-disconnect.sh

#!plain
#!/bin/sh
if [ xuser = x`whoami` ];
then
        sudo /var/lib/install/usr/bin/vpn-disconnect.sh
else
        LD_LIBRARY_PATH=/var/lib/install/usr/lib /var/lib/install/usr/sbin/vpnc-disconnect
fi
exit

3 . in folder: /var/lib/install/etc/others-menu/extra_applications/

create: /var/lib/install/etc/others-menu/extra_applications/vpn-connect.desktop

#!plain
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=VPN - Connect
Comment=VPNC-Connect script
Exec=/var/lib/install/usr/bin/vpn-connect.sh
Terminal=false
Type=Application

create: /var/lib/install/etc/others-menu/extra_applications/vpn-disconnect.desktop

#!plain
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=VPN - Disconnect
Comment=VPNC-Disconnect script
Exec=/var/lib/install/usr/bin/vpn-disconnect.sh
Terminal=false
Type=Application

4 . edit your vpnc config in: /var/lib/install/etc/vpnc/

Add the password to login automatically. (get the settings from your network administrator)

create: /var/lib/install/etc/vpnc/YOUR_PROFILE_NAME.conf

#!plain
IPSec gateway _vpngateway.domain.org_
IPSec ID _GroupID_
IPSec secret _GroupPassword_
Xauth username _Username_
Xauth password _Userpassword_

5 . for safety if you add the password:

#!plain
/ # chown root:root /var/lib/install/etc/vpnc/YOUR_PROFILE_NAME.conf
/ # chmod o-rwx /var/lib/install/etc/vpnc/YOUR_PROFILE_NAME.conf

6 . do visudo to allow normal user to connect:

#!plain
/ # LD_LIBRARY_PATH=/var/lib/install/usr/lib  EDITOR=/var/lib/install/usr/bin/vim visudo

add:

user ALL = NOPASSWD: /var/lib/install/usr/bin/vpn-connect.sh
user ALL = NOPASSWD: /var/lib/install/usr/bin/vpn-disconnect.sh

Auto-launching VPNC on specific networks

http://stefans.datenbruch.de/nokia770/#vpn