Openvpn Issue with Client Reserved IP (Static IP)

NethServer Version: v7
Module: openvpn

Hello guys,

Under my openvpn module, I need to set up a reserved IP for a client (Fixed/Static IP 192.168.169.51)

Via httpd-admin I’ve made this configuration for the client.

openvpn_client_with_reserved_ip

The client connection seems to ignore this setting and it comes with a different automatic IP assignment (192.168.1.6)

openvpn_client_connection

The weird situation is that for the first client I’ve set up (client-000 with ip 192.168.169.10) the reserved ip assignment works as aspected.

Do you have some ideas about where could be the problem?

Thank you for your help :wink:

Due to a limit of Windows only some addresses can be used. See:
https://openvpn.net/index.php/open-source/faq/77-server/273-qifconfig-poolq-option-use-a-30-subnet-4-private-ip-addresses-per-client-when-used-in-tun-mode.html

E.g. 192.168.169.50 would be good in your setup.

3 Likes

@filippo_carletti as always your answer are like pearls. :wink:

Anyhow, I’m not so confidend like you in the network/mask/ip calculation… so I’ve take your indication as a dogma for me.

But I’had a problem: 192.168.169.50 was already taken (indeed it works)

So in the server I’ve configured 192.168.169.60 for my client-001

The result was that the client has taken the 196.168.1.62 at the connection :thinking:

Why have you told me that the ip .50 was ok for my setup?

(I know… I was in trouble with the openvpn document you have shared) :pray:

[Update] I’ve understood!

Thank you again @filippo_carletti

2 Likes