1
20.1 Legacy Series / Re: OpenVPN static IP address
« on: May 11, 2020, 12:30:39 pm »
I also have a question concerning this setup that might be relevant for you as well:
With
However, what happens if the same client has multiple devices and uses them to connect multiple times at the same time ?
In that case, IMHO the above configuration would only work a single time. If the user is already connected with a one device, the IP address will be taken. Hence if the user connects with another device at the same time, he would receive the same IP address again (192.168.99.15). Since the IP address is already taken for his first connection, I suppose the connection would fail.
So, is there a way to assign static IP address ranges to users ?
For instance, a user might have the fixed IP range 192.168.99.15 - 20.
Hence, the user could connect with up to 5 clients/devices at the same time. Each device would receive an address from the range 192.168.99.15 - 20. Any client specific firewall rules would thus consider the user's specific range.
Is this possible ?
Thanks !
With
Code: [Select]
ifconfig-push 192.168.99.15 255.255.255.0
you should assign the fixed IP address 192.168.99.15 to the client with the client specific override setting. For instance, in a certificate based scenario, the override would use the client certificate common name.However, what happens if the same client has multiple devices and uses them to connect multiple times at the same time ?
In that case, IMHO the above configuration would only work a single time. If the user is already connected with a one device, the IP address will be taken. Hence if the user connects with another device at the same time, he would receive the same IP address again (192.168.99.15). Since the IP address is already taken for his first connection, I suppose the connection would fail.
So, is there a way to assign static IP address ranges to users ?
For instance, a user might have the fixed IP range 192.168.99.15 - 20.
Hence, the user could connect with up to 5 clients/devices at the same time. Each device would receive an address from the range 192.168.99.15 - 20. Any client specific firewall rules would thus consider the user's specific range.
Is this possible ?
Thanks !