Page 1 of 1

two vpn clients gets the same IP?

Posted: Tue Mar 22, 2011 9:16 am
by stentor
dear all,

There is openvpn server with default pool of IPs.
IP of the server is 10.8.0.1
there are two clients connected with the same configs and both get the same IP 10.8.0.6?
Why this clients gets the same IP?
How can I list IPs of connected clients?

logs:
"new connection by client 'klient02' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
"

regards
GN

Re: two vpn clients gets the same IP?

Posted: Tue Mar 22, 2011 9:28 am
by Bebop
stentor wrote: Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently
Exactly as the error message suggests. If you want to share the same certificate between multiple clients, then you must add "duplicate-cn" to your server.conf

Ideally, you would generate a unique certificate for each client. If you don't want to generate unique certificates, then use the duplicate-cn command.

This is the cause of your problem, which only 1 client can connect.