mathewparet My server conf has username-as-common-name # without this openvpn will use cn in the certificate as username duplicate-cn # you may need this if everyone is using same certificate But at the same time the same user is somehow able to connect from different devices using same ovpn config file and same username! How do I fix this? This is what I want - mutiple users with same ovpn file should be able to connect. But the same user can connect only from one device at a time.
mathewparet Oh thats a bummer. I think I will have to handle this in the script that tells OpenVPN to authenticate. I could, before authenticating a user, check and disconnect his existing connection via OpenVPN management, before letting him in.
TinCanTech This utility has the potential to do what you want: https://github.com/TinCanTech/easy-tls