Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I have multiple openvpn clients connecting to a single openvpn server? The following setting works well for a single user

This is the server configuration (openvpn.conf)

port 1194
proto udp
dev tun
secret openvpn-key.txt
keepalive 10 120
status server-tcp.log
verb 3

Here is the client config

dev tun
proto udp
remote HOSTNAME_IS_HERE 1194
resolv-retry infinite
secret openvpn-key.txt
verb 3
dhcp-option DNS
redirect-gateway def1



Things work well until a second user tries to connect using the same VPN Key, etc. How do I allow multiple users?

share|improve this question

Yes you can use openvpn for multiple clients, but you'll have to setup a CA Authority and issue a unique key/cert to each client. Or setup password-based authentication and use the --duplicate-cn option.

share|improve this answer

Yes, you can. By default, OpenVPN server doesn't allow multiple clients to connect with the same pair of cert/key; each client must have its own cert/key with an unique common name. However, multiple clients are allowed to connect to the OpenVPN server using the same pair of cert/key if duplicate-cn (allowing duplicate common name) is present in OpenVPN server's configuration file.

share|improve this answer

I believe it's fine if every client uses their own certificate, meaning that you need to issue a certificate based on the same common private-key to each client.

It's the certificate that is the actual authorization, since there are no login-credentials with OpenVPN.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.