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

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


  • Subject: [Openvpn-users] Exiting from 'Management Interface' causes openvpn 2.0rc7 daemon to die
  • From: Christian Sander Røsnes <christian@xxxxxxxxx>
  • Date: Thu, 13 Jan 2005 14:51:11 +0100

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 127.0.0.1...
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 127.0.0.1:1103
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 127.0.0.1:1103: 
Address already in use (errno=48)
Thu Jan 13 14:27:07 2005 Exiting

Is this a bug, or am I doing something wrong ?

Thanks
Christian

--------------------server configuration-----------------------------------

# server3.cfg
chroot /openvpn/chroot
dev tun3
local x.x.x.x
mode server
daemon
proto udp
ifconfig 10.3.0.1 10.3.0.2
ifconfig-pool 10.3.0.4 10.3.0.254
route 10.3.0.0 255.255.255.0
push "route 10.3.0.1 255.255.255.255"
tls-server
dh dh1024.pem
ca cacert.pem
cert server/vpncert.pem
key server/vpnkey.pem
crl-verify crl/crl.pem
tls-auth ta.key 0
ping 10
ping-restart 120
push "ping 10"
push "ping-restart 60"
mssfix 1400
user nobody
group nobody
comp-lzo
persist-key
persist-tun
log  /openvpn/chroot/openvpn3.log
verb 3
status  /openvpn/chroot/openvpn3.status 10
status-version 2
management 127.0.0.1 1103



-------------------------------------------------------
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
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users