Skip to content

Comment on Show HN: A small bootstrapped independent VPN company in the Netherlandsparent

Comments

Using a database for user authentication, you could write a script to fill the database with some usernames and passwords. Or create a webfrontend for users to register their own usernames and passwords.

Yes thanks thats a good idea, I was also wondering how OpenVPN behaves with different connections, if it can handle multiple users simultaneously or not

More specifically, if I have to manually generate keys for each user or if there is a way to automatically generate them

To maybe better answer this question, I've found this for example: https://gist.github.com/hcooper/814247

OpenVPN has the duplicate-cn option available, two connections with the same common name are then allowed.

I see, thay may prove helpful but it doesnt really answer my question, can you be more explicit about your answer ?

You could generate a certificate for each user, but without the duplicate-cn option a user is only allowed 1 connection to the same server. You can also use username/password authentication instead of certificates, also in this case you'll need to set the duplicate-cn option to allow multiple connections from the same user to the same server, because in this case you use the option username-as-common-name and the CN (common name) will then be the username.

Thanks for the tips, I'll see what I can do. Good luck

To answer this question: yes, OpenVPN can handle multiple users/connections simultaneously.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.