[Solved] One static IP and the rest Dynamic/Define DHCP pool
Posted: Fri Mar 27, 2020 11:29 am
Hey!
I'm a bit new to OpenVPN and this might be a silly question but here goes.
Got my VPS setup as a VPN server.
3 Clients, let's say A, B and C. A(common name: AConfig) has a shared drive I need access to and hence require to assign a static IP to A.
B and C are two clients (common name: clientConfig) that share a common certificate and config file and will connect to the server and access the above stated shared drive from A.
The server config has
The "AConfig" (ccd) file has and there is no ccd file for B and C.
My understanding and logical interpretation was that "A" would be allocated an IP of 10.10.0.2, which does happen; and that the other clients would be allocated an IP other than 10.10.0.2, but this doesn't work out. They sometimes get 10.10.0.2 and otherwise 10.10.0.3+
Creating a separate config file for each client is not something I'm keen on doing because in reality I have 30-40 such B's and C's whose identities change from time to time.
So what I need to do is assign a static IP, say 10.10.0.2 to "A" and somehow, have a DHCP pool of 10.10.0.3 - 10.10.0.254 for the other clients (B's and C's)
Would really appreciate the help.
Thanks,
Craig
I'm a bit new to OpenVPN and this might be a silly question but here goes.
Got my VPS setup as a VPN server.
3 Clients, let's say A, B and C. A(common name: AConfig) has a shared drive I need access to and hence require to assign a static IP to A.
B and C are two clients (common name: clientConfig) that share a common certificate and config file and will connect to the server and access the above stated shared drive from A.
The server config has
Code: Select all
client-config-dir ccd
client-to-client
duplicate-cn
topology subnet
Code: Select all
ifconfig-push 10.10.0.2 255.255.255.0My understanding and logical interpretation was that "A" would be allocated an IP of 10.10.0.2, which does happen; and that the other clients would be allocated an IP other than 10.10.0.2, but this doesn't work out. They sometimes get 10.10.0.2 and otherwise 10.10.0.3+
Creating a separate config file for each client is not something I'm keen on doing because in reality I have 30-40 such B's and C's whose identities change from time to time.
So what I need to do is assign a static IP, say 10.10.0.2 to "A" and somehow, have a DHCP pool of 10.10.0.3 - 10.10.0.254 for the other clients (B's and C's)
Would really appreciate the help.
Thanks,
Craig