SUSE Conversations


Fixing vpnc disconnect problem above version 0.5.x

variia

By: variia

November 19, 2008 10:33 am

Reads:1716

Comments:0

Rating:5.0

“vpnc” on Linux is the best and most popular VPN client for Cisco gateways. Some distributions recently upgraded their stock version to 0.5.x and above which brought up some mysterious connection issues with some Cisco equipment.

It affected:

  • OpenSUSE 11 and above
  • SLED10SP2
  • Ubuntu 8.04 and above for sure
  • and probably some others

The problem is that the client disconnects every 5 minutes regardless and the logs are quite speechless. This problem is not well documented on the internet and this quick tip is trying to solve that.

Cisco VPN configuration includes a global feature called Dead Peer Detection (DPD) which enables a router to detect a dead peer and, if detected, delete the IPSec and IKE security associations with that peer.

My guess is that this problem will affect people who have their DPD turned off at the VPN gateway end and upgraded to “vpnc v0.5.x” or above where the “vpnc” software is compiled with the default 300 seconds DPD detection setting.

After all we have to turn off DPD at the client end as well (vpnc) what we can achieve 2 ways:

  • add “–dpd-idle 0″ command line switch when invoking “vpnc”
  • better yet to add this line to the config file: “DPD idle timeout (our side) 0″

The config file location is varying between distributions, it could be any of the following:

/etc/vpnc.conf
/etc/vpnc/vpnc.conf
/etc/vpnc/default.conf

 

Further information: man vpnc

VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)
Fixing vpnc disconnect problem above version 0.5.x , 5.0 out of 5 based on 1 rating

Tags:
Categories: SUSE Linux Enterprise Desktop, Technical Solutions

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

Comment

RSS