Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100188 - vpnc-0.3.2 fails to set default route due to a bug in vpnc-connect
Summary: vpnc-0.3.2 fails to set default route due to a bug in vpnc-connect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 01:55 UTC by Paul Ortyl
Modified: 2005-10-24 01:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Ortyl 2005-07-25 01:55:10 UTC
vpnc-0.3.2 fails to set default route due to a bug in vpnc-connect

vpnc-connect reads ouptut of /sbin/ip command and then after "fixing" it feeds
it back to the /sbin/ip
unfortunatey the "fixing" went wrong and /sbin/ip could not accept the given
parameters

Reproducible: Always
Steps to Reproduce:
1. set up the network interface
2. start vpnc-connect
Actual Results:  
an error message appears from /sbin/ip

route -n 
does not contain the default route it should (including gateway address)


Expected Results:  
no error messages
proprly working routing

after correcting fix_ip_get_output() function within vpnc-connect to the form
cited below:

fix_ip_get_output () {
        sed 's/cache//;s/metric \+[0-9]\+ [0-9]\+//g' | xargs echo
}

it works again...
Comment 1 Tobias Sager 2005-08-17 08:00:34 UTC
Paul, do you know if vpnc-0.3.3 fixes this problem?
Comment 2 Tobias Sager 2005-08-17 08:11:26 UTC
Forget the question. I have two new ones:
- Is this still an issue?
- What's your iproute2 version?
- What's the output of `ip route get $YOURGATEWAY`?
Comment 3 Paul Ortyl 2005-08-22 05:01:02 UTC
1/ 
it is not an issue as long as I have 
fix_ip_get_output () {
        sed 's/cache//;s/metric \+[0-9]\+ [0-9]\+//g' | xargs echo
}
in my ebuild...

2/
sys-apps/iproute2-2.6.11.20050330

3/
# ip route get XXX.XXX.XXX.XXX
XXX.XXX.XXX.XXX dev ath0  src XXX.XXX.XXX.YYY 
    cache  mtu 1500 advmss 1460 metric 10 64
Comment 4 Jos Delbar 2005-10-22 07:15:36 UTC
This is still an issue in vpnc-0.3.3, the fix mentioned here works for me. 
 
sys-apps/iproute2-2.6.11.20050330-r1 
Comment 5 Hanno Böck gentoo-dev 2005-10-24 01:30:13 UTC
fixed in vpnc-0.3.3 ebuild