two vpn clients gets the same IP?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
stentor
OpenVpn Newbie
Posts: 5
Joined: Thu Jan 20, 2011 10:31 am

two vpn clients gets the same IP?

Post by stentor » Tue Mar 22, 2011 9:16 am

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

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: two vpn clients gets the same IP?

Post by Bebop » Tue Mar 22, 2011 9:28 am

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.
The cure for boredom is curiosity

Post Reply