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
Static IP assignments on one profile with multiple users
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Mar 15, 2023 7:57 am
-
- OpenVPN User
- Posts: 32
- Joined: Sat Oct 02, 2021 3:57 pm
Re: Static IP assignments on one profile with multiple users
hey, what do you mean about Static IP Address, is it the VPN IP Address you are referring to?
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Jan 24, 2023 1:33 am
Re: Static IP assignments on one profile with multiple users
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.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Jan 24, 2023 1:33 am
Re: Static IP assignments on one profile with multiple users
Tried this guide but didn't work for me.
https://www.itsfullofstars.de/2018/09/o ... to-client/
Won't connect when I uncomment
https://www.itsfullofstars.de/2018/09/o ... to-client/
Won't connect when I uncomment
client-config-dir ccd
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Jan 24, 2023 1:33 am
Re: Static IP assignments on one profile with multiple users
Actually, changed it to /etc/openvpn/ccd instead of ccd and it works!