Anders Andreasen Blog

Just another WordPress.com weblog

Flaky vpn connection with vpnc on Ubuntu 9.10

with one comment

I have had trouble keeping my vpn connection alive when connecting to the internal net of my company through the vpnc client. Usually I can be connected for, say, 5-10 min and then vpnc disconnects. I found out that by ticking the “disable dead per detection” box helped a lot. Goto “System -> Preferences -> Network Connections” choose the VPN pane and click “Edit”.




If vpnc is started from the command line do the following to disable dead peer detection
vpnc --dpd-idle 0
Once I disabled DPD I have been able to keep the vpn connection alive without disconneting for several hours. Btw
vpnc --version
vpnc version 0.5.3
Copyright (C) 2002-2006 Geoffrey Keating, Maurice Massar, others
vpnc comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of vpnc under the terms of the GNU General
Public License. For more information about these matters, see the files
named COPYING.
Built without openssl (certificate) support.

Supported DH-Groups: nopfs dh1 dh2 dh5
Supported Hash-Methods: md5 sha1
Supported Encryptions: null des 3des aes128 aes192 aes256
Supported Auth-Methods: psk psk+xauth

Advertisements

Written by aandreasen

April 15, 2010 at 6:36 pm

Posted in GNU/Linux, Ubuntu

Tagged with ,

One Response

Subscribe to comments with RSS.

  1. Great article! Nice work
    aandreasen

    VPN Install

    May 13, 2010 at 12:33 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: