Static IP assignments on one profile with multiple users

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
aboba
OpenVpn Newbie
Posts: 1
Joined: Wed Mar 15, 2023 7:57 am

Static IP assignments on one profile with multiple users

Post by aboba » Wed Mar 15, 2023 8:37 am

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

never-stop-learning
OpenVPN User
Posts: 39
Joined: Sat Oct 02, 2021 3:57 pm

Re: Static IP assignments on one profile with multiple users

Post by never-stop-learning » Fri Mar 24, 2023 12:40 pm

hey, what do you mean about Static IP Address, is it the VPN IP Address you are referring to?

pirroncello
OpenVpn Newbie
Posts: 4
Joined: Tue Jan 24, 2023 1:33 am

Re: Static IP assignments on one profile with multiple users

Post by pirroncello » Sun Mar 26, 2023 7:17 pm

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.

pirroncello
OpenVpn Newbie
Posts: 4
Joined: Tue Jan 24, 2023 1:33 am

Re: Static IP assignments on one profile with multiple users

Post by pirroncello » Tue Mar 28, 2023 1:01 pm

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

pirroncello
OpenVpn Newbie
Posts: 4
Joined: Tue Jan 24, 2023 1:33 am

Re: Static IP assignments on one profile with multiple users

Post by pirroncello » Tue Mar 28, 2023 1:45 pm

Actually, changed it to /etc/openvpn/ccd instead of ccd and it works!

Post Reply