Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155808 - net-misc/vpnc-0.3.4_pre20061029 - issues with vpnc-script
Summary: net-misc/vpnc-0.3.4_pre20061029 - issues with vpnc-script
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-20 14:23 UTC by Igor Nazarenko
Modified: 2007-02-14 10:34 UTC (History)
0 users

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


Attachments
proposed patch for vpnc-script (vpnc-script.patch,927 bytes, patch)
2006-11-20 14:24 UTC, Igor Nazarenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Nazarenko 2006-11-20 14:23:28 UTC
Proposing minor patch to vpnc-script, which fixes 2 problems:
1) When TUN is compiled as a module and the module is not loaded, vpnc-script doesn't attempt to load the module and directly proceeds to create /dev/net/tun manually, which doesn't work, since the device that gets created is not backed up ny the kernel. Workaround: modprobe tun before starting vpnc
2) When there's more than one default gateway with different metrics, vpnc-script correctly stores them both in a temporary file to be restored on disconnect. However, on disconnect it fails to properly restore either one of them. Workaround: manually re-add the gateways or /etc/init.d/net.eth0 restart.

Example route output which causes the bug:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.27.44.0     *               255.255.254.0   U     2000   0        0 wlan0
172.27.14.0     *               255.255.254.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         172.27.14.1     0.0.0.0         UG    0      0        0 eth0
default         172.27.44.1     0.0.0.0         UG    2000   0        0 wlan0

I'm going to try and attach a patch.
Comment 1 Igor Nazarenko 2006-11-20 14:24:24 UTC
Created attachment 102431 [details, diff]
proposed patch for vpnc-script
Comment 2 Hanno Böck gentoo-dev 2006-12-19 08:46:58 UTC
Can you send that upstream?
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-02-14 10:34:12 UTC
I sent it up and Massar will integrate it.  Thanks.