Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vpnc disconnect/reconnect issues [fixed]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
XioXouS
n00b
n00b


Joined: 01 Apr 2005
Posts: 59

PostPosted: Tue Jun 21, 2005 10:37 pm    Post subject: vpnc disconnect/reconnect issues [fixed] Reply with quote

For ages now I've had a problem where after issuing vpnc-disconnect I
was able to reconnect to the VPN but not actually do anything. The
system I've been logging into uses pre-shared+xauth, silly I know, but I
have no control over it. Here's a similar config so you know what I'm
talking about:

Code:

    IPSec gateway a.b.c.d
    IPSec ID vpnGroupName
    IPSec secret vpnGroupSecret
    Xauth username vpnUserName
    UDP Encapsulate


The problem I found was that while the Windows Cisco client actually
generates a whole bunch of disconnect messages and clears some info from
the VPN box, the vpnc-disconnect script simply kills the daemon which
results in a "bad hash" message on the VPN box and a connection that
doesn't get cleared for a period of time - I believe the default is 24
hours. This does not mean that vpnc can't authenticate, unfortunately,
it just means that it can't do anything once inside.

THE FIX:
After you've disconnected using vpnc-disconnect try to reconnect using "vpnc profile.conf".
Now when prompted (you may have to change that part), enter the correct
group password (if necessary), and the wrong password for your
user. This should clear the connection on the VPN box and vpnc should
error out with "authentication unsuccessful."

Now connect and authenticate as usual.

Note 1: too many unsuccessful attempts in a row will probably lock you
out for a time, which is just as useless.

Note 2: this is not a fix for the rekeying issue that forces you to
disconnect after 8 hours, or whatever it happens to be.

Hope that helps someone.
Back to top
View user's profile Send private message
truthbeliever
n00b
n00b


Joined: 02 Aug 2005
Posts: 10

PostPosted: Fri Aug 19, 2005 7:39 am    Post subject: Re: vpnc disconnect/reconnect issues [fixed] Reply with quote

XioXouS wrote:
Hope that helps someone.


YES!!! thanks it helped me!

Jeroen :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum