Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339543 - net-misc/kvpnc may disconnect a valid VPN tunnel because ping_check makes invalid assumptions
Summary: net-misc/kvpnc may disconnect a valid VPN tunnel because ping_check makes inv...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-03 00:00 UTC by Phil Stracchino (Unix Ronin)
Modified: 2011-08-09 03:29 UTC (History)
0 users

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 Phil Stracchino (Unix Ronin) 2010-10-03 00:00:41 UTC
In brief:  After establishing a VPN tunnel, net-misc/kvpnc calls /usr/share/apps/kvpnc/ping_check.sh to test that the tunnel remains up.  ping_check.sh pings its specified ping target host through the VPN tunnel device (usually tun0) and counts failed pings.  If it gets more than a certain number of ping failures, it assumes that the connection has died, and shuts down the tunnel.

The first problem here is that kvpnc assumes that the VPN gateway is the correct host to test-ping in this manner, and in fact that it is even pingable at all via the tunnel.  This assumption is not necessarily correct.  In cases when it is not correct, this will result in kvpnc killing a perfectly good connection after about three and a half minutes.

This could be fixed by allowing a separate ping target host to be defined, and using the VPN gateway as a fallback ping host only if no ping target has been defined for that connection.


(I find the logic behind the design of ping_check.sh a little mystifying; I wouldn't have done it this way at all.  But that's a separate issue.)

Reproducible: Always

Steps to Reproduce:
Unfortunately I can't give a reproduction example because I don't have a publicly accessible VPN that meets the ping host issue described above.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-01-09 12:46:41 UTC
Please file an upstream bug and link to it here.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-08 20:46:48 UTC
Current kvpnc allows setting a dedicated ping host.
Comment 3 Phil Stracchino (Unix Ronin) 2011-08-09 03:29:38 UTC
Thanks for the update, I'll test it again when I get a little free time.