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

Re: [Openvpn-users] read UDPv4 [ECONNREFUSED]: Connection refused(code=111)


  • Subject: Re: [Openvpn-users] read UDPv4 [ECONNREFUSED]: Connection refused(code=111)
  • From: mbneto <mbneto@xxxxxxxxx>
  • Date: Wed, 18 Jul 2007 07:59:25 -0400

Hi Gabriel,

Thanks.  I'll try that but the problem is that I can't connect and so far the only 'error' messages I got are those I sent.

Both server and client are running with the same time (within seconds apart).

Any other tips?

On 7/17/07, Gabriel Rosca <missnebun@xxxxxxxxx> wrote:

It's nothing wrong. Per default the server is not notified when a client disconnects, what's why you get these messages in the server log.

There are two things you can to make things better though. Use --keepalive (or ping/ping-restart) to make the server realize that a client has disconnected after some time. I usually use the following values

On server:
ping 10

ping-restart 120

 

On clients:
ping 10

ping-restart 60


And, then you can add "--explicit-exit-notify 2" on the client, which will cause it to notify the server when you disconnect cleanly. The '2' means that it will send to exit-notify packets to the server before exiting. There is no acknowledge to this exit-notify packet that why you can tell OpenVPN to send multiple exit-notify packets it case happends to be dropped.

 

And check the time on both ( server and client )

 

Gabriel

 


From: openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx ] On Behalf Of mbneto
Sent: Tuesday, July 17, 2007 10:47 PM
To: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: [Openvpn-users] read UDPv4 [ECONNREFUSED]: Connection refused(code=111)

 

Hi,

I've been using an openvpn server for several months but recently I started to get error messages such as bellow

Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Tue Jul 17 22:34:36 2007 read UDPv4 [ECONNREFUSED]: Connection refused (code=111)

I've searched posts with similar messages with no clear action.

I am using tun ,udp, standard port.

My linux server shows traffic in both directions and I've tested from windows and mac os x clients with same results.

My server.conf
local A.B.C.D
proto udp
dev tun
push "route E.F.D.G 255.255.255.224"

ca /etc/openvpn/ca.pem
cert /etc/openvpn/vpnserver.crt
key /etc/openvpn/vpnserver.key
dh /etc/openvpn/dh.pem

mode server
tls-server
tls-exit
daemon
server 10.10.1.0 255.255.255.0

cipher BF-CBC
keepalive 10 60
max-clients 10
status /var/log/openvpn-status.log
log-append  /var/log/openvpn.log
verb 3
push "dhcp-option WINS H.I.J.K"

My client.conf
client
dev tun
proto udp
remote A.B.C.D 1194
resolv-retry infinite
nobind
ca "/Users/mbneto/vpn/ca.pem"
cert "/Users/mbneto/vpn/mbneto.crt"
key "/Users/mbneto/vpn/mbneto.key"
cipher BF-CBC
verb 3

Any ideas?