[solved] Two clients got the same IP
Posted: Fri Jan 07, 2011 3:07 pm
Hello,
Here is my problem:
When connecting to my OpenVPN server, my client gets the IP 10.8.0.6.
Next a friend of mine connects and gets IP 10.8.0.10.
So far, there aren't any problems.
But there are clients, which get an IP which was already given to a client which is still connected.
e.g.
First client connects and gets IP 10.8.0.6.
Second client connects and gets IP 10.8.0.6 too, although first client is still connected.
Why do two clients got the same IP? Can somebody please help me?
Kind regards,
Markus
# Server Config
port 1194
proto udp
dev tun
dev-node OpenVPN
ca .\\..\\easy-rsa\\keys\\ca.crt
cert .\\..\\easy-rsa\\keys\\server.crt
key .\\..\\easy-rsa\\keys\\server.key
dh .\\..\\easy-rsa\\keys\\dh1024.pem
server 10.8.0.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6
# Client 01 Config (each client has unique *.crt and *.key file)
client
dev tun
dev-node OpenVPN
proto udp
remote myserver.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca .\\..\\easy-rsa\\keys\\ca.crt
cert .\\..\\easy-rsa\\keys\\client_01.crt
key .\\..\\easy-rsa\\keys\\client_01.key
ns-cert-type server
comp-lzo
verb 6
Here is my problem:
When connecting to my OpenVPN server, my client gets the IP 10.8.0.6.
Next a friend of mine connects and gets IP 10.8.0.10.
So far, there aren't any problems.
But there are clients, which get an IP which was already given to a client which is still connected.
e.g.
First client connects and gets IP 10.8.0.6.
Second client connects and gets IP 10.8.0.6 too, although first client is still connected.
Why do two clients got the same IP? Can somebody please help me?
Kind regards,
Markus
# Server Config
port 1194
proto udp
dev tun
dev-node OpenVPN
ca .\\..\\easy-rsa\\keys\\ca.crt
cert .\\..\\easy-rsa\\keys\\server.crt
key .\\..\\easy-rsa\\keys\\server.key
dh .\\..\\easy-rsa\\keys\\dh1024.pem
server 10.8.0.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 6
# Client 01 Config (each client has unique *.crt and *.key file)
client
dev tun
dev-node OpenVPN
proto udp
remote myserver.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca .\\..\\easy-rsa\\keys\\ca.crt
cert .\\..\\easy-rsa\\keys\\client_01.crt
key .\\..\\easy-rsa\\keys\\client_01.key
ns-cert-type server
comp-lzo
verb 6