Page 1 of 1

One allowed connection per IP, last one closes older attempt

Posted: Sat Feb 19, 2011 1:59 pm
by cmatte
Hi to all,
I'm getting problems with my OpenVPN Server.
If I have to restart it or the remote client has to restart I get many problems getting the client to connect because it tries to establish sooo many connections concurrently and so "locks" my server (low cpu power) which can't establish neither one of those plenty attempts (15-20...and growing...for ONE client)! How can I change the client's behaviour? Or how can I change the server to immediately close all older works on a single IP to establish only the latter connection?
Oh, btw, I'm using UDP, if this is useful!

Thanks.

Re: One allowed connection per IP, last one closes older att

Posted: Sun Feb 20, 2011 11:03 am
by maikcat
hi there,

please post client/server configs if you want to help you..

cheers,

michael.

Re: One allowed connection per IP, last one closes older att

Posted: Mon Feb 21, 2011 9:57 am
by janjust
Try adding

Code: Select all

connect-freq 1 1
to the server config : this allows only a single connection (first parameter) per second (second parameter).

Re: One allowed connection per IP, last one closes older att

Posted: Mon Feb 28, 2011 4:55 pm
by cmatte
Forgot to say thanks, sorry!
In the meantime I've chosen to upgrade to another tiny but a lot faster device and I didn't need to do this modification to make it work as expected.
I'm just having a lot of
read UDPv4 [ECONNREFUSED]: Connection refused (code=146)
and
read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=148)
in the logs for an unknown reason but I'll open another thread for this!