Basically my layout is thus: I have a home network which is a few computers and virtuals machines. I have a cloud based VPN server I want to connect to. I have laptops and remote machines I want to also connect via the cloud VPN server.
Now currently I have all this working pretty decently actually. I have everything configured with an OpenVPN in bridging mode, so it's all ethernet bridge from every client to the server, clients can talk to each other fine and all that.
Where my problem lies, is I want to be able to assign static IP's to my remote clients that connect up. I've tried setting a client-config-dir and making a file in there with the same name as the CN of the client, but it doesn't seem to work at all. The clients still keeps getting an IP out of my pool.
If any of you can help me figure out how to make a specific client get a static IP assignment, that'd be great.
I'm going to include the server configuration. I'm not sure if the client config file is needed? Everything is running via tap devices.
Server Configuration
port xxx
proto xxx
dev tap
ca xxx
cert xxx
key xxx
dh xxx
# manual configuration
client-to-client
mode server
tls-server
topology "subnet"
push "topology subnet"
ifconfig 10.0.0.161 255.255.255.0
ifconfig-pool 10.0.0.162 10.0.0.171 255.255.255.0
client-config-dir /etc/openvpn/ccd
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 1
daemon
proto xxx
dev tap
ca xxx
cert xxx
key xxx
dh xxx
# manual configuration
client-to-client
mode server
tls-server
topology "subnet"
push "topology subnet"
ifconfig 10.0.0.161 255.255.255.0
ifconfig-pool 10.0.0.162 10.0.0.171 255.255.255.0
client-config-dir /etc/openvpn/ccd
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 1
daemon
Any tips would be appreciated, thanks!