Page 1 of 1

Limit Concurrent Connections

Posted: Thu Feb 12, 2015 9:35 pm
by teckins
Hey Guys,

I was wondering how I'm able to limit concurrent connections from certain clients.

For example:

I have client A & client B.

Client A has a phone and a computer while client B has a tablet a phone and a computer.

I want client A to be able to connect to his phone ONLY at one point in time. When he disconnects from his phone he can connect with his computer. While I want client B to be able to use his account on all 3 devices at once while client A can only use his connection one at a time.

I'm fairly sure this is called concurrent connections, I want client A to have 1 concurrent connection while I want client B to have 3 etc. etc. so on. Is this possible with OpenVPN? Thanks.

Re: Limit Concurrent Connections

Posted: Fri Feb 13, 2015 12:06 pm
by Traffic
Using openvpn only you could do this:
  • Server config do not use --duplicate-cn:
    • Client A:
      • Has only one cert/key pair used on both devices. 1x cert/key on 2x devices
        The server will allow only one connection at a time from this client.
    • Client B:
      • Has a unique cert/key pair per device. 3x certs/keys on 3x devices
        The server will allow all three devices to connect at the same time