Package: vpnc
Version: 0.3.3+SVN20050909-5
Severity: important

When doing vpnc-connect I get:

Error: an inet prefix is expected rather than "".

Adding set -x to the vpnc script gives more detailed information 
which I have attached below. It looks like a "route add" problem. 
Unsure if this is specific to the vpnc I am connecting to, but I 
see there was a similar bug reported and classified "resolved" earlier
bug 334699. 

output from connecting:-
 
++ uname -s
+ OS=Linux
+ DEFAULT_ROUTE_FILE=/var/run/vpnc/defaultroute
+ RESOLV_CONF_BACKUP=/var/run/vpnc/resolv.conf-backup
++ which ip
++ grep '^/'
+ IPROUTE=/sbin/ip
+ '[' Linux = Linux ']'
+ ifconfig_syntax_ptp=pointopoint
+ route_syntax_gw=gw
+ route_syntax_del=del
+ route_syntax_netmask=netmask
+ '[' -n /sbin/ip ']'
+ '[' -z pre-init ']'
+ case "$reason" in
+ do_pre_init
+ '[' Linux = Linux ']'
+ :
+ exit 0
++ uname -s
+ OS=Linux
+ DEFAULT_ROUTE_FILE=/var/run/vpnc/defaultroute
+ RESOLV_CONF_BACKUP=/var/run/vpnc/resolv.conf-backup
++ which ip
++ grep '^/'
+ IPROUTE=/sbin/ip
+ '[' Linux = Linux ']'
+ ifconfig_syntax_ptp=pointopoint
+ route_syntax_gw=gw
+ route_syntax_del=del
+ route_syntax_netmask=netmask
+ '[' -n /sbin/ip ']'
+ '[' -z connect ']'
+ case "$reason" in
+ do_connect
+ '[' -r /etc/vpnc/vpnc-script-connect-action ']'
+ '[' -n 'You have been successfully connected to the EUCS VPN gateway.

When you click continue, all the VPN windows will close, you will have to bring 
up the VPN dialer again in order to disconnect.' ']'
+ echo 'Connect Banner:'
Connect Banner:
+ echo 'You have been successfully connected to the EUCS VPN gateway.

When you click continue, all the VPN windows will close, you will have to bring 
up the VPN dialer again in order to disconnect.'
+ read LINE
' echo '|' 'You have been successfully connected to the EUCS VPN gateway.
| You have been successfully connected to the EUCS VPN gateway.
+ read LINE
+ echo '|' $'\r'
| 
+ read LINE
+ echo '|' 'When you click continue, all the VPN windows will close, you will ha
ve to bring up the VPN dialer again in order to disconnect.'
| When you click continue, all the VPN windows will close, you will have to brin
g up the VPN dialer again in order to disconnect.
+ read LINE
+ echo

+ do_ifconfig
+ ifconfig tun0 inet 129.215.37.32 pointopoint 129.215.37.32 netmask 255.255.255
.255 mtu 1390 up
+ set_vpngateway_route
++ ip route get 129.215.38.230
++ fix_ip_get_output
++ sed 's/cache//;s/metric \?[0-9]\+ [0-9]\+//g'
+ /sbin/ip route add 129.215.38.230 via 129.215.30.126 dev eth0 src 129.215.30.6
1 mtu 1500 advmss 1460 hoplimit 64
+ /sbin/ip route flush cache
+ test $'\020'
+ for network in '$TARGET_NETWORKS'
+ ip route del $'\020'
+ ip route add $'\020' dev tun0
Error: an inet prefix is expected rather than "".
+ '[' -n '129.215.166.13 129.215.70.239' ']'
+ write_resolvconf
+ case "$DNS_UPDATE" in
+ '[' -x /sbin/resolvconf ']'
+ '[' '' ']'
+ for ip in '"$INTERNAL_IP4_DNS"'
+ echo nameserver 129.215.166.13 129.215.70.239
+ /sbin/resolvconf -a tun0
+ return
+ exit 0
VPNC started in background (pid: 4305)...


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages vpnc depends on:
ii  iproute                       20041019-3 Professional tools to control the 
ii  libc6                         2.3.5-7    GNU C Library: Shared libraries an
ii  libgcrypt11                   1.2.2-1    LGPL Crypto library - runtime libr
ii  libgpg-error0                 1.1-4      library for common error values an

vpnc recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to