Hi,
I’d like to know if it’s possible to set a static IP for a user in Pritunl rather than Pritunl assigning a random one from the subnet.
Thanks
Hi,
I’d like to know if it’s possible to set a static IP for a user in Pritunl rather than Pritunl assigning a random one from the subnet.
Thanks
The user virtual VPN IP addresses shown in the web console are static. There isn’t any option to change the IP address.
So if a user disconnects and reconnects after however many days, they would get the same IP again? Because that’s not what I’m seeing…
I’m looking for something similar to DHCP reservation.
If the server has multiple devices enabled additional user devices will use a random IP address. If the virtual VPN subnet is not large enough for all users attached to the server a random address will be assigned. This would show error messages in the logs.
Is there a way to change this behaviour? I’m affected of that but I have no more tha 60-70 clients on a /24, divided in 21 organization. There should be enough headspace.
Removed user release the IP to the pool?
All users attached to the server must have an IP address, including users that are not connected. Any remaining IP addresses are used when multiple devices are enabled. A recent update to Pritunl fixed an issue where the IP pool would run out of addresses when multiple devices is enabled.
My version is:
pritunl v1.30.3236.80
No multiple devices option enabled.
Yesterday, during various attemps, I’ve found that starting & stopping the server from the web interface and then recreating the user, solve the problem.
(Just in case you can recreate the key and the user)
This issue has been fixed in the repository, the changes will be included in the next release.
btw any update?
Hi,
I am also interested in knowing if there is now a possibility to assign custom static IPs to devices (users). We are switching from OpenVPN AS to Pritunl Enterprise and would like to define a static IP per server when creating a user profile.
If this is still not possible:
Thanks
It’s unlikely this feature will be added. The static IP addresses will only change if the virtual network is changed in the server settings or the command sudo pritunl repair-database
is run. The IP address is shown in the interface and stored in the database even if the user has never connected.
Let’s assume we end up in a situation where we need to use the command sudo pritunl repair-database
. After that, would it be possible to manually restore the IPs in the database to their previous state?
Are the user IPs configured in only one place in the database, and would it be sufficient to manually change the entry there? Or could this lead to issues due to dependencies? If so, where exactly are they stored in the database?
The static IP addresses are converted to an integer and stored in the servers_ip_pool
. The problem with modifying it is the server will find the highest address value and start assigning new addresses from that point. If a specific address is assigned it could skip a large sequence of addresses.