Link to home
Start Free TrialLog in
Avatar of Amin El-Zein
Amin El-Zein

asked on

same user on OpenVPN make a two session

Hello,
how I can make the same user on OpenVPN make a two sessions not more ?
I tried:
duplicate-cn  2 

Open in new window

but I see that the same user can make 3 connection !
thanks.
Avatar of noci
noci

duplicate-dn doesn't count   (it doesn't even have an argument)

duplicate-cn  present in config means  if several users logon with the same certificates that IS allowed.
duplicate-cn not present of disabled in the config  means each logon must be from a unique user...

so the basic choice is: 1 or many logon per  certificate.
Avatar of Amin El-Zein

ASKER

what i have to limit that ? so the user can access two times only ?
openVPN has no options for that.
It either is 1 limit case or unlimitted case.  No setting any arbitrary limit.

So you can issue the user two logins. (2 certificates) which can only login once each.
Everything else requires to run a script on the server doing the work of checking the current count, e.g. by looking up in the status file.
could please give me any example for that ?
thanks
any suggest?
any update?
thanks.
ASKER CERTIFIED SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial