Package: vpnc
Version: 0.5.3r512-2
Severity: normal
Dear Maintainer,
When disconnect the vpnc with vpnc-disconnect ,
I lost the default gateway .
When the vpnc is connected , I saw the file
/var/run/vpnc/defaultroute is :
$ cat /var/run/vpnc/defaultroute
default
dev
tun0
I think it's a problem for /etc/vpnc/vpnc-script .
Then , I do something
echo `ip route | grep default` >>/tmp/vpnc.log
for debug.
I find the default route has changed when `do_ifconfig` is called
before the call of `set_default_route` .
and then in `do_ifconfig` , I find :
if [ -n "$INTERNAL_IP4_NETMASK" ]; then
set_network_route $INTERNAL_IP4_NETADDR $INTERNAL_IP4_NETMASK
$INTERNAL_IP4_NETMASKLEN
fi
these lines changed the default route .
Then I do:
echo $INTERNAL_IP4_NETADDR $INTERNAL_IP4_NETMASK
$INTERNAL_IP4_NETMASKLEN >>/tmp/vpnc.log
I get:
0.0.0.0 0.0.0.0 0
I think change:
if [ -n "$INTERNAL_IP4_NETMASK" ]; then
to
if [ -n "$INTERNAL_IP4_NETMASKLEN" ] && [ 0 -ne $INTERNAL_IP4_NETMASKLEN ];
then
can resolve the problem
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages vpnc depends on:
ii dpkg 1.16.9
ii libc6 2.13-37
ii libgcrypt11 1.5.0-3
ii libgnutls26 2.12.20-2
ii perl 5.14.2-16
Versions of packages vpnc recommends:
ii iproute 20120521-3
Versions of packages vpnc suggests:
pn resolvconf <none>
-- Configuration Files:
/etc/vpnc/default.conf [Errno 13] Permission denied: u'/etc/vpnc/default.conf'
/etc/vpnc/vpnc-script [Errno 13] Permission denied: u'/etc/vpnc/vpnc-script'
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]