Post by Jim Drashdev tun
server 192.168.158.0 255.255.255.0
ifconfig-pool-persist ipp.txt
proto tcp-server
tls-server
dh keys/dh1024.pem
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
comp-lzo
persist-tun
persist-key
push "route 192.168.58.0 255.255.255.0"
client-to-client
duplicate-cn
keepalive 10 120
verb 3
I think I see the problem here. You are using duplicate-cn with
ifconfig-pool-persist. These options don't really make sense when used
together because:
(a) duplicate-cn tells OpenVPN to ignore client common names for client
indexing purposes, and
(b) ifconfig-pool-persist tells OpenVPN to remember IP addresses
distributed to clients according to their common name.
So the net effect of combining these options is that the code which writes
out the ifconfig-pool-persist file sees a table of allocated IP
addresses but null common names. Because the common names are null, no
lines are written to the file.
The solution is to give each client its own cert/key and common name, and
then drop the duplicate-cn directive.
I'll also add a note to myself to throw an error if duplicate-cn and
ifconfig-pool-persist are used together, since I can't see any way that
their combined usage makes sense.
James