Limit Concurrent Connections

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
teckins
OpenVPN User
Posts: 21
Joined: Fri Feb 15, 2013 4:11 am

Limit Concurrent Connections

Post by teckins » Thu Feb 12, 2015 9:35 pm

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.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Limit Concurrent Connections

Post by Traffic » Fri Feb 13, 2015 12:06 pm

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

Post Reply