Hi Eduard,

sorry for the delay, I was offline for some days.

On Thu, 28 Jun 2007 21:49:50 +0200 Eduard Bloch wrote:

> > chiisai:~# vpnc-connect hhu
> > SIOCDELRT: No such device
> > VPNC started in background (pid: 2847)...
[...]
> 
> So, what exactly is in your config? What does vpnc with --debug options
> tell you? Can you show the logs with the script in debugging mode? (add
> "set -x" as the second line in /etc/vpnc/vpnc-script.

My config looks like this:

IPSec gateway vpn.rz.uni-duesseldorf.de
IPSec ID ourid
IPSec secret oursecret
Xauth username myusername
Xauth password mypassword

The --debug options does not give a real hint, but "set -x" does.
I attach 2 logs, one without iproute, one with.
It seems the deletion of the old route is done wrong:

+ route del default 192.168.13.1
SIOCDELRT: No such device

This I can reproduce without vpnc:
chiisai:~# route del default 192.168.13.1
SIOCDELRT: No such device
chiisai:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.13.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.13.1    0.0.0.0         UG    0      0        0 eth0
chiisai:~# route del default gw 192.168.13.1
chiisai:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.13.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0

It seems vpnc misses the 'gw' parameter?
This offcourse does not happen, when iproute is installed, because
iproute is used instead of route then.

Hope this helps a bit.
Regards
Evgeni

Attachment: vpnc-set-x
Description: Binary data

Attachment: vpnc-set-x-iproute
Description: Binary data

Reply via email to