PDA

View Full Version : [ubuntu] vpnc error "No route to host"



dwesner
November 25th, 2009, 06:23 PM
I've just installed vpnc on Ubuntu 9.04 and when attempting to do a vpnc-connect, I can't get past the "No route to host" step. I have thus far gone through the following steps to get to where I am now.

Through Snyaptic Package Manager, installed network-manager-vpnc package.

Made vpnc SSL capable by performing the following steps manually:

Built the deb Packages: apt-get install fakeroot debhelper dpatch
Compiled vpnc with SSL Support: apt-get install libgcrypt11-dev openssl libssl-dev
Downloaded vpnc source: apt-get source vpnc
Uncommented the following two lines in the vpnc-0.5.3/Makefile:


# OPENSSL_GPL_VIOLATION = -DOPENSSL_GPL_VIOLATION
# OPENSSLLIBS = -lcrypto

Built the Package: dpkg-buildpackage –rfakeroot
Installed the Package: dpkg –i vpnc_0.5.3-1_i386.deb

Downloaded the pcf2vpnc perl script:

wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc
chmod +x pcf2vpnc
Downloaded and Installed the cicsco-decrypt.c program, which is required by pcf2vpnc:

http://www.unix-ag.uni-kl.de/~massar/soft/cisco-decrypt.c
gcc -Wall -o cisco-decrypt cisco-decrypt.c $(libgcrypt-config --libs --cflags)
cp cisco-decrypt /usr/sbin/
Converted my working Cisco .pcf files (from my Windows client) to a .conf file to work with vpnc, and make the default vpnc connection:

./pcf2vpnc dataswitch.pcf > myvpnnetwork.conf
cp myvpnnetwork.conf /etc/vpnc.conf
I've also attempted to add various route and nameserver commands to my /etc/resolv.conf file, to no avail:



route add -host 216.163.46.76 gw 192.168.0.1
route add -host 216.163.46.76 -ifp tun0 216.163.46.76 As root, whenever typing vpnc or vpnc-connect, after entering my password, I get the following error:

vpnc: receiving packet: No route to host
It is also obvious by issuing commands such as "ifconf -a" and "netstat -r" that I do not have a VPN tunnel established.

Does anyone have any ideas on how to debug? I've been googling for hours and cannot find any reference to this particular problem.

Thanks,
David