[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

Re: [Openvpn-users] Exiting from 'Management Interface' causes openvpn 2.0rc7 daemon to die

  • Subject: Re: [Openvpn-users] Exiting from 'Management Interface' causes openvpn 2.0rc7 daemon to die
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Thu, 13 Jan 2005 20:45:17 -0700 (MST)

On Thu, 13 Jan 2005, Christian Sander [iso-8859-1] RÝsnes wrote:

> Hi
> I've got OpenVPN 2.0rc7 running on an OpenBSD 3.6 DS10 Alpha server.
> The OpenVPN server works fine as far as tunneling goes.
> However, when I exit the 'Management Interface', the OpenVPN daemon
> for this Management Interface dies.
> I've configured the "management interface' to listen to 'localhost port 1103'.
> (see server configuration below).
> I access the management interface with telnet, like so:
> # telnet localhost 1103
> Trying
> Connected to localhost.
> Escape character is '^]'.
> >INFO:OpenVPN Management Interface Version 1 -- type 'help' for more info
> exit
> Connection closed by foreign host.
> The outcome of this 'exit' command is that OpenVPN daemon dies 
> (ps -aux | grep openvpn  - doesn't list it anymore)
> I check the log file and find:
> Thu Jan 13 14:26:53 2005 MANAGEMENT: Client connected from
> Thu Jan 13 14:27:07 2005 MANAGEMENT: CMD 'exit'
> Thu Jan 13 14:27:07 2005 MANAGEMENT: Client disconnected
> Thu Jan 13 14:27:07 2005 MANAGEMENT: Cannot bind TCP socket on 
> Address already in use (errno=48)
> Thu Jan 13 14:27:07 2005 Exiting
> Is this a bug, or am I doing something wrong ?

I don't think you're doing anything wrong, but I would be curious why the 
kernel thinks the address is already in use on the rebind attempt.

There's definitely an argument to be made that OpenVPN should stay bound 
to the socket for the life of the daemon instance, rather than rebinding 
on client disconnect.


The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
Openvpn-users mailing list