fdilaimy
I have configured my server with the following configuration.
I am attempting to configure the server to assign the same IP address to each client each time they connect to the server. I am using DHCP to assign the addresses to the TAP adapter. The IP address can be chosen after the initial connection, so I was going to attempt to use the random MAC assigned to the TAP and give the IP back to the client on any future connection attempts. The clients are using the same certificate since I am only using this to connect to the server for a particular application and require no difference between users.
I have not been able to get it to work properly and the clients still seem to be getting the next available address.
I have removed all of the new configuration and CCD after making so many changes and have gone back to my initial configuration. Does anyone have a working configuration for this requirement?
Thanks in advance.
Here is the current / initial configuration.
local ***.***.***.***
port 62006
proto tcp
dev tap
dev-node OpenVPN
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"
dh "C:\\Program Files\\OpenVPN\\config\\dh1024.pem"
server-bridge 10.76.56.1 255.255.255.0 10.76.56.2 10.76.56.254
client-to-client
duplicate-cn
keepalive 10 300
tls-auth "C:\\Program Files\\OpenVPN\\config\\ta.key" 0
cipher BF-CBC
max-clients 253
persist-key
persist-tun
verb 3
mute 20
script-security 2