Page 1 of 1

Static IP assignments on one profile with multiple users

Posted: Wed Mar 15, 2023 8:37 am
by aboba
Is it possible to assign static IP addresses to users, that are connected via only one profile?

Like, I've set duplicate-cn in server.conf, so it will allow multiple connections. And now I want the system to give every new user every new IP address, that will stick with the client. Cause when user reconnects to VPN, he gets a new IP address, that is not good in my case

Re: Static IP assignments on one profile with multiple users

Posted: Fri Mar 24, 2023 12:40 pm
by never-stop-learning
hey, what do you mean about Static IP Address, is it the VPN IP Address you are referring to?

Re: Static IP assignments on one profile with multiple users

Posted: Sun Mar 26, 2023 7:17 pm
by pirroncello
I also need this. Static IP for the private IP range the OpenVPN creates. Need this specifically for Windows machines that connect to the VPN. Server is Ubuntu.

Re: Static IP assignments on one profile with multiple users

Posted: Tue Mar 28, 2023 1:01 pm
by pirroncello
Tried this guide but didn't work for me.

https://www.itsfullofstars.de/2018/09/o ... to-client/

Won't connect when I uncomment
client-config-dir ccd

Re: Static IP assignments on one profile with multiple users

Posted: Tue Mar 28, 2023 1:45 pm
by pirroncello
Actually, changed it to /etc/openvpn/ccd instead of ccd and it works!