One allowed connection per IP, last one closes older attempt

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
cmatte
OpenVpn Newbie
Posts: 15
Joined: Wed Feb 02, 2011 7:03 pm

One allowed connection per IP, last one closes older attempt

Post by cmatte » Sat Feb 19, 2011 1:59 pm

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

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

Post by maikcat » Sun Feb 20, 2011 11:03 am

hi there,

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

cheers,

michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

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

Post by janjust » Mon Feb 21, 2011 9:57 am

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).

cmatte
OpenVpn Newbie
Posts: 15
Joined: Wed Feb 02, 2011 7:03 pm

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

Post by cmatte » Mon Feb 28, 2011 4:55 pm

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!

Post Reply